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>>
186template <>
struct DenseMapInfo<
clang::clangd::Config::ExternalIndexSpec> {
189 return {ExternalIndexSpec::File,
"",
""};
192 return {ExternalIndexSpec::File,
"TOMB",
"STONE"};
Values in a Context are indexed by typed keys.
===– Representation.cpp - ClangDoc Representation --------—*- C++ -*-===//
Some operations such as code completion produce a set of candidates.
enum clang::clangd::Config::CDBSearchSpec::@10 Policy
std::optional< std::string > FixedCDBPath
Describes an external index configuration.
enum clang::clangd::Config::ExternalIndexSpec::@11 Kind
std::string Location
This is one of:
std::string MountPoint
Absolute path to source root this index is associated with, uses forward-slashes.
Settings that express user/project preferences and control clangd behavior.
static clangd::Key< Config > Key
Context key which can be used to set the current Config.
struct clang::clangd::Config::@9 SemanticTokens
struct clang::clangd::Config::@4::@13 Includes
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.
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.
struct clang::clangd::Config::@5 Style
Style of the codebase.
Config & operator=(const Config &)=delete
ExternalIndexSpec External
struct clang::clangd::Config::@4::@12 ClangTidy
Configures what clang-tidy checks to run and options to use with them.
std::vector< std::function< bool(llvm::StringRef)> > IgnoreHeader
IncludeCleaner will not diagnose usages of these headers matched by these regexes.
struct clang::clangd::Config::@2 CompileFlags
Controls how the compile command for the current file is determined.
Config(const Config &)=delete
std::vector< std::string > DisabledKinds
Controls highlighting kinds that are disabled.
IncludesPolicy UnusedIncludes
std::vector< std::function< bool(llvm::StringRef)> > QuotedHeaders
struct clang::clangd::Config::@6 Completion
Configures code completion feature.
std::vector< std::string > FullyQualifiedNamespaces
bool AnalyzeAngledIncludes
Config(Config &&)=default
struct clang::clangd::Config::@3 Index
Controls index behavior.
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::@7 Hover
Configures hover feature.
llvm::StringMap< std::string > CheckOptions
Config & operator=(Config &&)=default
struct clang::clangd::Config::@4 Diagnostics
Controls warnings and errors when parsing code.
std::vector< std::string > DisabledModifiers
Controls highlighting modifiers that are disabled.
std::vector< std::function< bool(llvm::StringRef)> > AngledHeaders
bool Enabled
If false, inlay hints are completely disabled.
struct clang::clangd::Config::@8 InlayHints
static ExternalIndexSpec getEmptyKey()
static ExternalIndexSpec getTombstoneKey()
static unsigned getHashValue(const ExternalIndexSpec &Val)
static bool isEqual(const ExternalIndexSpec &LHS, const ExternalIndexSpec &RHS)