[clang] [clang][NFC] Fix the static assertion in 4797437 (PR #120643)

via cfe-commits cfe-commits at lists.llvm.org
Thu Dec 19 14:33:40 PST 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 d33a2c58112bdd74225b0ff4f07acc49bed7e6ea d1b45d14157f9adf4ec8f41840f269b262ee8da6 --extensions h -- clang/include/clang/AST/Stmt.h
``````````

</details>

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

``````````diff
diff --git a/clang/include/clang/AST/Stmt.h b/clang/include/clang/AST/Stmt.h
index 73dacc6dca..f188bd47f5 100644
--- a/clang/include/clang/AST/Stmt.h
+++ b/clang/include/clang/AST/Stmt.h
@@ -114,9 +114,9 @@ protected:
 #define STMT(CLASS, PARENT)
 #define STMT_RANGE(BASE, FIRST, LAST)
 #define LAST_STMT_RANGE(BASE, FIRST, LAST)                                     \
-  static_assert(llvm::isUInt<NumStmtBits>(                                     \
-      StmtClass::LAST##Class), "The number of 'StmtClass'es is strictly bound " \
-                              "by a bitfield of width NumStmtBits");
+  static_assert(llvm::isUInt<NumStmtBits>(StmtClass::LAST##Class),             \
+                "The number of 'StmtClass'es is strictly bound "               \
+                "by a bitfield of width NumStmtBits");
 #define ABSTRACT_STMT(STMT)
 #include "clang/AST/StmtNodes.inc"
 

``````````

</details>


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


More information about the cfe-commits mailing list