[PATCH] D47351: [analyzer] Re-enable C++17-specific variable and member variable construction contexts.

Artem Dergachev via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Thu May 24 16:53:39 PDT 2018


NoQ created this revision.
NoQ added reviewers: dcoughlin, xazax.hun, a.sidorin, george.karpenkov, szepet, rnkovacs.
Herald added subscribers: cfe-commits, baloghadamsoftware.

The recent refactoring allows us to easily support C++17 "copy-elided" constructor syntax for variables and constructor-initializers. Similar constructors for return values are still to be supported.

In particular, the change of using path-sensitive state traits made our liveness problems go away. The `elision_on_ternary_op_branches` test was failing without that.

https://reviews.llvm.org/D47350 allowed us to support the C++17 destructor in `testCtorInitializer()`.


Repository:
  rC Clang

https://reviews.llvm.org/D47351

Files:
  lib/StaticAnalyzer/Core/ExprEngineCXX.cpp
  test/Analysis/cxx17-mandatory-elision.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D47351.148503.patch
Type: text/x-patch
Size: 5071 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20180524/c9b298f0/attachment.bin>


More information about the cfe-commits mailing list