[clang] [C++20] [Modules] Introduce -fexperimental-modules-reduced-bmi (PR #85050)
Matheus Izvekov via cfe-commits
cfe-commits at lists.llvm.org
Sun Apr 14 15:53:38 PDT 2024
================
@@ -1061,6 +1070,16 @@ CodeGenAction::CreateASTConsumer(CompilerInstance &CI, StringRef InFile) {
CI.getPreprocessor().addPPCallbacks(std::move(Callbacks));
}
+ if (CI.getFrontendOpts().GenReducedBMI &&
+ !CI.getFrontendOpts().ModuleOutputPath.empty()) {
+ std::vector<std::unique_ptr<ASTConsumer>> Consumers{2};
----------------
mizvekov wrote:
Minor nit: https://llvm.org/docs/CodingStandards.html#id28
```suggestion
std::vector<std::unique_ptr<ASTConsumer>> Consumers(2);
```
https://github.com/llvm/llvm-project/pull/85050
More information about the cfe-commits
mailing list