[clang] [C++20] [Modules] Introduce -fgen-reduced-bmi (PR #85050)
via cfe-commits
cfe-commits at lists.llvm.org
Mon Mar 25 19:48:20 PDT 2024
github-actions[bot] wrote:
<!--LLVM CODE FORMAT COMMENT: {clang-format}-->
:warning: C/C++ code formatter, clang-format found issues in your code. :warning:
<details>
<summary>
You can test this locally with the following command:
</summary>
``````````bash
git-clang-format --diff 93f9fb2c825dba48db64d5f726b54bcbd4766009 527b69efe66961aa7d7febcdda66f042f50adf2b -- clang/test/Driver/module-fgen-reduced-bmi.cppm clang/test/Modules/modules-reduced-bmi.cppm clang/include/clang/CodeGen/CodeGenAction.h clang/include/clang/Frontend/FrontendOptions.h clang/include/clang/Serialization/ASTWriter.h clang/lib/CodeGen/CodeGenAction.cpp clang/lib/Driver/Driver.cpp clang/lib/Driver/ToolChains/Clang.cpp clang/lib/Driver/ToolChains/Clang.h clang/lib/Frontend/FrontendActions.cpp clang/lib/Frontend/PrecompiledPreamble.cpp clang/lib/Serialization/GeneratePCH.cpp
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/clang/lib/Driver/ToolChains/Clang.cpp b/clang/lib/Driver/ToolChains/Clang.cpp
index 626d594f17..16cc7e2ec6 100644
--- a/clang/lib/Driver/ToolChains/Clang.cpp
+++ b/clang/lib/Driver/ToolChains/Clang.cpp
@@ -4042,9 +4042,9 @@ static bool RenderModulesOptions(Compilation &C, const Driver &D,
// module fragment.
CmdArgs.push_back("-fskip-odr-check-in-gmf");
- // Noop if we see '-fmodules-reduced-bmi' with other translation units than module
- // units. This is more user friendly to allow end uers to enable this feature
- // without asking for help from build systems.
+ // Noop if we see '-fmodules-reduced-bmi' with other translation units than
+ // module units. This is more user friendly to allow end uers to enable this
+ // feature without asking for help from build systems.
if (Args.hasArg(options::OPT_modules_reduced_bmi) &&
(Input.getType() == driver::types::TY_CXXModule ||
Input.getType() == driver::types::TY_PP_CXXModule)) {
``````````
</details>
https://github.com/llvm/llvm-project/pull/85050
More information about the cfe-commits
mailing list