clang 8.0.0

ASTConsumer.cpp
Go to the documentation of this file.
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/Decl.h"
16 #include "clang/AST/DeclGroup.h"
17 using namespace clang;
18
19 bool ASTConsumer::HandleTopLevelDecl(DeclGroupRef D) {
20 return true;
21 }
22
23 void ASTConsumer::HandleInterestingDecl(DeclGroupRef D) {
24 HandleTopLevelDecl(D);
25 }
26
27 void ASTConsumer::HandleTopLevelDeclInObjCContainer(DeclGroupRef D) {}
28
29 void ASTConsumer::HandleImplicitImportDecl(ImportDecl *D) {
30 HandleTopLevelDecl(DeclGroupRef(D));
31 }
clang::ASTConsumer::HandleInterestingDecl
virtual void HandleInterestingDecl(DeclGroupRef D)
HandleInterestingDecl - Handle the specified interesting declaration.
Definition: ASTConsumer.cpp:23
ASTConsumer.h
clang::ImportDecl
Describes a module import declaration, which makes the contents of the named module visible in the cu...
Definition: Decl.h:4149
Decl.h
clang
Dataflow Directional Tag Classes.
Definition: CFGReachabilityAnalysis.h:22
clang::ASTConsumer::HandleImplicitImportDecl
virtual void HandleImplicitImportDecl(ImportDecl *D)
Handle an ImportDecl that was implicitly created due to an inclusion directive.
Definition: ASTConsumer.cpp:29
clang::DeclGroupRef
Definition: DeclGroup.h:52
clang::ASTConsumer::HandleTopLevelDeclInObjCContainer
virtual void HandleTopLevelDeclInObjCContainer(DeclGroupRef D)
Handle the specified top-level declaration that occurred inside and ObjC container.
Definition: ASTConsumer.cpp:27
DeclGroup.h
clang::ASTConsumer::HandleTopLevelDecl
virtual bool HandleTopLevelDecl(DeclGroupRef D)
HandleTopLevelDecl - Handle the specified top-level declaration.
Definition: ASTConsumer.cpp:19