9 #ifndef LLVM_CLANG_TOOLS_EXTRA_FIND_ALL_SYMBOLS_FIND_ALL_SYMBOLS_ACTION_H
10 #define LLVM_CLANG_TOOLS_EXTRA_FIND_ALL_SYMBOLS_FIND_ALL_SYMBOLS_ACTION_H
15 #include "clang/ASTMatchers/ASTMatchFinder.h"
16 #include "clang/Frontend/CompilerInstance.h"
17 #include "clang/Frontend/FrontendAction.h"
18 #include "clang/Tooling/Tooling.h"
19 #include "llvm/ADT/StringRef.h"
23 namespace find_all_symbols {
31 std::unique_ptr<clang::ASTConsumer>
33 StringRef InFile)
override;
37 clang::ast_matchers::MatchFinder MatchFinder;
48 : Reporter(Reporter), RegexHeaderMap(RegexHeaderMap) {}
50 std::unique_ptr<FrontendAction>
create()
override {
51 return std::make_unique<FindAllSymbolsAction>(Reporter, RegexHeaderMap);
62 #endif // LLVM_CLANG_TOOLS_EXTRA_FIND_ALL_SYMBOLS_FIND_ALL_SYMBOLS_ACTION_H