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"
66 std::vector<llvm::unique_function<void(std::vector<std::string> &)
const>>
221template <>
struct DenseMapInfo<
clang::clangd::Config::ExternalIndexSpec> {
Values in a Context are indexed by typed keys.
FIXME: Skip testing on windows temporarily due to the different escaping code mode.
===– Representation.cpp - ClangDoc Representation --------—*- C++ -*-===//
Some operations such as code completion produce a set of candidates.
enum clang::clangd::Config::CDBSearchSpec::@161062317271326205360254020036256036377317332042 Policy
std::optional< std::string > FixedCDBPath
Describes an external index configuration.
std::string Location
This is one of:
enum clang::clangd::Config::ExternalIndexSpec::@312203371027245331141003236204003120156040237037 Kind
std::string MountPoint
Absolute path to source root this index is associated with, uses forward-slashes.
static clangd::Key< Config > Key
Context key which can be used to set the current Config.
struct clang::clangd::Config::@314053012031341203055315320366267371313202370174 Style
Style of the codebase.
struct clang::clangd::Config::@347104204155140144054042115114221214347344026246 CompileFlags
Controls how the compile command for the current file is determined.
FastCheckPolicy FastCheckFilter
bool AllScopes
Whether code completion includes results that are not visible in current scopes.
static const Config & current()
Returns the Config of the current Context, or an empty configuration.
ArgumentListsPolicy
controls the completion options for argument lists.
@ Delimiters
empty pair of delimiters "()" or "<>".
@ OpenDelimiter
open, only opening delimiter "(" or "<".
@ FullPlaceholders
full name of both type and variable.
@ Strict
Diagnose missing and unused includes.
ArgumentListsPolicy ArgumentLists
controls the completion options for argument lists.
@ Markdown
Treat comments as Markdown.
@ Doxygen
Treat comments as doxygen.
@ PlainText
Treat comments as plain text.
struct clang::clangd::Config::@025253107333106252106023001214215004273337014125 Completion
Configures code completion feature.
struct clang::clangd::Config::@343034053122374337352226322054223376344037116252 Diagnostics
Controls warnings and errors when parsing code.
CDBSearchSpec CDBSearch
Where to search for compilation databases for this file's flags.
BackgroundPolicy Background
Whether this TU should be background-indexed.
bool ShowAKA
Whether hover show a.k.a type.
Config & operator=(const Config &)=delete
ExternalIndexSpec External
std::vector< std::function< bool(llvm::StringRef)> > IgnoreHeader
IncludeCleaner will not diagnose usages of these headers matched by these regexes.
Config(const Config &)=delete
std::vector< std::string > DisabledKinds
Controls highlighting kinds that are disabled.
IncludesPolicy UnusedIncludes
struct clang::clangd::Config::@343034053122374337352226322054223376344037116252::@107156241027253143221327255130274177352007274355 ClangTidy
Configures what clang-tidy checks to run and options to use with them.
std::vector< std::function< bool(llvm::StringRef)> > QuotedHeaders
struct clang::clangd::Config::@107213227304366036033370262336131167154154367111 Index
Controls index behavior.
std::vector< std::string > FullyQualifiedNamespaces
bool AnalyzeAngledIncludes
CodePatternsPolicy CodePatterns
Enables code patterns & snippets suggestions.
Config(Config &&)=default
IncludesPolicy MissingIncludes
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::@041344304366110202143331236314370324353035136032 InlayHints
llvm::StringMap< std::string > CheckOptions
Config & operator=(Config &&)=default
struct clang::clangd::Config::@343034053122374337352226322054223376344037116252::@071062222350100361347361256113054264067045123352 Includes
struct clang::clangd::Config::@205014242342057164216030136313205137334246150047 Documentation
BuiltinHeaderPolicy BuiltinHeaders
Whether to use clangd's own builtin headers, or ones from the system include extractor,...
std::vector< std::string > DisabledModifiers
Controls highlighting modifiers that are disabled.
CommentFormatPolicy CommentFormat
uint32_t MacroContentsLimit
Limit the number of characters returned when hovering a macro; 0 is no limit.
std::vector< std::function< bool(llvm::StringRef)> > AngledHeaders
bool Enabled
If false, inlay hints are completely disabled.
HeaderInsertionPolicy HeaderInsertion
Controls if headers should be inserted when completions are accepted.
A versioned set of tokens.
static ExternalIndexSpec getEmptyKey()
static ExternalIndexSpec getTombstoneKey()
static unsigned getHashValue(const ExternalIndexSpec &Val)
static bool isEqual(const ExternalIndexSpec &LHS, const ExternalIndexSpec &RHS)
clang::clangd::Config::ExternalIndexSpec ExternalIndexSpec