================ @@ -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; ---------------- kadircet wrote:
can you make this conditioned on `ModuleSet.begin() != ModuleSet.end()` ? we got a bunch of extra logic that'll trigger when moduleset is non-null (even if it's empty), it'd be nice to avoid that. https://github.com/llvm/llvm-project/pull/153756 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits