22 #ifndef LLVM_CLANG_TOOLS_EXTRA_CLANGD_PREAMBLE_H 23 #define LLVM_CLANG_TOOLS_EXTRA_CLANGD_PREAMBLE_H 31 #include "clang/Frontend/PrecompiledPreamble.h" 32 #include "clang/Tooling/CompilationDatabase.h" 48 std::unique_ptr<PreambleFileStatusCache>
StatCache,
68 std::function<void(ASTContext &, std::shared_ptr<clang::Preprocessor>,
77 std::shared_ptr<const PreambleData>
79 std::shared_ptr<const PreambleData> OldPreamble,
80 const tooling::CompileCommand &OldCompileCommand,
88 #endif // LLVM_CLANG_TOOLS_EXTRA_CLANGD_PREAMBLE_H PreambleData(PrecompiledPreamble Preamble, std::vector< Diag > Diags, IncludeStructure Includes, MainFileMacros Macros, std::unique_ptr< PreambleFileStatusCache > StatCache, CanonicalIncludes CanonIncludes)
llvm::StringRef PathRef
A typedef to represent a ref to file path.
std::shared_ptr< const PreambleData > buildPreamble(PathRef FileName, CompilerInvocation &CI, std::shared_ptr< const PreambleData > OldPreamble, const tooling::CompileCommand &OldCompileCommand, const ParseInputs &Inputs, bool StoreInMemory, PreambleParsedCallback PreambleCallback)
Build a preamble for the new inputs unless an old one can be reused.
Maps a definition location onto an #include file, based on a set of filename rules.
CanonicalIncludes CanonIncludes
std::unique_ptr< PreambleFileStatusCache > StatCache
std::function< void(ASTContext &, std::shared_ptr< clang::Preprocessor >, const CanonicalIncludes &)> PreambleParsedCallback
tooling::CompileCommand CompileCommand
===– Representation.cpp - ClangDoc Representation --------—*- C++ -*-===//
std::vector< Diag > Diags
PrecompiledPreamble Preamble
IncludeStructure Includes
The parsed preamble and associated data.