1 //===--- ASTConsumer.cpp - Abstract interface for reading ASTs --*- C++ -*-===//
3 // The LLVM Compiler Infrastructure
5 // This file is distributed under the University of Illinois Open Source
6 // License. See LICENSE.TXT for details.
8 //===----------------------------------------------------------------------===//
10 // This file defines the ASTConsumer class.
12 //===----------------------------------------------------------------------===//
14 #include "clang/AST/ASTConsumer.h"
15 #include "llvm/Bitcode/BitstreamReader.h"
16 #include "clang/AST/Decl.h"
17 #include "clang/AST/DeclGroup.h"
18 using namespace clang;
20 bool ASTConsumer::HandleTopLevelDecl(DeclGroupRef D) {
24 void ASTConsumer::HandleInterestingDecl(DeclGroupRef D) {
25 HandleTopLevelDecl(D);
28 void ASTConsumer::HandleTopLevelDeclInObjCContainer(DeclGroupRef D) {}
30 void ASTConsumer::HandleImplicitImportDecl(ImportDecl *D) {
31 HandleTopLevelDecl(DeclGroupRef(D));