10 #ifndef LLVM_CLANG_TOOLS_EXTRA_FIND_ALL_SYMBOLS_FIND_ALL_SYMBOLS_ACTION_H 11 #define LLVM_CLANG_TOOLS_EXTRA_FIND_ALL_SYMBOLS_FIND_ALL_SYMBOLS_ACTION_H 16 #include "clang/ASTMatchers/ASTMatchFinder.h" 17 #include "clang/Frontend/CompilerInstance.h" 18 #include "clang/Frontend/FrontendAction.h" 19 #include "clang/Tooling/Tooling.h" 20 #include "llvm/ADT/StringRef.h" 24 namespace find_all_symbols {
32 std::unique_ptr<clang::ASTConsumer>
34 StringRef InFile)
override;
38 clang::ast_matchers::MatchFinder MatchFinder;
49 : Reporter(Reporter), RegexHeaderMap(RegexHeaderMap) {}
51 clang::FrontendAction *
create()
override {
63 #endif // LLVM_CLANG_TOOLS_EXTRA_FIND_ALL_SYMBOLS_FIND_ALL_SYMBOLS_ACTION_H std::unique_ptr< clang::ASTConsumer > CreateASTConsumer(clang::CompilerInstance &Compiler, StringRef InFile) override
FindAllSymbolsActionFactory(SymbolReporter *Reporter, const HeaderMapCollector::RegexHeaderMap *RegexHeaderMap=nullptr)
clang::FrontendAction * create() override
FindAllSymbols collects all classes, free standing functions and global variables with some extra inf...
An interface for classes that collect symbols.
===– Representation.cpp - ClangDoc Representation --------—*- C++ -*-===//
FindAllSymbolsAction(SymbolReporter *Reporter, const HeaderMapCollector::RegexHeaderMap *RegexHeaderMap=nullptr)