18#include "clang/AST/AST.h"
19#include "clang/AST/ASTConsumer.h"
20#include "clang/AST/ASTContext.h"
21#include "clang/AST/RecursiveASTVisitor.h"
22#include "clang/Frontend/ASTConsumers.h"
23#include "clang/Frontend/CompilerInstance.h"
24#include "clang/Frontend/FrontendActions.h"
32 std::unique_ptr<FrontendAction>
create()
override;
39 class ClangDocAction :
public clang::ASTFrontendAction {
43 std::unique_ptr<clang::ASTConsumer>
44 CreateASTConsumer(clang::CompilerInstance &Compiler,
45 llvm::StringRef InFile)
override {
46 return std::make_unique<MapASTVisitor>(&Compiler.getASTContext(), CDCtx);
52 return std::make_unique<ClangDocAction>(CDCtx);
55std::unique_ptr<tooling::FrontendActionFactory>
57 return std::make_unique<MapperActionFactory>(CDCtx);
MapperActionFactory(ClangDocContext CDCtx)
std::unique_ptr< FrontendAction > create() override
std::unique_ptr< tooling::FrontendActionFactory > newMapperActionFactory(ClangDocContext CDCtx)
===– Representation.cpp - ClangDoc Representation --------—*- C++ -*-===//