[clang] [Analyzer] support parenthesized list initialization (PR #148988)
Oleksandr T. via cfe-commits
cfe-commits at lists.llvm.org
Wed Jul 16 08:21:17 PDT 2025
================
@@ -1,13 +1,65 @@
-// RUN: %clang_analyze_cc1 -analyzer-checker=core.DivideZero -verify %s
+// RUN: %clang_analyze_cc1 -analyzer-checker=core.DivideZero -std=c++20 -verify %s
-int fooPR10616 (int qX ) {
+namespace GH10616 {
+int foo(int qX) {
int a, c, d;
- d = (qX-1);
- while ( d != 0 ) {
- d = c - (c/d) * d;
+ d = (qX - 1);
+ while (d != 0) {
+ d = c - (c / d) * d;
----------------
a-tarasyuk wrote:
Reverted
https://github.com/llvm/llvm-project/pull/148988
More information about the cfe-commits
mailing list