15 #ifndef LLVM_CLANG_TOOLS_EXTRA_CLANGD_COMPILER_H 16 #define LLVM_CLANG_TOOLS_EXTRA_CLANGD_COMPILER_H 18 #include "../clang-tidy/ClangTidyOptions.h" 21 #include "clang/Frontend/CompilerInstance.h" 22 #include "clang/Frontend/PrecompiledPreamble.h" 23 #include "clang/Tooling/CompilationDatabase.h" 30 static void log(DiagnosticsEngine::Level DiagLevel,
31 const clang::Diagnostic &
Info);
34 const clang::Diagnostic &Info)
override;
40 bool SuggestMissingIncludes =
false;
46 IntrusiveRefCntPtr<llvm::vfs::FileSystem>
FS;
54 std::unique_ptr<CompilerInvocation>
68 std::unique_ptr<clang::CompilerInvocation>,
const PrecompiledPreamble *,
69 std::unique_ptr<llvm::MemoryBuffer>
MainFile,
75 #endif // LLVM_CLANG_TOOLS_EXTRA_CLANGD_COMPILER_H
static void log(DiagnosticsEngine::Level DiagLevel, const clang::Diagnostic &Info)
Interface for symbol indexes that can be used for searching or matching symbols among a set of symbol...
Contains options for clang-tidy.
std::unique_ptr< CompilerInstance > prepareCompilerInstance(std::unique_ptr< clang::CompilerInvocation > CI, const PrecompiledPreamble *Preamble, std::unique_ptr< llvm::MemoryBuffer > Buffer, llvm::IntrusiveRefCntPtr< llvm::vfs::FileSystem > VFS, DiagnosticConsumer &DiagsClient)
tidy::ClangTidyOptions ClangTidyOpts
std::unique_ptr< CompilerInvocation > buildCompilerInvocation(const ParseInputs &Inputs)
Builds compiler invocation that could be used to build AST or preamble.
===– Representation.cpp - ClangDoc Representation --------—*- C++ -*-===//
void HandleDiagnostic(DiagnosticsEngine::Level DiagLevel, const clang::Diagnostic &Info) override
const SymbolIndex * Index