clang-tools
11.0.0
|
A source of configuration fragments. More...
#include <ConfigProvider.h>
Public Member Functions | |
virtual | ~Provider ()=default |
Config | getConfig (const Params &, DiagnosticCallback) const |
Build a config based on this provider. More... | |
Static Public Member Functions | |
static std::unique_ptr< Provider > | fromYAMLFile (llvm::StringRef AbsPathPath, const ThreadsafeFS &) |
static std::unique_ptr< Provider > | fromAncestorRelativeYAMLFiles (llvm::StringRef RelPath, const ThreadsafeFS &) |
static std::unique_ptr< Provider > | combine (std::vector< const Provider * >) |
A provider that includes fragments from all the supplied providers. More... | |
A source of configuration fragments.
Generally these providers reflect a fixed policy for obtaining config, but return different concrete configuration over time. e.g. a provider that reads config from files is responsive to file changes.
Definition at line 60 of file ConfigProvider.h.
|
virtualdefault |
|
static |
A provider that includes fragments from all the supplied providers.
Order is preserved; later providers take precedence over earlier ones.
Definition at line 196 of file ConfigProvider.cpp.
|
static |
Definition at line 131 of file ConfigProvider.cpp.
References FS.
|
static |
Definition at line 107 of file ConfigProvider.cpp.
References FS.
Config clang::clangd::config::Provider::getConfig | ( | const Params & | P, |
DiagnosticCallback | DC | ||
) | const |
Build a config based on this provider.
Definition at line 215 of file ConfigProvider.cpp.
References clang::clangd::config::Params::Path, SPAN_ATTACH, and Tracer.