17 #ifndef LLVM_CLANG_TOOLS_EXTRA_CLANG_DOC_MAPPER_H 18 #define LLVM_CLANG_TOOLS_EXTRA_CLANG_DOC_MAPPER_H 21 #include "clang/AST/RecursiveASTVisitor.h" 22 #include "clang/Tooling/Execution.h" 36 void HandleTranslationUnit(ASTContext &Context)
override;
37 bool VisitNamespaceDecl(
const NamespaceDecl *D);
38 bool VisitRecordDecl(
const RecordDecl *D);
39 bool VisitEnumDecl(
const EnumDecl *D);
40 bool VisitCXXMethodDecl(
const CXXMethodDecl *D);
41 bool VisitFunctionDecl(
const FunctionDecl *D);
44 template <
typename T>
bool mapDecl(
const T *D);
46 int getLine(
const NamedDecl *D,
const ASTContext &Context)
const;
47 llvm::SmallString<128> getFile(
const NamedDecl *D,
const ASTContext &Context,
49 bool &IsFileInRootDir)
const;
50 comments::FullComment *getComment(
const NamedDecl *D,
51 const ASTContext &Context)
const;
59 #endif // LLVM_CLANG_TOOLS_EXTRA_CLANG_DOC_MAPPER_H
===– Representation.cpp - ClangDoc Representation --------—*- C++ -*-===//
MapASTVisitor(ASTContext *Ctx, ClangDocContext CDCtx)