[clang] [WIP] Implement `print-deserialized-declarations` flag to dump source… (PR #133910)

Viktoriia Bakalova via cfe-commits cfe-commits at lists.llvm.org
Thu Apr 3 04:55:55 PDT 2025


================
@@ -139,16 +283,17 @@ FrontendAction::CreateWrappedASTConsumer(CompilerInstance &CI,
     return nullptr;
 
   // If there are no registered plugins we don't need to wrap the consumer
-  if (FrontendPluginRegistry::begin() == FrontendPluginRegistry::end())
-    return Consumer;
+  if (FrontendPluginRegistry::begin() == FrontendPluginRegistry::end()) {
----------------
VitaNuo wrote:

But what happens then if `FrontendPluginRegistry` isn't empty? We would skip extra plugins, which seems wrong.

https://github.com/llvm/llvm-project/pull/133910


More information about the cfe-commits mailing list