[clang] [Analyzer] support parenthesized list initialization (PR #148988)
Arseniy Zaostrovnykh via cfe-commits
cfe-commits at lists.llvm.org
Wed Jul 16 08:16:52 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
----------------
necto wrote:
This change reduces test coverage. This PR demonstrates that the difference between C++ standards is not negligible, so I would prefer running the test for C++20 and pre-C++20 (whichever it was before, C++17?). Yet the added code is incorrect pre-C++20, so perhaps it worth it adding a separate test file to avoid complicating conditional compilation logic.
https://github.com/llvm/llvm-project/pull/148988
More information about the cfe-commits
mailing list