15 #ifndef LLVM_CLANG_TOOLS_EXTRA_CLANGD_COMPILER_H 16 #define LLVM_CLANG_TOOLS_EXTRA_CLANGD_COMPILER_H 18 #include "clang/Frontend/CompilerInstance.h" 19 #include "clang/Frontend/CompilerInvocation.h" 20 #include "clang/Frontend/PrecompiledPreamble.h" 27 static void log(DiagnosticsEngine::Level DiagLevel,
28 const clang::Diagnostic &
Info);
31 const clang::Diagnostic &Info)
override;
45 std::unique_ptr<clang::CompilerInvocation>,
const PrecompiledPreamble *,
46 std::unique_ptr<llvm::MemoryBuffer> MainFile,
47 std::shared_ptr<PCHContainerOperations>,
static void log(DiagnosticsEngine::Level DiagLevel, const clang::Diagnostic &Info)
===– Representation.cpp - ClangDoc Representation --------—*- C++ -*-===//
std::unique_ptr< CompilerInstance > prepareCompilerInstance(std::unique_ptr< clang::CompilerInvocation > CI, const PrecompiledPreamble *Preamble, std::unique_ptr< llvm::MemoryBuffer > Buffer, std::shared_ptr< PCHContainerOperations > PCHs, IntrusiveRefCntPtr< vfs::FileSystem > VFS, DiagnosticConsumer &DiagsClient)
Creates a compiler instance, configured so that:
void HandleDiagnostic(DiagnosticsEngine::Level DiagLevel, const clang::Diagnostic &Info) override