clang-tools
11.0.0
|
Settings that express user/project preferences and control clangd behavior. More...
#include <Config.h>
Public Types | |
enum | BackgroundPolicy { BackgroundPolicy::Build, BackgroundPolicy::Skip } |
Public Member Functions | |
Config ()=default | |
Config (const Config &)=delete | |
Config & | operator= (const Config &)=delete |
Config (Config &&)=default | |
Config & | operator= (Config &&)=default |
Static Public Member Functions | |
static const Config & | current () |
Returns the Config of the current Context, or an empty configuration. More... | |
Public Attributes | |
struct { | |
std::vector< llvm::unique_function< void(std::vector< std::string > &) const > > Edits | |
} | CompileFlags |
Controls how the compile command for the current file is determined. More... | |
struct { | |
BackgroundPolicy Background = BackgroundPolicy::Build | |
Whether this TU should be indexed. More... | |
} | Index |
Controls background-index behavior. More... | |
Static Public Attributes | |
static clangd::Key< Config > | Key |
Context key which can be used to set the current Config. More... | |
Settings that express user/project preferences and control clangd behavior.
Generally, features should consume Config::current() and the caller is responsible for setting it appropriately. In practice these callers are ClangdServer, TUScheduler, and BackgroundQueue.
|
strong |
|
default |
|
delete |
|
default |
|
static |
Returns the Config of the current Context, or an empty configuration.
Definition at line 17 of file Config.cpp.
References clang::clangd::Context::current().
Referenced by clang::clangd::CommandMangler::adjust().
BackgroundPolicy clang::clangd::Config::Background = BackgroundPolicy::Build |
struct { ... } clang::clangd::Config::CompileFlags |
Controls how the compile command for the current file is determined.
std::vector<llvm::unique_function<void(std::vector<std::string> &) const> > clang::clangd::Config::Edits |
Definition at line 56 of file Config.h.
Referenced by clang::clangd::CommandMangler::adjust().
struct { ... } clang::clangd::Config::Index |
Controls background-index behavior.