Lines Matching full:clang
21 #include <clang/AST/AST.h>
22 #include <clang/AST/ASTConsumer.h>
23 #include <clang/AST/Mangle.h>
24 #include <clang/AST/RecursiveASTVisitor.h>
25 #include <clang/Frontend/CompilerInstance.h>
26 #include <clang/Lex/PPCallbacks.h>
31 : public clang::RecursiveASTVisitor<HeaderASTVisitor> {
33 HeaderASTVisitor(clang::MangleContext *mangle_contextp,
34 clang::ASTContext *ast_contextp,
35 const clang::CompilerInstance *compiler_instance_p,
37 const clang::Decl *tu_decl,
41 bool VisitRecordDecl(const clang::RecordDecl *decl);
43 bool VisitFunctionDecl(const clang::FunctionDecl *decl);
45 bool VisitEnumDecl(const clang::EnumDecl *decl);
47 bool VisitVarDecl(const clang::VarDecl *decl);
49 bool TraverseDecl(clang::Decl *decl);
57 clang::MangleContext *mangle_contextp_;
58 clang::ASTContext *ast_contextp_;
59 const clang::CompilerInstance *cip_;
62 const clang::Decl *tu_decl_;
69 class HeaderASTConsumer : public clang::ASTConsumer {
71 HeaderASTConsumer(clang::CompilerInstance *compiler_instancep,
76 void HandleTranslationUnit(clang::ASTContext &ctx) override;
79 clang::CompilerInstance *cip_;