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"
23namespace 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);
std::unique_ptr< FrontendAction > create() override
FindAllSymbolsActionFactory(SymbolReporter *Reporter, const HeaderMapCollector::RegexHeaderMap *RegexHeaderMap=nullptr)
std::unique_ptr< clang::ASTConsumer > CreateASTConsumer(clang::CompilerInstance &Compiler, StringRef InFile) 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++ -*-===//