[clang-tools-extra] [clangd] Add feature modules registry (PR #153756)
Aleksandr Platonov via cfe-commits
cfe-commits at lists.llvm.org
Mon Aug 18 23:56:58 PDT 2025
================
@@ -1017,6 +1017,13 @@ clangd accepts flags on the commandline, and in the CLANGD_FLAGS environment var
: static_cast<int>(ErrorResultCode::CheckFailed);
}
+ FeatureModuleSet ModuleSet;
+ for (FeatureModuleRegistry::entry E : FeatureModuleRegistry::entries()) {
+ vlog("Adding feature module '{0}' ({1})", E.getName(), E.getDesc());
+ ModuleSet.add(E.instantiate());
+ }
+ Opts.FeatureModules = &ModuleSet;
----------------
ArcsinX wrote:
Done
https://github.com/llvm/llvm-project/pull/153756
More information about the cfe-commits
mailing list