Go to the documentation of this file.
15 #ifndef LLVM_CLANG_TOOLS_EXTRA_CLANGD_COMPILER_H
16 #define LLVM_CLANG_TOOLS_EXTRA_CLANGD_COMPILER_H
18 #include "../clang-tidy/ClangTidyOptions.h"
22 #include "clang/Frontend/CompilerInstance.h"
23 #include "clang/Frontend/PrecompiledPreamble.h"
24 #include "clang/Tooling/CompilationDatabase.h"
31 static void log(DiagnosticsEngine::Level DiagLevel,
62 std::unique_ptr<CompilerInvocation>
64 std::vector<std::string> *CC1Args =
nullptr);
77 std::unique_ptr<clang::CompilerInvocation>,
const PrecompiledPreamble *,
78 std::unique_ptr<llvm::MemoryBuffer>
MainFile,
84 #endif // LLVM_CLANG_TOOLS_EXTRA_CLANGD_COMPILER_H
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)
bool SuggestMissingIncludes
tidy::ClangTidyOptions ClangTidyOpts
bool PreserveRecoveryASTType
Contains options for clang-tidy.
DiagnosticCallback Diagnostic
void HandleDiagnostic(DiagnosticsEngine::Level DiagLevel, const clang::Diagnostic &Info) override
std::unique_ptr< CompilerInvocation > buildCompilerInvocation(const ParseInputs &Inputs, clang::DiagnosticConsumer &D, std::vector< std::string > *CC1Args)
Builds compiler invocation that could be used to build AST or preamble.
Interface for symbol indexes that can be used for searching or matching symbols among a set of symbol...
Wrapper for vfs::FileSystem for use in multithreaded programs like clangd.
===– Representation.cpp - ClangDoc Representation --------—*- C++ -*-===//
static void log(DiagnosticsEngine::Level DiagLevel, const clang::Diagnostic &Info)