[clang] [clang][Sema] Fix for enums overflowing (#24667) (PR #78742)
via cfe-commits
cfe-commits at lists.llvm.org
Fri Jan 19 08:30:31 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 5f41cef58f72ebe950cc9777a8e29d1d28e543d4 0bee966adc8c16ecdf6aa6d8a47f4837ebc3d771 -- clang/lib/Sema/SemaDecl.cpp clang/test/SemaCXX/enum.cpp
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/clang/lib/Sema/SemaDecl.cpp b/clang/lib/Sema/SemaDecl.cpp
index fd63b7296c..b2b7e4faba 100644
--- a/clang/lib/Sema/SemaDecl.cpp
+++ b/clang/lib/Sema/SemaDecl.cpp
@@ -19799,7 +19799,7 @@ EnumConstantDecl *Sema::CheckEnumConstant(EnumDecl *Enum,
} else {
assert(false && "Enum Type is not basic integral type");
}
-
+
} else {
// There is no integral type larger enough to represent this
// value. Complain, then allow the value to wrap around.
``````````
</details>
https://github.com/llvm/llvm-project/pull/78742
More information about the cfe-commits
mailing list