[clang] [analyzer] Do list initialization for CXXNewExpr with initializer list arg (PR #127702)
Michael Flanders via cfe-commits
cfe-commits at lists.llvm.org
Thu Feb 20 07:15:23 PST 2025
================
@@ -0,0 +1,38 @@
+// RUN: %clang_analyze_cc1 -w -verify %s\
+// RUN: -analyzer-checker=core\
+// RUN: -analyzer-checker=debug.ExprInspection -std=c++17
+// RUN: %clang_analyze_cc1 -w -verify %s\
+// RUN: -analyzer-checker=core\
+// RUN: -analyzer-checker=debug.ExprInspection -std=c++11\
+// RUN: -DTEST_INLINABLE_ALLOCATORS
+// RUN: %clang_analyze_cc1 -w -verify %s\
+// RUN: -analyzer-checker=core\
+// RUN: -analyzer-checker=debug.ExprInspection -std=c++17\
+// RUN: -DTEST_INLINABLE_ALLOCATORS
----------------
Flandini wrote:
I had just copy and pasted from the `clang/test/Analysis/initializer.cpp` RUN lines, this is the file with most of the tests added in this PR. I just assumed they were needed, but probably fine with just one plain `-cc1 -verify -analyzer-checker=core,debug.ExprInspection` then?
Changed in 959866ac0cf05e3cc0789d5156b077f81cc4cf04
https://github.com/llvm/llvm-project/pull/127702
More information about the cfe-commits
mailing list