[PATCH] D44854: [analyzer] Be more careful about C++17 copy elision.

George Karpenkov via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Fri Mar 30 10:48:40 PDT 2018


george.karpenkov accepted this revision.
george.karpenkov added a comment.
This revision is now accepted and ready to land.

LGTM provided comments are answered. Field rename would be appreciated, if possible.



================
Comment at: lib/StaticAnalyzer/Core/ExprEngineCXX.cpp:215
+          // able to find construction context at all.
+          CallOpts.IsCtorOrDtorWithImproperlyModeledTargetRegion = true;
+        } else if (!isa<TemporaryObjectConstructionContext>(
----------------
Is this field `false` by default? Also, double negation is harder to read (e.g. `not modelled properly = false`  vs. `modelled property = true`), but I guess that should have been said earlier.


https://reviews.llvm.org/D44854





More information about the cfe-commits mailing list