Re: [PATCH] D24862: Workaround ASTMatcher crashes. Added some more test cases.

2016-09-27 Thread Eric Liu via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL282486: Workaround ASTMatcher crashes. Added some more test cases. (authored by ioeric). Changed prior to commit: https://reviews.llvm.org/D24862?vs=72284=72640#toc Repository: rL LLVM

Re: [PATCH] D24862: Workaround ASTMatcher crashes. Added some more test cases.

2016-09-26 Thread Haojian Wu via cfe-commits
hokein accepted this revision. hokein added a comment. LGTM. https://reviews.llvm.org/D24862 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Re: [PATCH] D24862: Workaround ASTMatcher crashes. Added some more test cases.

2016-09-23 Thread Eric Liu via cfe-commits
ioeric updated this revision to Diff 72284. ioeric marked 3 inline comments as done. ioeric added a comment. - Addressed review comments. https://reviews.llvm.org/D24862 Files: change-namespace/ChangeNamespace.cpp unittests/change-namespace/ChangeNamespaceTests.cpp Index:

Re: [PATCH] D24862: Workaround ASTMatcher crashes. Added some more test cases.

2016-09-23 Thread Eric Liu via cfe-commits
ioeric added a comment. Thanks for the comments! Comment at: change-namespace/ChangeNamespace.cpp:279 @@ -276,2 +278,3 @@ Finder->addMatcher( - usingDecl(hasAnyUsingShadowDecl(IsInMovedNs)).bind("using_decl"), this); + usingDecl(IsInMovedNs,

Re: [PATCH] D24862: Workaround ASTMatcher crashes. Added some more test cases.

2016-09-23 Thread Aaron Ballman via cfe-commits
aaron.ballman added a comment. In https://reviews.llvm.org/D24862#550665, @ioeric wrote: > Sorry for the confusion. I guess I should've been clearer in the comments and > patch summary... The changes would've been what we wanted even without the > underlying bugs and would not be reverted

Re: [PATCH] D24862: Workaround ASTMatcher crashes. Added some more test cases.

2016-09-23 Thread Eric Liu via cfe-commits
ioeric added a comment. In https://reviews.llvm.org/D24862#550654, @aaron.ballman wrote: > In https://reviews.llvm.org/D24862#550646, @ioeric wrote: > > > Acked, and I totally agree with you :) It's just that the change in this > > patch would still be valid after the underlying bugs are fixed,

Re: [PATCH] D24862: Workaround ASTMatcher crashes. Added some more test cases.

2016-09-23 Thread Eric Liu via cfe-commits
ioeric updated this revision to Diff 72275. ioeric added a comment. - Update comment. https://reviews.llvm.org/D24862 Files: change-namespace/ChangeNamespace.cpp change-namespace/tool/ClangChangeNamespace.cpp unittests/change-namespace/ChangeNamespaceTests.cpp Index:

Re: [PATCH] D24862: Workaround ASTMatcher crashes. Added some more test cases.

2016-09-23 Thread Aaron Ballman via cfe-commits
aaron.ballman added a comment. In https://reviews.llvm.org/D24862#550646, @ioeric wrote: > Acked, and I totally agree with you :) It's just that the change in this > patch would still be valid after the underlying bugs are fixed, so I thought > it was fine to fix those bugs after this. I

Re: [PATCH] D24862: Workaround ASTMatcher crashes. Added some more test cases.

2016-09-23 Thread Eric Liu via cfe-commits
ioeric added a comment. In https://reviews.llvm.org/D24862#550637, @aaron.ballman wrote: > In https://reviews.llvm.org/D24862#550628, @ioeric wrote: > > > In https://reviews.llvm.org/D24862#550615, @aaron.ballman wrote: > > > > > Should this perhaps be fixed in the AST matchers rather than in

Re: [PATCH] D24862: Workaround ASTMatcher crashes. Added some more test cases.

2016-09-23 Thread Aaron Ballman via cfe-commits
aaron.ballman added a comment. In https://reviews.llvm.org/D24862#550628, @ioeric wrote: > In https://reviews.llvm.org/D24862#550615, @aaron.ballman wrote: > > > Should this perhaps be fixed in the AST matchers rather than in the check > > itself? > > > I'll file bugs for the crashes, but the

Re: [PATCH] D24862: Workaround ASTMatcher crashes. Added some more test cases.

2016-09-23 Thread Aaron Ballman via cfe-commits
aaron.ballman added a subscriber: aaron.ballman. aaron.ballman added reviewers: klimek, sbenza. aaron.ballman added a comment. Should this perhaps be fixed in the AST matchers rather than in the check itself? https://reviews.llvm.org/D24862 ___

Re: [PATCH] D24862: Workaround ASTMatcher crashes. Added some more test cases.

2016-09-23 Thread Eric Liu via cfe-commits
ioeric updated this revision to Diff 72269. ioeric added a comment. - Update comments https://reviews.llvm.org/D24862 Files: change-namespace/ChangeNamespace.cpp change-namespace/tool/ClangChangeNamespace.cpp unittests/change-namespace/ChangeNamespaceTests.cpp Index:

[PATCH] D24862: Workaround ASTMatcher crashes. Added some more test cases.

2016-09-23 Thread Eric Liu via cfe-commits
ioeric created this revision. ioeric added a reviewer: hokein. ioeric added a subscriber: cfe-commits. - UsingDecl matcher crashed when `UsingShadowDecl` has no parent map. Workaround by moving parent check into `UsingDecl`. - FunctionDecl matcher crashed when there is a lambda defined in