[PATCH] D38921: [analyzer] LoopUnrolling: update the matched assignment operators

2018-03-27 Thread Peter Szecsi via Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rC328619: [analyzer] LoopUnrolling: update the matched assignment operators (authored by szepet, committed by ). Repository: rC Clang https://reviews.llvm.org/D38921 Files:

[PATCH] D38921: [analyzer] LoopUnrolling: update the matched assignment operators

2018-03-26 Thread Peter Szecsi via Phabricator via cfe-commits
szepet updated this revision to Diff 139776. szepet added a comment. Added the assignment operator matcher patch as a dependency and rebased on top of that. https://reviews.llvm.org/D38921 Files: lib/StaticAnalyzer/Core/LoopUnrolling.cpp test/Analysis/loop-unrolling.cpp Index:

[PATCH] D38921: [analyzer] LoopUnrolling: update the matched assignment operators

2018-03-26 Thread Peter Szecsi via Phabricator via cfe-commits
szepet marked 2 inline comments as done. szepet added a comment. In https://reviews.llvm.org/D38921#1037180, @alexfh wrote: > Do you want to submit the matcher part separately? Yepp, but added as a different patch since implemented it for cxxOperatorCall as well. (I guess Aaron's test request

[PATCH] D38921: [analyzer] LoopUnrolling: update the matched assignment operators

2018-03-14 Thread Alexander Kornienko via Phabricator via cfe-commits
alexfh added a comment. Do you want to submit the matcher part separately? https://reviews.llvm.org/D38921 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[PATCH] D38921: [analyzer] LoopUnrolling: update the matched assignment operators

2017-12-01 Thread Aaron Ballman via Phabricator via cfe-commits
aaron.ballman added a comment. Aside from a request for another test, the matcher parts LGTM. Comment at: unittests/ASTMatchers/ASTMatchersNarrowingTest.cpp:1992 + EXPECT_TRUE(matches("void x() { int a; a &= 3; }", AsOperator)); + EXPECT_TRUE(notMatches("void x() { int a;

[PATCH] D38921: [analyzer] LoopUnrolling: update the matched assignment operators

2017-12-01 Thread Peter Szecsi via Phabricator via cfe-commits
szepet added reviewers: alexfh, aaron.ballman. szepet added a comment. Added Alexander and Aaron as reviewers for the matcher parts. https://reviews.llvm.org/D38921 ___ cfe-commits mailing list cfe-commits@lists.llvm.org

[PATCH] D38921: [analyzer] LoopUnrolling: update the matched assignment operators

2017-11-17 Thread Gábor Horváth via Phabricator via cfe-commits
xazax.hun accepted this revision. xazax.hun added a comment. This revision is now accepted and ready to land. A nit, otherwise LG! Comment at: lib/StaticAnalyzer/Core/PathDiagnostic.cpp:693 SMng); + } else if (Optional BE = P.getAs()) { +S

[PATCH] D38921: [analyzer] LoopUnrolling: update the matched assignment operators

2017-11-16 Thread Peter Szecsi via Phabricator via cfe-commits
szepet updated this revision to Diff 123187. szepet marked 2 inline comments as done. szepet added a comment. Testfiles added and HTML updated. https://reviews.llvm.org/D38921 Files: docs/LibASTMatchersReference.html include/clang/ASTMatchers/ASTMatchers.h

[PATCH] D38921: [analyzer] LoopUnrolling: update the matched assignment operators

2017-11-16 Thread Roman Lebedev via Phabricator via cfe-commits
lebedev.ri added a comment. Not sure how `clang/docs/LibASTMatchersReference.html` is supposed to be updated. Comment at: include/clang/ASTMatchers/ASTMatchers.h:3931 + +/// \brief Matches all kind of assignment operators. +/// Maybe ``` -/// \brief Matches

[PATCH] D38921: [analyzer] LoopUnrolling: update the matched assignment operators

2017-11-16 Thread Peter Szecsi via Phabricator via cfe-commits
szepet updated this revision to Diff 123176. szepet added a reviewer: klimek. szepet added a comment. Herald added subscribers: a.sidorin, rnkovacs. isAssignmentOp matcher moved to ASTMatchers.h (Manuel added to reviewers as the code owner of ASTMatchers) https://reviews.llvm.org/D38921 Files:

[PATCH] D38921: [analyzer] LoopUnrolling: update the matched assignment operators

2017-11-13 Thread Gábor Horváth via Phabricator via cfe-commits
xazax.hun added a comment. I agree it might be useful to expose this matcher to everybody. https://reviews.llvm.org/D38921 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[PATCH] D38921: [analyzer] LoopUnrolling: update the matched assignment operators

2017-10-30 Thread Artem Dergachev via Phabricator via cfe-commits
NoQ added a comment. Yay. Thanks Gabor, i didn't think about it but it look very nice to have such matcher. I think the matcher shouldn't be checker-local, but shared into `ASTMatchers.h` all other matchers - not only this matcher is universally useful, but also i have weird vague memories

[PATCH] D38921: [analyzer] LoopUnrolling: update the matched assignment operators

2017-10-28 Thread Peter Szecsi via Phabricator via cfe-commits
szepet updated this revision to Diff 120732. szepet added a comment. Updated to use a custom AST matcher for assignment operator check. (More structured and efficient.) https://reviews.llvm.org/D38921 Files: lib/StaticAnalyzer/Core/LoopUnrolling.cpp test/Analysis/loop-unrolling.cpp

[PATCH] D38921: [analyzer] LoopUnrolling: update the matched assignment operators

2017-10-19 Thread Gábor Horváth via Phabricator via cfe-commits
xazax.hun added inline comments. Comment at: lib/StaticAnalyzer/Core/LoopUnrolling.cpp:100 declRefExpr(to(varDecl(VarNodeMatcher)), binaryOperator(anyOf(hasOperatorName("="), hasOperatorName("+="),

[PATCH] D38921: [analyzer] LoopUnrolling: update the matched assignment operators

2017-10-16 Thread Artem Dergachev via Phabricator via cfe-commits
NoQ added a comment. Neat! Tests? https://reviews.llvm.org/D38921 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[PATCH] D38921: [analyzer] LoopUnrolling: update the matched assignment operators

2017-10-16 Thread Daniel Marjamäki via Phabricator via cfe-commits
danielmarjamaki added a comment. LGTM.. however I would like approval from somebody else also. https://reviews.llvm.org/D38921 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[PATCH] D38921: [analyzer] LoopUnrolling: update the matched assignment operators

2017-10-14 Thread Peter Szecsi via Phabricator via cfe-commits
szepet created this revision. Herald added subscribers: baloghadamsoftware, whisperity. Extended the matched assignment operators when checking for bound changes in a body of the loop. This updated list covers all the (current) possible assignments. https://reviews.llvm.org/D38921 Files: