clang-tools
15.0.0git
|
#include <ClangdLSPServer.h>
Public Attributes | |
config::Provider * | ConfigProvider = nullptr |
Supplies configuration (overrides ClangdServer::ContextProvider). More... | |
bool | UseDirBasedCDB = true |
Look for compilation databases, rather than using compile commands set via LSP (extensions) only. More... | |
llvm::Optional< OffsetEncoding > | Encoding |
The offset-encoding to use, or None to negotiate it over LSP. More... | |
std::function< void()> | MemoryCleanup = nullptr |
If set, periodically called to release memory. More... | |
clangd::CodeCompleteOptions | CodeComplete |
Per-feature options. More... | |
MarkupKind | SignatureHelpDocumentationFormat = MarkupKind::PlainText |
clangd::RenameOptions | Rename |
std::function< bool(const Tweak &)> | TweakFilter |
Returns true if the tweak should be enabled. More... | |
size_t | ReferencesLimit = 0 |
Limit the number of references returned (0 means no limit). More... | |
![]() | |
unsigned | AsyncThreadsCount = getDefaultAsyncThreadsCount() |
To process requests asynchronously, ClangdServer spawns worker threads. More... | |
ASTRetentionPolicy | RetentionPolicy |
AST caching policy. The default is to keep up to 3 ASTs in memory. More... | |
bool | StorePreamblesInMemory = true |
Cached preambles are potentially large. If false, store them on disk. More... | |
bool | BuildDynamicSymbolIndex = false |
If true, ClangdServer builds a dynamic in-memory index for symbols in opened files and uses the index to augment code completion results. More... | |
bool | BackgroundIndex = false |
If true, ClangdServer automatically indexes files in the current project on background threads. More... | |
llvm::ThreadPriority | BackgroundIndexPriority = llvm::ThreadPriority::Low |
SymbolIndex * | StaticIndex = nullptr |
If set, use this index to augment code completion results. More... | |
std::function< Context(PathRef)> | ContextProvider |
If set, queried to derive a processing context for some work. More... | |
TidyProviderRef | ClangTidyProvider |
The Options provider to use when running clang-tidy. More... | |
llvm::Optional< std::string > | WorkspaceRoot |
Clangd's workspace root. More... | |
llvm::Optional< std::string > | ResourceDir = llvm::None |
The resource directory is used to find internal headers, overriding defaults and -resource-dir compiler flag). More... | |
DebouncePolicy | UpdateDebounce |
Time to wait after a new file version before computing diagnostics. More... | |
bool | ImplicitCancellation = true |
Cancel certain requests if the file changes before they begin running. More... | |
std::vector< std::string > | QueryDriverGlobs |
Clangd will execute compiler drivers matching one of these globs to fetch system include path. More... | |
bool | FoldingRanges = false |
Enable preview of FoldingRanges feature. More... | |
FeatureModuleSet * | FeatureModules = nullptr |
bool | UseDirtyHeaders = false |
If true, use the dirty buffer contents when building Preambles. More... | |
bool | PreambleParseForwardingFunctions = false |
Additional Inherited Members | |
![]() | |
operator TUScheduler::Options () const | |
Definition at line 38 of file ClangdLSPServer.h.
clangd::CodeCompleteOptions clang::clangd::ClangdLSPServer::Options::CodeComplete |
Per-feature options.
Generally ClangdServer lets these vary per-request, but LSP allows limited/no customizations.
Definition at line 52 of file ClangdLSPServer.h.
config::Provider* clang::clangd::ClangdLSPServer::Options::ConfigProvider = nullptr |
Supplies configuration (overrides ClangdServer::ContextProvider).
Definition at line 40 of file ClangdLSPServer.h.
llvm::Optional<OffsetEncoding> clang::clangd::ClangdLSPServer::Options::Encoding |
The offset-encoding to use, or None to negotiate it over LSP.
Definition at line 45 of file ClangdLSPServer.h.
std::function<void()> clang::clangd::ClangdLSPServer::Options::MemoryCleanup = nullptr |
If set, periodically called to release memory.
Consider malloc_trim(3)
Definition at line 48 of file ClangdLSPServer.h.
size_t clang::clangd::ClangdLSPServer::Options::ReferencesLimit = 0 |
Limit the number of references returned (0 means no limit).
Definition at line 61 of file ClangdLSPServer.h.
clangd::RenameOptions clang::clangd::ClangdLSPServer::Options::Rename |
Definition at line 54 of file ClangdLSPServer.h.
MarkupKind clang::clangd::ClangdLSPServer::Options::SignatureHelpDocumentationFormat = MarkupKind::PlainText |
Definition at line 53 of file ClangdLSPServer.h.
std::function<bool(const Tweak &)> clang::clangd::ClangdLSPServer::Options::TweakFilter |
Returns true if the tweak should be enabled.
Definition at line 56 of file ClangdLSPServer.h.
bool clang::clangd::ClangdLSPServer::Options::UseDirBasedCDB = true |
Look for compilation databases, rather than using compile commands set via LSP (extensions) only.
Definition at line 43 of file ClangdLSPServer.h.