[clang] [analyzer] Fix uninitialized base class with initializer list when ctor is not declared in the base class (#70464) (PR #70792)
Balazs Benics via cfe-commits
cfe-commits at lists.llvm.org
Tue Oct 31 06:21:20 PDT 2023
================
@@ -0,0 +1,69 @@
+// Refer issue 70464 for more details.
+//
+// When the base class does not have a declared constructor, the base
+// initializer in the constructor of the derived class should use the given
+// initializer list to finish the initialization of the base class.
+//
+// Also testing base constructor and delegate constructor to make sure this
+// change will not break these two cases when a CXXConstructExpr is available.
+
+// RUN: %clang_analyze_cc1 %s -verify -analyzer-checker=core,debug.ExprInspection
----------------
steakhal wrote:
I'd put this at the top, as that's the usual place for these RUN lines.
https://github.com/llvm/llvm-project/pull/70792
More information about the cfe-commits
mailing list