[clang] [WIP] Implement `print-deserialized-declarations` flag to dump source… (PR #133910)
Ilya Biryukov via cfe-commits
cfe-commits at lists.llvm.org
Wed Apr 2 04:54:26 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()) {
----------------
ilya-biryukov wrote:
`if (!Consumers.empty())` seems more appropriate here. One way to look at this option is that we add an "implicit" plugin.
https://github.com/llvm/llvm-project/pull/133910
More information about the cfe-commits
mailing list