Go to the documentation of this file.
24 #ifndef LLVM_CLANG_TOOLS_EXTRA_CLANGD_CONFIG_H
25 #define LLVM_CLANG_TOOLS_EXTRA_CLANGD_CONFIG_H
28 #include "llvm/ADT/FunctionExtras.h"
29 #include "llvm/ADT/StringMap.h"
30 #include "llvm/ADT/StringSet.h"
65 std::vector<llvm::unique_function<void(std::vector<std::string> &)
const>>
155 template <>
struct DenseMapInfo<
clang::clangd::Config::ExternalIndexSpec> {
158 return {ExternalIndexSpec::File,
"",
""};
161 return {ExternalIndexSpec::File,
"TOMB",
"STONE"};
Some operations such as code completion produce a set of candidates.
bool AllScopes
Whether code completion includes results that are not visible in current scopes.
enum clang::clangd::Config::CDBSearchSpec::@9 Policy
struct clang::clangd::Config::@7 Hover
Configures hover feature.
bool Enabled
If false, inlay hints are completely disabled.
std::vector< llvm::unique_function< void(std::vector< std::string > &) const > > Edits
Edits to apply to the compile command, in sequence.
struct clang::clangd::Config::@3 Index
Controls index behavior.
struct clang::clangd::Config::@5 Style
Style of the codebase.
struct clang::clangd::Config::@4::@12 Includes
IncludeCleaner will not diagnose usages of these headers matched by these regexes.
Settings that express user/project preferences and control clangd behavior.
Config & operator=(const Config &)=delete
enum clang::clangd::Config::ExternalIndexSpec::@10 Kind
static unsigned getHashValue(const ExternalIndexSpec &Val)
struct clang::clangd::Config::@4::@11 ClangTidy
Configures what clang-tidy checks to run and options to use with them.
static ExternalIndexSpec getTombstoneKey()
Values in a Context are indexed by typed keys.
struct clang::clangd::Config::@6 Completion
Configures code completion feature.
static bool isEqual(const ExternalIndexSpec &LHS, const ExternalIndexSpec &RHS)
UnusedIncludesPolicy UnusedIncludes
BackgroundPolicy Background
Whether this TU should be background-indexed.
@ Experiment
The same as Strict, but using the include-cleaner library.
std::vector< std::function< bool(llvm::StringRef)> > IgnoreHeader
@ Strict
Diagnose unused includes.
struct clang::clangd::Config::@8 InlayHints
std::optional< std::string > FixedCDBPath
std::string MountPoint
Absolute path to source root this index is associated with, uses forward-slashes.
CDBSearchSpec CDBSearch
Where to search for compilation databases for this file's flags.
===– Representation.cpp - ClangDoc Representation --------—*- C++ -*-===//
Describes an external index configuration.
static const Config & current()
Returns the Config of the current Context, or an empty configuration.
llvm::StringMap< std::string > CheckOptions
std::vector< std::string > FullyQualifiedNamespaces
static clangd::Key< Config > Key
Context key which can be used to set the current Config.
struct clang::clangd::Config::@4 Diagnostics
Controls warnings and errors when parsing code.
ExternalIndexSpec External
std::string Location
This is one of:
static ExternalIndexSpec getEmptyKey()
struct clang::clangd::Config::@2 CompileFlags
Controls how the compile command for the current file is determined.
bool ShowAKA
Whether hover show a.k.a type.