clang API Documentation

ASTConsumer.cpp
Go to the documentation of this file.
00001 //===--- ASTConsumer.cpp - Abstract interface for reading ASTs --*- C++ -*-===//
00002 //
00003 //                     The LLVM Compiler Infrastructure
00004 //
00005 // This file is distributed under the University of Illinois Open Source
00006 // License. See LICENSE.TXT for details.
00007 //
00008 //===----------------------------------------------------------------------===//
00009 //
00010 //  This file defines the ASTConsumer class.
00011 //
00012 //===----------------------------------------------------------------------===//
00013 
00014 #include "clang/AST/ASTConsumer.h"
00015 #include "clang/AST/Decl.h"
00016 #include "clang/AST/DeclGroup.h"
00017 using namespace clang;
00018 
00019 bool ASTConsumer::HandleTopLevelDecl(DeclGroupRef D) {
00020   return true;
00021 }
00022 
00023 void ASTConsumer::HandleInterestingDecl(DeclGroupRef D) {
00024   HandleTopLevelDecl(D);
00025 }
00026 
00027 void ASTConsumer::HandleTopLevelDeclInObjCContainer(DeclGroupRef D) {}
00028 
00029 void ASTConsumer::HandleImplicitImportDecl(ImportDecl *D) {
00030   HandleTopLevelDecl(DeclGroupRef(D));
00031 }