[clang] [Clang][NFC] Enumerate Clang abi versions in a separate header file (PR #151995)

via cfe-commits cfe-commits at lists.llvm.org
Mon Aug 4 09:27:10 PDT 2025


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 HEAD~1 HEAD --extensions h,cpp -- clang/include/clang/Basic/LangOptions.h clang/lib/Frontend/CompilerInvocation.cpp
``````````

</details>

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

``````````diff
diff --git a/clang/lib/Frontend/CompilerInvocation.cpp b/clang/lib/Frontend/CompilerInvocation.cpp
index c409cbee9..5a38a12ba 100644
--- a/clang/lib/Frontend/CompilerInvocation.cpp
+++ b/clang/lib/Frontend/CompilerInvocation.cpp
@@ -4462,7 +4462,8 @@ bool CompilerInvocation::ParseLangArgs(LangOptions &Opts, ArgList &Args,
     Opts.setClangABICompat(LangOptions::ClangABI::Ver##Major_);                \
   else
 #include "clang/Basic/ABIVersions.def"
-      {} // sub-statement of the last else branch
+      {
+      } // sub-statement of the last else branch
     } else if (Ver != "latest") {
       Diags.Report(diag::err_drv_invalid_value)
           << A->getAsString(Args) << A->getValue();

``````````

</details>


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


More information about the cfe-commits mailing list