clang-tools 20.0.0git
|
A FeatureModuleSet is a collection of feature modules installed in clangd. More...
#include <FeatureModule.h>
Public Types | |
using | iterator = llvm::pointee_iterator< decltype(Modules)::iterator > |
using | const_iterator = llvm::pointee_iterator< decltype(Modules)::const_iterator > |
Public Member Functions | |
FeatureModuleSet ()=default | |
iterator | begin () |
iterator | end () |
const_iterator | begin () const |
const_iterator | end () const |
template<typename Mod > | |
bool | add (std::unique_ptr< Mod > M) |
template<typename Mod > | |
Mod * | get () |
template<typename Mod > | |
const Mod * | get () const |
A FeatureModuleSet is a collection of feature modules installed in clangd.
Modules can be looked up by type, or used via the FeatureModule interface. This allows individual modules to expose a public API. For this reason, there can be only one feature module of each type.
The set owns the modules. It is itself owned by main, not ClangdServer.
Definition at line 151 of file FeatureModule.h.
using clang::clangd::FeatureModuleSet::const_iterator = llvm::pointee_iterator<decltype(Modules)::const_iterator> |
Definition at line 168 of file FeatureModule.h.
using clang::clangd::FeatureModuleSet::iterator = llvm::pointee_iterator<decltype(Modules)::iterator> |
Definition at line 167 of file FeatureModule.h.
|
default |
|
inline |
Definition at line 175 of file FeatureModule.h.
References M.
|
inline |
Definition at line 170 of file FeatureModule.h.
|
inline |
Definition at line 172 of file FeatureModule.h.
|
inline |
Definition at line 171 of file FeatureModule.h.
|
inline |
Definition at line 173 of file FeatureModule.h.
|
inline |
Definition at line 178 of file FeatureModule.h.
Referenced by clang::clangd::ClangdServer::featureModule().
|
inline |
Definition at line 181 of file FeatureModule.h.