[PATCH] D43144: [analyzer] Implement path notes for temporary destructors.

2018-02-15 Thread Phabricator via Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL325284: [analyzer] Implement path notes for temporary destructors. (authored by dergachev, committed by ). Herald added a subscriber: llvm-commits. Changed prior to commit: https://reviews.llvm.org/D431

[PATCH] D43144: [analyzer] Implement path notes for temporary destructors.

2018-02-09 Thread Artem Dergachev via Phabricator via cfe-commits
NoQ updated this revision to Diff 133692. NoQ added a comment. Add a test for returning from destructor. https://reviews.llvm.org/D43144 Files: lib/StaticAnalyzer/Core/PathDiagnostic.cpp test/Analysis/inlining/temp-dtors-path-notes.cpp Index: test/Analysis/inlining/temp-dtors-path-notes.

[PATCH] D43144: [analyzer] Implement path notes for temporary destructors.

2018-02-09 Thread Artem Dergachev via Phabricator via cfe-commits
NoQ added a comment. Another question is why do we have such inconsistency between `Calling constructor for 'C'` and `Calling '~C'`, i.e. why not `Calling destructor for 'C'`. Seems accidental. https://reviews.llvm.org/D43144 ___ cfe-commits maili

[PATCH] D43144: [analyzer] Implement path notes for temporary destructors.

2018-02-09 Thread Artem Dergachev via Phabricator via cfe-commits
NoQ added inline comments. Comment at: test/Analysis/inlining/temp-dtors-path-notes.cpp:17 +// expected-note@-2{{Returning from constructor for 'C'}} +// expected-note@-3{{Calling '~C'}} +} george.karpenkov wrote: > Should we have "returning from

[PATCH] D43144: [analyzer] Implement path notes for temporary destructors.

2018-02-09 Thread George Karpenkov via Phabricator via cfe-commits
george.karpenkov accepted this revision. george.karpenkov added inline comments. This revision is now accepted and ready to land. Comment at: lib/StaticAnalyzer/Core/PathDiagnostic.cpp:586 +// they'd be dealt with via an AutomaticObjectDtor instead. +const CFGTemporaryDto

[PATCH] D43144: [analyzer] Implement path notes for temporary destructors.

2018-02-09 Thread Artem Dergachev via Phabricator via cfe-commits
NoQ updated this revision to Diff 133687. NoQ added a comment. Minor indent fix. https://reviews.llvm.org/D43144 Files: lib/StaticAnalyzer/Core/PathDiagnostic.cpp test/Analysis/inlining/temp-dtors-path-notes.cpp Index: test/Analysis/inlining/temp-dtors-path-notes.cpp =

[PATCH] D43144: [analyzer] Implement path notes for temporary destructors.

2018-02-09 Thread Artem Dergachev via Phabricator via cfe-commits
NoQ created this revision. NoQ added reviewers: dcoughlin, xazax.hun, a.sidorin, george.karpenkov, szepet. Herald added subscribers: cfe-commits, rnkovacs. Temporaries are destroyed at the end of their `CXXBindTemporaryExpr`, which can be picked up from their `CFGTemporaryDtor`. Note that lifetim