[PATCH] D41934: [analyzer] Fix CXXNewExpr callback order.

2018-01-17 Thread Phabricator via Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rC322797: [analyzer] operator new: Fix callback order for CXXNewExpr. (authored by dergachev, committed by ). Repository: rC Clang https://reviews.llvm.org/D41934 Files: lib/StaticAnalyzer/Checkers/An

[PATCH] D41934: [analyzer] Fix CXXNewExpr callback order.

2018-01-12 Thread Devin Coughlin via Phabricator via cfe-commits
dcoughlin accepted this revision. dcoughlin added a comment. This revision is now accepted and ready to land. Looks great. It is nice to have this fixed and cleaned up! Comment at: lib/StaticAnalyzer/Checkers/AnalysisOrderChecker.cpp:95 + llvm::errs() << "PreCall"; +

[PATCH] D41934: [analyzer] Fix CXXNewExpr callback order.

2018-01-10 Thread Artem Dergachev via Phabricator via cfe-commits
NoQ added inline comments. Comment at: test/Analysis/cxxnewexpr-callback-inline.cpp:31-32 +// CHECK-NEXT: PostStmt +// CHECK-NEXT: PreCall (foo) +// CHECK-NEXT: PostCall (foo) This ensures that there are no other callbacks after `PostStmt`, in particular that th

[PATCH] D41934: [analyzer] Fix CXXNewExpr callback order.

2018-01-10 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, eraman. Even if we later change how these callbacks work (as in http://lists.llvm.org/pipermail/cfe-dev/2017-December/056314.html), i wanted