ASTConsumer.cpp revision 88c2596edc8eb475e20f6033de1ea01669695a0c
1//===--- ASTConsumer.cpp - Abstract interface for reading ASTs --*- C++ -*-===//
2//
3//                     The LLVM Compiler Infrastructure
4//
5// This file is distributed under the University of Illinois Open Source
6// License. See LICENSE.TXT for details.
7//
8//===----------------------------------------------------------------------===//
9//
10//  This file defines the ASTConsumer class.
11//
12//===----------------------------------------------------------------------===//
13
14#include "clang/AST/ASTConsumer.h"
15#include "clang/AST/DeclGroup.h"
16using namespace clang;
17
18bool ASTConsumer::HandleTopLevelDecl(DeclGroupRef D) {
19  return true;
20}
21
22void ASTConsumer::HandleInterestingDecl(DeclGroupRef D) {
23  HandleTopLevelDecl(D);
24}
25
26void ASTConsumer::HandleTopLevelDeclInObjCContainer(DeclGroupRef D) {}
27