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::@204212152173327223063121202366143221204051341004 Policy
std::optional< std::string > FixedCDBPath
Describes an external index configuration.
enum clang::clangd::Config::ExternalIndexSpec::@216221346246105351024304277277130164055373233215 Kind
std::string Location
This is one of:
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::@224206046260313204212274150166346126315121140114::@177170157270305170147304143303331271375010045063 ClangTidy
Configures what clang-tidy checks to run and options to use with them.
FastCheckPolicy FastCheckFilter
struct clang::clangd::Config::@207031361004214306046114203113272307064216033306 Completion
Configures code completion feature.
struct clang::clangd::Config::@200054163263130041273073333055327265124363067160 InlayHints
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.
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
struct clang::clangd::Config::@224206046260313204212274150166346126315121140114::@156270132341007275067327044370330143015036321054 Includes
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.
struct clang::clangd::Config::@340212122325041323223256240301061135214102252040 Documentation
IncludesPolicy UnusedIncludes
std::vector< std::function< bool(llvm::StringRef)> > QuotedHeaders
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::@224206046260313204212274150166346126315121140114 Diagnostics
Controls warnings and errors when parsing code.
llvm::StringMap< std::string > CheckOptions
Config & operator=(Config &&)=default
struct clang::clangd::Config::@072252370142323110175010006107105013140064217165 Index
Controls index behavior.
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
struct clang::clangd::Config::@365336221326264215251130354321073040111277322060 Style
Style of the codebase.
bool Enabled
If false, inlay hints are completely disabled.
HeaderInsertionPolicy HeaderInsertion
Controls if headers should be inserted when completions are accepted.
struct clang::clangd::Config::@221333032074173032305210224173260176341176220132 CompileFlags
Controls how the compile command for the current file is determined.
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