[PATCH] D43689: [analyzer] Disable constructor inlining when lifetime extension through fields occurs.

Artem Dergachev via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Tue Feb 27 12:16:21 PST 2018


NoQ added inline comments.


================
Comment at: include/clang/StaticAnalyzer/Core/PathSensitive/ExprEngine.h:70
+    /// by binding a smaller object within it to a reference.
+    bool IsTemporaryLifetimeExtendedViaSubobject = false;
 
----------------
dcoughlin wrote:
> Would you be willing to add a tiny code example to the comment? I.e., `const int &x = C().x`
Fixed in the commit.


Repository:
  rC Clang

https://reviews.llvm.org/D43689





More information about the cfe-commits mailing list