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