[clang] [clang][driver][clang-cl] Fix unused argument warning for `/std:c++20` for precompiled module inputs to `clang-cl` (PR #99300)

via cfe-commits cfe-commits at lists.llvm.org
Tue Aug 6 13:37:58 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 2e9f15e1dfd8bc90d0cd91157c8b3b036cee981e cbe5a79ca48a888917863dd807ebcfefb2385d74 --extensions cpp -- clang/lib/Driver/Types.cpp
``````````

</details>

<details>
<summary>
View the diff from clang-format here.
</summary>

``````````diff
diff --git a/clang/lib/Driver/Types.cpp b/clang/lib/Driver/Types.cpp
index 842eb59b73..2b9b391c19 100644
--- a/clang/lib/Driver/Types.cpp
+++ b/clang/lib/Driver/Types.cpp
@@ -242,7 +242,7 @@ bool types::isCXX(ID Id) {
   case TY_CXXHUHeader:
   case TY_PP_CXXHeaderUnit:
   case TY_ObjCXXHeader: case TY_PP_ObjCXXHeader:
-  case TY_CXXModule: 
+  case TY_CXXModule:
   case TY_PP_CXXModule:
   case TY_ModuleFile:
   case TY_PP_CLCXX:

``````````

</details>


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


More information about the cfe-commits mailing list