xref: /minix3/external/bsd/llvm/dist/clang/lib/AST/ASTConsumer.cpp (revision f4a2713ac843a11c696ec80c0a5e3e5d80b4d338)
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 Sambuc bool ASTConsumer::HandleTopLevelDecl(DeclGroupRef D) {
20*f4a2713aSLionel Sambuc   return true;
21*f4a2713aSLionel Sambuc }
22*f4a2713aSLionel Sambuc 
HandleInterestingDecl(DeclGroupRef D)23*f4a2713aSLionel Sambuc void ASTConsumer::HandleInterestingDecl(DeclGroupRef D) {
24*f4a2713aSLionel Sambuc   HandleTopLevelDecl(D);
25*f4a2713aSLionel Sambuc }
26*f4a2713aSLionel Sambuc 
HandleTopLevelDeclInObjCContainer(DeclGroupRef D)27*f4a2713aSLionel Sambuc void ASTConsumer::HandleTopLevelDeclInObjCContainer(DeclGroupRef D) {}
28*f4a2713aSLionel Sambuc 
HandleImplicitImportDecl(ImportDecl * D)29*f4a2713aSLionel Sambuc void ASTConsumer::HandleImplicitImportDecl(ImportDecl *D) {
30*f4a2713aSLionel Sambuc   HandleTopLevelDecl(DeclGroupRef(D));
31*f4a2713aSLionel Sambuc }
32