[PATCH] D59054: [analyzer] C++17: PR40022: Support aggregate initialization with compound values in presence of base classes.
Artem Dergachev via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Thu Mar 7 14:26:05 PST 2019
NoQ added inline comments.
================
Comment at: clang/lib/StaticAnalyzer/Core/RegionStore.cpp:2348
+ // Virtual bases still aren't allowed. Multiple bases are fine though.
+ for (auto B : CRD->bases()) {
+ assert(B.isVirtual() == false);
----------------
alexfh wrote:
> Should this be `const auto&`?
Whoops. Also i still somehow hate it that these aren't pointers :)
================
Comment at: clang/test/Analysis/array-struct-region.cpp:3
// RUN: %clang_analyze_cc1 -analyzer-checker=core,alpha.core,debug.ExprInspection -verify -x c++ -analyzer-config c++-inlining=constructors %s
+// RUN: %clang_analyze_cc1 -analyzer-checker=core,alpha.core,debug.ExprInspection -verify -x c++ -std=c++17 -analyzer-config c++-inlining=constructors %s
// RUN: %clang_analyze_cc1 -analyzer-checker=core,alpha.core,debug.ExprInspection -DINLINE -verify -x c %s
----------------
Szelethus wrote:
> I didn't see `-analyzer-config c++-inlining=constructors` in the bugreport -- why is it needed?
Hmm, right, these flags are outdated long time ago. Wiped them out from this test.
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D59054/new/
https://reviews.llvm.org/D59054
More information about the cfe-commits
mailing list