16 assert(!Fac &&
"Initialized twice");
21 assert(Fac &&
"Not initialized yet");
25bool FeatureModuleSet::addImpl(
void *
Key, std::unique_ptr<FeatureModule>
M,
27 if (!Map.try_emplace(
Key,
M.get()).second) {
29 elog(
"Tried to register duplicate feature modules via {0}", Source);
32 Modules.push_back(std::move(
M));
const google::protobuf::Message & M
Facilities & facilities()
Accessors for modules to access shared server facilities they depend on.
void initialize(const Facilities &F)
Called by the server to prepare this module for use.
Values in a Context are indexed by typed keys.
void elog(const char *Fmt, Ts &&... Vals)
===– Representation.cpp - ClangDoc Representation --------—*- C++ -*-===//
Shared server facilities needed by the module to get its work done.