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"
24using namespace clang::comments;
46 template <
typename T>
bool mapDecl(
const T *D,
bool IsDefinition);
48 int getLine(
const NamedDecl *D,
const ASTContext &Context)
const;
49 llvm::SmallString<128> getFile(
const NamedDecl *D,
const ASTContext &Context,
51 bool &IsFileInRootDir)
const;
52 comments::FullComment *getComment(
const NamedDecl *D,
53 const ASTContext &Context)
const;
void HandleTranslationUnit(ASTContext &Context) override
bool VisitEnumDecl(const EnumDecl *D)
bool VisitTypedefDecl(const TypedefDecl *D)
bool VisitCXXMethodDecl(const CXXMethodDecl *D)
bool VisitTypeAliasDecl(const TypeAliasDecl *D)
bool VisitRecordDecl(const RecordDecl *D)
bool VisitFunctionDecl(const FunctionDecl *D)
bool VisitNamespaceDecl(const NamespaceDecl *D)
MapASTVisitor(ASTContext *Ctx, ClangDocContext CDCtx)
===– Representation.cpp - ClangDoc Representation --------—*- C++ -*-===//