[PATCH] D24803: [change-namespace] fix qualifier of function references.

2016-09-21 Thread Eric Liu via cfe-commits
ioeric created this revision. ioeric added a reviewer: hokein. ioeric added a subscriber: cfe-commits. https://reviews.llvm.org/D24803 Files: change-namespace/ChangeNamespace.cpp unittests/change-namespace/ChangeNamespaceTests.cpp Index: unittests/change-namespace/ChangeNamespaceTests.cpp ==

Re: [PATCH] D24803: [change-namespace] fix qualifier of function references.

2016-09-22 Thread Eric Liu via cfe-commits
ioeric updated this revision to Diff 72145. ioeric marked 2 inline comments as done. ioeric added a comment. - Addressing review comments: added a test case for out-of-line static method and fixed a bug. https://reviews.llvm.org/D24803 Files: change-namespace/ChangeNamespace.cpp unittests/

[clang-tools-extra] r282146 - [change-namespace] fix qualifier of function references.

2016-09-22 Thread Eric Liu via cfe-commits
Author: ioeric Date: Thu Sep 22 06:54:00 2016 New Revision: 282146 URL: http://llvm.org/viewvc/llvm-project?rev=282146&view=rev Log: [change-namespace] fix qualifier of function references. Reviewers: hokein Subscribers: cfe-commits Differential Revision: https://reviews.llvm.org/D24803 Modifi

Re: [PATCH] D24803: [change-namespace] fix qualifier of function references.

2016-09-22 Thread Eric Liu via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL282146: [change-namespace] fix qualifier of function references. (authored by ioeric). Changed prior to commit: https://reviews.llvm.org/D24803?vs=72145&id=72152#toc Repository: rL LLVM https://revi

Re: [PATCH] D24828: [clang-move] Don't add old_header to the new files.

2016-09-22 Thread Eric Liu via cfe-commits
ioeric added a comment. Could you elaborate on what this CL does in the description? https://reviews.llvm.org/D24828 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Re: [PATCH] D24828: [clang-move] The new.cc file should include new_header.h instead of old_header.h

2016-09-22 Thread Eric Liu via cfe-commits
ioeric accepted this revision. ioeric added a comment. This revision is now accepted and ready to land. Lg with nits. Comment at: clang-move/ClangMove.cpp:290 @@ -294,1 +289,3 @@ llvm::StringRef FileName) { + // Don't add the old_header.h to the

[PATCH] D24829: [clang-format] support header deletion in cleanupAroundReplacemnts.

2016-09-22 Thread Eric Liu via cfe-commits
ioeric created this revision. ioeric added a reviewer: djasper. ioeric added subscribers: klimek, cfe-commits. - If a replacement has offset UINT_MAX, length 0, and a replacement text that is an #include directive, this will insert the #include into the correct block in the \p Code. - If a rep

[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 paramet

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: unittests/change-nam

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#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 fix in this patch is not that "dirty" - it simply changes the order of matcher

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 the

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 72273. 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: unittests/change-na

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: unittests/change-nam

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 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, hasAnyUsingShadowDecl(de

Re: [PATCH] D24829: [clang-format] support header deletion in cleanupAroundReplacemnts.

2016-09-23 Thread Eric Liu via cfe-commits
ioeric updated this revision to Diff 72285. ioeric marked 2 inline comments as done. ioeric added a comment. - Addressed comments. https://reviews.llvm.org/D24829 Files: include/clang/Format/Format.h lib/Format/Format.cpp unittests/Format/CleanupTest.cpp Index: unittests/Format/CleanupTe

Re: [PATCH] D24829: [clang-format] support header deletion in cleanupAroundReplacemnts.

2016-09-23 Thread Eric Liu via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL282253: [clang-format] support header deletion in cleanupAroundReplacemnts. (authored by ioeric). Changed prior to commit: https://reviews.llvm.org/D24829?vs=72285&id=72286#toc Repository: rL LLVM h

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: unittests/change-

r282253 - [clang-format] support header deletion in cleanupAroundReplacemnts.

2016-09-23 Thread Eric Liu via cfe-commits
Author: ioeric Date: Fri Sep 23 10:10:56 2016 New Revision: 282253 URL: http://llvm.org/viewvc/llvm-project?rev=282253&view=rev Log: [clang-format] support header deletion in cleanupAroundReplacemnts. Summary: - If a replacement has offset UINT_MAX, length 0, and a replacement text that is an #

Re: [PATCH] D24800: Merge conflicting replacements when they are order-independent.

2016-09-26 Thread Eric Liu via cfe-commits
ioeric added a comment. Friendly ping :) https://reviews.llvm.org/D24800 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Re: [PATCH] D24922: [clang-move] Make it support both relative and absolute file path arguments.

2016-09-27 Thread Eric Liu via cfe-commits
ioeric added inline comments. Comment at: clang-move/ClangMove.cpp:33 @@ +32,3 @@ + auto EC = llvm::sys::fs::make_absolute(InitialDirectory, AbsolutePath); + assert(!EC); + (void)EC; This doesn't seems to be good error handling... maybe also print an error mes

Re: [PATCH] D24800: Merge conflicting replacements when they are order-independent.

2016-09-27 Thread Eric Liu via cfe-commits
ioeric added inline comments. Comment at: include/clang/Tooling/Core/Replacement.h:177-178 @@ +176,4 @@ + /// - are insertions at the same offset and applying them in either order + /// has the same effect, i.e. X + Y = Y + X if one inserts text X and the + /// other

Re: [PATCH] D24380: [migrate-tool] Framework for a codebase-dependent migration tool.

2016-09-27 Thread Eric Liu via cfe-commits
ioeric updated this revision to Diff 72635. ioeric marked 2 inline comments as done. ioeric added a comment. - Replace dummy binary with unit test with dummy environemnt + fake codebase. https://reviews.llvm.org/D24380 Files: CMakeLists.txt migrate-tool/AffectedFilesFinder.h migrate-tool/

[clang-tools-extra] r282486 - Workaround ASTMatcher crashes. Added some more test cases.

2016-09-27 Thread Eric Liu via cfe-commits
Author: ioeric Date: Tue Sep 27 07:54:48 2016 New Revision: 282486 URL: http://llvm.org/viewvc/llvm-project?rev=282486&view=rev Log: Workaround ASTMatcher crashes. Added some more test cases. Summary: - UsingDecl matcher crashed when `UsingShadowDecl` has no parent map. Workaround by moving pare

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&id=72640#toc Repository: rL LLVM https://re

Re: [PATCH] D24800: Merge conflicting replacements when they are order-independent.

2016-09-27 Thread Eric Liu via cfe-commits
ioeric added inline comments. Comment at: lib/Tooling/Core/Replacement.cpp:179-181 @@ +178,5 @@ +Replacements::mergeIfOrderIndependent(const Replacement &R) const { + Replacements Rs(R); + Replacements ShiftedRs(getReplacementInChangedCode(R)); + Replacements ShiftedReplaces; +

Re: [PATCH] D24800: Merge conflicting replacements when they are order-independent.

2016-09-27 Thread Eric Liu via cfe-commits
ioeric updated this revision to Diff 72642. ioeric marked 6 inline comments as done. ioeric added a comment. - Addressed review comments. https://reviews.llvm.org/D24800 Files: include/clang/Tooling/Core/Replacement.h lib/Tooling/Core/Replacement.cpp unittests/Tooling/RefactoringTest.cpp

[PATCH] D24963: [change-namespace] fix namespace specifier of global variables.

2016-09-27 Thread Eric Liu via cfe-commits
ioeric created this revision. ioeric added a reviewer: hokein. ioeric added a subscriber: cfe-commits. https://reviews.llvm.org/D24963 Files: change-namespace/ChangeNamespace.cpp unittests/change-namespace/ChangeNamespaceTests.cpp Index: unittests/change-namespace/ChangeNamespaceTests.cpp ==

Re: [PATCH] D24717: Merge deletions that are contained in a larger deletion.

2016-09-27 Thread Eric Liu via cfe-commits
ioeric abandoned this revision. ioeric added a comment. Abandon in favor of https://reviews.llvm.org/D24800 https://reviews.llvm.org/D24717 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-co

Re: [PATCH] D24800: Merge conflicting replacements when they are order-independent.

2016-09-27 Thread Eric Liu via cfe-commits
ioeric added inline comments. Comment at: lib/Tooling/Core/Replacement.cpp:179-181 @@ +178,5 @@ +llvm::Expected +Replacements::mergeIfOrderIndependent(const Replacement &R) const { + Replacements Rs(R); + Replacements RsShiftedByReplaces(getReplacementInChangedCode(R)); + Repla

Re: [PATCH] D24800: Merge conflicting replacements when they are order-independent.

2016-09-27 Thread Eric Liu via cfe-commits
ioeric updated this revision to Diff 72666. ioeric marked 3 inline comments as done. ioeric added a comment. - Addressed review comments. https://reviews.llvm.org/D24800 Files: include/clang/Tooling/Core/Replacement.h lib/Tooling/Core/Replacement.cpp unittests/Tooling/RefactoringTest.cpp

r282577 - Merge conflicting replacements when they are order-independent.

2016-09-28 Thread Eric Liu via cfe-commits
Author: ioeric Date: Wed Sep 28 06:02:16 2016 New Revision: 282577 URL: http://llvm.org/viewvc/llvm-project?rev=282577&view=rev Log: Merge conflicting replacements when they are order-independent. Summary: Now two replacements are considered order-independent if applying them in either order prod

Re: [PATCH] D24800: Merge conflicting replacements when they are order-independent.

2016-09-28 Thread Eric Liu via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL282577: Merge conflicting replacements when they are order-independent. (authored by ioeric). Changed prior to commit: https://reviews.llvm.org/D24800?vs=72666&id=72799#toc Repository: rL LLVM https

Re: r282577 - Merge conflicting replacements when they are order-independent.

2016-09-28 Thread Eric Liu via cfe-commits
This is causing buildbot failure. I am working on a fix. On Wed, Sep 28, 2016 at 1:11 PM Eric Liu via cfe-commits < cfe-commits@lists.llvm.org> wrote: > Author: ioeric > Date: Wed Sep 28 06:02:16 2016 > New Revision: 282577 > > URL: http://llvm.org/viewvc/llvm-project?rev=

r282583 - Trying to buildbot failures caused by r282577.

2016-09-28 Thread Eric Liu via cfe-commits
Author: ioeric Date: Wed Sep 28 07:49:14 2016 New Revision: 282583 URL: http://llvm.org/viewvc/llvm-project?rev=282583&view=rev Log: Trying to buildbot failures caused by r282577. Modified: cfe/trunk/lib/Tooling/Core/Replacement.cpp Modified: cfe/trunk/lib/Tooling/Core/Replacement.cpp URL:

Re: r282577 - Merge conflicting replacements when they are order-independent.

2016-09-28 Thread Eric Liu via cfe-commits
r282583 should fix this. On Wed, Sep 28, 2016 at 2:14 PM Eric Liu wrote: > This is causing buildbot failure. I am working on a fix. > > On Wed, Sep 28, 2016 at 1:11 PM Eric Liu via cfe-commits < > cfe-commits@lists.llvm.org> wrote: > > Author: ioeric > Date: Wed

Re: r282583 - Trying to buildbot failures caused by r282577.

2016-09-28 Thread Eric Liu via cfe-commits
Decrementing "begin()" makes sanitizer sad. This fix makes sure "I" is never decremented when it is the "begin". On Wed, Sep 28, 2016 at 3:10 PM Manuel Klimek wrote: > On Wed, Sep 28, 2016 at 2:58 PM Eric Liu via cfe-commits < > cfe-commits@lists.llvm.org

Re: [PATCH] D24380: [migrate-tool] Framework for a codebase-dependent migration tool.

2016-09-28 Thread Eric Liu via cfe-commits
ioeric added a comment. Ping https://reviews.llvm.org/D24380 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[PATCH] [Commented On] D24963: [change-namespace] fix namespace specifier of global variables.

2016-09-29 Thread Eric Liu via cfe-commits
ioeric added a comment. View RevisionPhab test.https://reviews.llvm.org/D24963 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[PATCH] [Request, 41 lines] D25065: [change-namespace] Fixed a bug in getShortestQualifiedNameInNamespace.

2016-09-29 Thread Eric Liu via cfe-commits
ioeric created this revision.ioeric added a reviewer: hokein.ioeric added a subscriber: cfe-commits. View RevisionAlso test phabricator.https://reviews.llvm.org/D25065Files:change-namespace/ChangeNamespace.cpp unittests/change-namespace/ChangeNamespaceTests.cppunittests/change-namespace/ChangeNames

Re: [llvm-dev] Upgrading phabricator

2016-09-29 Thread Eric Liu via cfe-commits
Hi all, Phabricator is (finally) back online! Let me know if you have any feedback or problem :) Thanks, Eric On Thu, Sep 29, 2016 at 10:23 PM Eric Liu wrote: > According to top and iotop, mysqld is still working, and the progress bar > did move by a little bit, so I think it's just really slo

[clang-tools-extra] r282837 - [change-namespace] fix namespace specifier of global variables.

2016-09-29 Thread Eric Liu via cfe-commits
Author: ioeric Date: Thu Sep 29 23:32:39 2016 New Revision: 282837 URL: http://llvm.org/viewvc/llvm-project?rev=282837&view=rev Log: [change-namespace] fix namespace specifier of global variables. Reviewers: hokein Subscribers: cfe-commits Differential Revision: https://reviews.llvm.org/D24963

[PATCH] [Closed] D24963: [change-namespace] fix namespace specifier of global variables.

2016-09-29 Thread Eric Liu via cfe-commits
This revision was automatically updated to reflect the committed changes.Closed by commit rL282837: [change-namespace] fix namespace specifier of global variables. (authored by ioeric). View RevisionChanged prior to commit:https://reviews.llvm.org/D24963?vs=72648&id=72976#tocRepository:rL LLVMhttps

Re: [llvm-dev] Upgrading phabricator

2016-09-29 Thread Eric Liu via cfe-commits
I've switched the default email format to be plain text only now. This option should be per-user configurable, but somehow it is not shown in the "Settings"; I'll try if I can make the option personalized. Regarding new features and bug fixes in this upgrade, I don't really have a list since the P

[PATCH] [Accepted] D24922: [clang-move] Make it support both relative and absolute file path arguments.

2016-09-30 Thread Eric Liu via cfe-commits
ioeric accepted this revision. ioeric added a comment. This revision is now accepted and ready to land. Lg with nits. > ClangMove.cpp:36 > + llvm::sys::fs::make_absolute(InitialDirectory, AbsolutePath)) > +llvm::errs() << "warning: could not make absolute file: '" << > EC.message

[PATCH] [Commented On] D24380: [migrate-tool] Framework for a codebase-dependent migration tool.

2016-09-30 Thread Eric Liu via cfe-commits
ioeric added inline comments. > klimek wrote in MigrateTool.cpp:52 > I'm wondering whether we really want to evolve this to a callback / executor > based design. That is, have AffectedFilesFinder give an interface like > RunOnAffectedFiles(...) That sounds like a good design, but I'm not sure

[PATCH] [Commented On] D24380: [migrate-tool] Framework for a codebase-dependent migration tool.

2016-09-30 Thread Eric Liu via cfe-commits
ioeric added inline comments. > klimek wrote in MigrateTool.cpp:52 > Well, my main concern is how we hook this up to full codebase wide analyses. > Currently, we basically hard-code the execution strategy, right? I see. That makes sense then. Thanks! https://reviews.llvm.org/D24380

[PATCH] [Commented On] D25024: [clang-tidy] Add check for detecting declarations with multiple names

2016-09-30 Thread Eric Liu via cfe-commits
ioeric added a comment. The code looks about right, but I am not the right person to decide whether checks go into clang-tidy. https://reviews.llvm.org/D25024 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mai

Re: [llvm-dev] Upgrading phabricator

2016-09-30 Thread Eric Liu via cfe-commits
Eric On Fri, Sep 30, 2016 at 3:05 PM Aaron Ballman wrote: > On Fri, Sep 30, 2016 at 2:04 AM, Eric Liu via cfe-commits > wrote: > > I've switched the default email format to be plain text only now. This > > option should be per-user configurable, but somehow it is not shown

Re: [llvm-dev] Upgrading phabricator

2016-09-30 Thread Eric Liu via cfe-commits
@Alex I tried glancing through emails in llvm-commits, and I found "[PATCH]" makes it easier to tell revisions from patches, and I guess people are also used to "[PATCH]" after all these years :) @Zachary Yes! This option can be configured in "Email Preferences" in your personal setting, but I'm n

[PATCH] D25065: [change-namespace] Fixed a bug in getShortestQualifiedNameInNamespace.

2016-09-30 Thread Eric Liu via cfe-commits
ioeric updated this revision to Diff 73116. ioeric added a comment. - Remove redundant variable. https://reviews.llvm.org/D25065 Files: change-namespace/ChangeNamespace.cpp unittests/change-namespace/ChangeNamespaceTests.cpp Index: unittests/change-namespace/ChangeNamespaceTests.cpp =

[PATCH] D25162: Make DeletedLines local variables in checkEmptyNamespace.

2016-10-02 Thread Eric Liu via cfe-commits
ioeric created this revision. ioeric added a reviewer: djasper. ioeric added a subscriber: cfe-commits. Herald added a subscriber: klimek. https://reviews.llvm.org/D25162 Files: lib/Format/Format.cpp Index: lib/Format/Format.cpp

[PATCH] D25207: Added more comments to tooling::Replacements.

2016-10-03 Thread Eric Liu via cfe-commits
ioeric created this revision. ioeric added a subscriber: cfe-commits. Herald added a subscriber: klimek. Also test phabricator commit processing. https://reviews.llvm.org/D25207 Files: include/clang/Tooling/Core/Replacement.h Index: include/clang/Tooling/Core/Replacement.h =

[PATCH] D25207: Added more comments to tooling::Replacements.

2016-10-03 Thread Eric Liu via cfe-commits
ioeric accepted this revision. ioeric added a reviewer: ioeric. ioeric added a comment. This revision is now accepted and ready to land. Since this patch only introduces new comments, I'll commit it for now to also test phabricator's commit processing. https://reviews.llvm.org/D25207 ___

r283135 - Added more comments to tooling::Replacements.

2016-10-03 Thread Eric Liu via cfe-commits
Author: ioeric Date: Mon Oct 3 14:14:30 2016 New Revision: 283135 URL: http://llvm.org/viewvc/llvm-project?rev=283135&view=rev Log: Added more comments to tooling::Replacements. Summary: Also test phabricator commit processing. Subscribers: klimek, cfe-commits Differential Revision: https://re

[PATCH] D25207: Added more comments to tooling::Replacements.

2016-10-04 Thread Eric Liu via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL283135: Added more comments to tooling::Replacements. (authored by ioeric). Changed prior to commit: https://reviews.llvm.org/D25207?vs=73322&id=73414#toc Repository: rL LLVM https://reviews.llvm.or

[PATCH] D25226: [change-namespace] Fix a misplaced case when there is no trailing newline character at the end of the file.

2016-10-04 Thread Eric Liu via cfe-commits
ioeric accepted this revision. ioeric added a comment. This revision is now accepted and ready to land. Thanks for the fix! :) > ChangeNamespace.cpp:110-112 > + if (SM.getLocForEndOfFile(LocInfo.first) == End) > +return End; > + return End.getLocWithOffset(1); return (SM.getLocForEndOfFi

[PATCH] D25065: [change-namespace] Fixed a bug in getShortestQualifiedNameInNamespace.

2016-10-04 Thread Eric Liu via cfe-commits
ioeric added a comment. Ping https://reviews.llvm.org/D25065 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Re: [llvm-dev] Upgrading phabricator

2016-10-04 Thread Eric Liu via cfe-commits
This is not due to the upgrade. There was long delay before Phabricator receives a commit, but the delay seems to be gone now. Let me know if you are still experiencing the delay. - Eric On Mon, Oct 3, 2016 at 4:25 PM Michał Górny wrote: > On Mon, 3 Oct 2016 13:47:08 + > Sjoerd Meijer via c

[PATCH] D24380: [migrate-tool] Framework for a codebase-dependent migration tool.

2016-10-04 Thread Eric Liu via cfe-commits
ioeric updated this revision to Diff 73446. ioeric added a comment. Herald added a subscriber: modocache. - Add SymbolRenameSpec; replace addIncludesToFiles and renameSymbolsInFiles with renameSymbolsInAffectedFiles. https://reviews.llvm.org/D24380 Files: CMakeLists.txt migrate-tool/Affect

[PATCH] D25227: [clang-move] Move comments which are associated with the moved class.

2016-10-04 Thread Eric Liu via cfe-commits
ioeric added a comment. This is great! > ClangMove.cpp:70-74 > + if (SM->getLocForEndOfFile(LocInfo.first) > + == EndLoc) > +return EndLoc; > + // Include the trailing newline character "\n". > + return EndLoc.getLocWithOffset(1); Maybe: return (SM->getLocForEndOfFile(LocInfo.fi

[PATCH] D25065: [change-namespace] Fixed a bug in getShortestQualifiedNameInNamespace.

2016-10-04 Thread Eric Liu via cfe-commits
ioeric updated this revision to Diff 73459. ioeric marked 2 inline comments as done. ioeric added a comment. - Address review comments. https://reviews.llvm.org/D25065 Files: change-namespace/ChangeNamespace.cpp unittests/change-namespace/ChangeNamespaceTests.cpp Index: unittests/change-n

[PATCH] D25065: [change-namespace] Fixed a bug in getShortestQualifiedNameInNamespace.

2016-10-04 Thread Eric Liu via cfe-commits
ioeric added inline comments. > hokein wrote in ChangeNamespace.cpp:187 > I think the statement doesn't compile here, since `consume_front` return a > `bool`. It should be `if (DeclName.consume_front((NsName + "::")))`? > > Looks like we can also put this judge into the above `while` statement?

[PATCH] D25162: Make DeletedLines local variables in checkEmptyNamespace.

2016-10-05 Thread Eric Liu via cfe-commits
ioeric updated this revision to Diff 73641. ioeric added a comment. - Added a test case. https://reviews.llvm.org/D25162 Files: lib/Format/Format.cpp unittests/Format/CleanupTest.cpp Index: unittests/Format/CleanupTest.cpp ==

[PATCH] D21026: [clang-format] append newline after code when inserting new headers at the end of the code which does not end with newline.

2016-10-05 Thread Eric Liu via cfe-commits
ioeric added a comment. Sorry for the delay I've updated the patch to work with the new tooling::Replacements. https://reviews.llvm.org/D21026 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinf

[PATCH] D21026: [clang-format] append newline after code when inserting new headers at the end of the code which does not end with newline.

2016-10-05 Thread Eric Liu via cfe-commits
ioeric updated this revision to Diff 73648. ioeric marked 2 inline comments as done. ioeric added a comment. - Merged with origin/master. - Update newline insertion according to the new Replacements implementation. https://reviews.llvm.org/D21026 Files: lib/Format/Format.cpp unittests/Forma

r283330 - [clang-format] append newline after code when inserting new headers at the end of the code which does not end with newline.

2016-10-05 Thread Eric Liu via cfe-commits
Author: ioeric Date: Wed Oct 5 10:42:19 2016 New Revision: 283330 URL: http://llvm.org/viewvc/llvm-project?rev=283330&view=rev Log: [clang-format] append newline after code when inserting new headers at the end of the code which does not end with newline. Summary: append newline after code when

[PATCH] D21026: [clang-format] append newline after code when inserting new headers at the end of the code which does not end with newline.

2016-10-05 Thread Eric Liu via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL283330: [clang-format] append newline after code when inserting new headers at the end… (authored by ioeric). Changed prior to commit: https://reviews.llvm.org/D21026?vs=73648&id=73651#toc Repository:

r283332 - Make DeletedLines local variables in checkEmptyNamespace.

2016-10-05 Thread Eric Liu via cfe-commits
Author: ioeric Date: Wed Oct 5 10:49:01 2016 New Revision: 283332 URL: http://llvm.org/viewvc/llvm-project?rev=283332&view=rev Log: Make DeletedLines local variables in checkEmptyNamespace. Summary: Patch by Sam McCall! Reviewers: djasper Subscribers: klimek, cfe-commits Differential Revision

[PATCH] D25162: Make DeletedLines local variables in checkEmptyNamespace.

2016-10-05 Thread Eric Liu via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL283332: Make DeletedLines local variables in checkEmptyNamespace. (authored by ioeric). Changed prior to commit: https://reviews.llvm.org/D25162?vs=73641&id=73652#toc Repository: rL LLVM https://rev

[clang-tools-extra] r283333 - [change-namespace] Fixed a bug in getShortestQualifiedNameInNamespace.

2016-10-05 Thread Eric Liu via cfe-commits
Author: ioeric Date: Wed Oct 5 10:52:39 2016 New Revision: 28 URL: http://llvm.org/viewvc/llvm-project?rev=28&view=rev Log: [change-namespace] Fixed a bug in getShortestQualifiedNameInNamespace. Reviewers: hokein Subscribers: cfe-commits Differential Revision: https://reviews.llvm.org/

[PATCH] D25065: [change-namespace] Fixed a bug in getShortestQualifiedNameInNamespace.

2016-10-05 Thread Eric Liu via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL28: [change-namespace] Fixed a bug in getShortestQualifiedNameInNamespace. (authored by ioeric). Changed prior to commit: https://reviews.llvm.org/D25065?vs=73459&id=73653#toc Repository: rL LLVM

[PATCH] D25282: [clang-move] Cleanup around replacements.

2016-10-05 Thread Eric Liu via cfe-commits
ioeric accepted this revision. ioeric added a comment. This revision is now accepted and ready to land. Lg https://reviews.llvm.org/D25282 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-com

[PATCH] D25227: [clang-move] Move comments which are associated with the moved class.

2016-10-06 Thread Eric Liu via cfe-commits
ioeric accepted this revision. ioeric added a comment. This revision is now accepted and ready to land. lg https://reviews.llvm.org/D25227 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-com

[PATCH] D24380: [migrate-tool] Framework for a codebase-dependent migration tool.

2016-10-06 Thread Eric Liu via cfe-commits
ioeric added a comment. Test phab...sorry spamming... https://reviews.llvm.org/D24380 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[PATCH] D25309: [clang-move] Support moving multiple classes in one run.

2016-10-06 Thread Eric Liu via cfe-commits
ioeric added inline comments. > ClangMove.cpp:295 > void ClangMoveTool::registerMatchers(ast_matchers::MatchFinder *Finder) { > - std::string FullyQualifiedName = "::" + Spec.Name; > + auto ParseNames = [](llvm::StringRef Names) { > +SmallVector ClassNames; Why create this lambda if it's

[PATCH] D25309: [clang-move] Support moving multiple classes in one run.

2016-10-06 Thread Eric Liu via cfe-commits
ioeric added inline comments. > hokein wrote in ClangMove.cpp:316 > "InMovedClassNames" should not be false in the matcher. Added an assert. I think you should instead exit early if `ClassNames.empty()` or assert not empty. > ClangMove.cpp:299 > + for (StringRef ClassName : ClassNames) { > +

[PATCH] D25309: [clang-move] Support moving multiple classes in one run.

2016-10-07 Thread Eric Liu via cfe-commits
ioeric accepted this revision. ioeric added a comment. This revision is now accepted and ready to land. Lg. Thanks! https://reviews.llvm.org/D25309 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinf

[PATCH] D25309: [clang-move] Support moving multiple classes in one run.

2016-10-07 Thread Eric Liu via cfe-commits
ioeric added inline comments. Comment at: clang-move/ClangMove.cpp:316 auto InMovedClass = - hasDeclContext(cxxRecordDecl(hasName(FullyQualifiedName))); + hasDeclContext(cxxRecordDecl(*InMovedClassNames)); ioeric wrote: > hokein wrote: > > ioeric w

[PATCH] D25369: [clang-move] Better support enclosing class.

2016-10-07 Thread Eric Liu via cfe-commits
ioeric added inline comments. Comment at: clang-move/ClangMove.cpp:27 +AST_MATCHER_P(CXXMethodDecl, ofOutermostEnclosingClass, + ast_matchers::internal::Matcher, InnerMatcher) { I'm not sure if we really need to limit this to the `outer-most` class

[PATCH] D25369: [clang-move] Better support enclosing class.

2016-10-08 Thread Eric Liu via cfe-commits
ioeric accepted this revision. ioeric added a comment. This revision is now accepted and ready to land. lg https://reviews.llvm.org/D25369 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-com

[PATCH] D25397: [change-namespace] don't miss comments in the beginning of a namespace block.

2016-10-08 Thread Eric Liu via cfe-commits
ioeric created this revision. ioeric added a reviewer: hokein. ioeric added a subscriber: cfe-commits. https://reviews.llvm.org/D25397 Files: change-namespace/ChangeNamespace.cpp unittests/change-namespace/ChangeNamespaceTests.cpp Index: unittests/change-namespace/ChangeNamespaceTests.cpp ==

[PATCH] D24572: [clang-tidy] Clean up code after applying replacements.

2016-10-11 Thread Eric Liu via cfe-commits
ioeric accepted this revision. ioeric added a comment. This revision is now accepted and ready to land. lgtm https://reviews.llvm.org/D24572 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-c

[PATCH] D25397: [change-namespace] don't miss comments in the beginning of a namespace block.

2016-10-11 Thread Eric Liu via cfe-commits
ioeric added inline comments. Comment at: change-namespace/ChangeNamespace.cpp:387 + Token Tok; + while (!Lex->LexFromRawLexer(Tok) && Tok.isNot(tok::TokenKind::l_brace)) { + } hokein wrote: > Maybe we can use `findLocationAfterToken` here? This doesn't seem

[clang-tools-extra] r284011 - [change-namespace] don't miss comments in the beginning of a namespace block.

2016-10-12 Thread Eric Liu via cfe-commits
Author: ioeric Date: Wed Oct 12 07:34:18 2016 New Revision: 284011 URL: http://llvm.org/viewvc/llvm-project?rev=284011&view=rev Log: [change-namespace] don't miss comments in the beginning of a namespace block. Reviewers: hokein Subscribers: cfe-commits Differential Revision: https://reviews.ll

[PATCH] D25397: [change-namespace] don't miss comments in the beginning of a namespace block.

2016-10-12 Thread Eric Liu via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL284011: [change-namespace] don't miss comments in the beginning of a namespace block. (authored by ioeric). Changed prior to commit: https://reviews.llvm.org/D25397?vs=74038&id=74368#toc Repository:

[PATCH] D25508: [clang-move] Compare with real paths of symlinks

2016-10-12 Thread Eric Liu via cfe-commits
ioeric accepted this revision. ioeric added a comment. This revision is now accepted and ready to land. Lg with one nit. Comment at: clang-move/ClangMove.cpp:410 std::string AbsolutePath = MakeAbsolutePath(SM, FileName); if (MakeAbsolutePath(OriginalRunningDirectory, Spec

[PATCH] D25565: Deduplicate sets of replacements by file names.

2016-10-13 Thread Eric Liu via cfe-commits
ioeric created this revision. ioeric added a reviewer: djasper. ioeric added subscribers: cfe-commits, bkramer, hokein. Herald added a subscriber: klimek. If there are multiple pairs with the same file path after removing dots, we only keep one pair (with path after dots being removed) and discar

[PATCH] D25565: Deduplicate sets of replacements by file names.

2016-10-13 Thread Eric Liu via cfe-commits
ioeric updated this revision to Diff 74531. ioeric added a comment. - Updated comments for RefactoringTool. https://reviews.llvm.org/D25565 Files: include/clang/Tooling/Core/Replacement.h include/clang/Tooling/Refactoring.h lib/Tooling/Core/Replacement.cpp lib/Tooling/Refactoring.cpp

[PATCH] D25565: Deduplicate sets of replacements by file names.

2016-10-13 Thread Eric Liu via cfe-commits
ioeric added inline comments. Comment at: include/clang/Tooling/Core/Replacement.h:233 - Replacements mergeReplacements(const ReplacementsImpl &Second) const; - This is dead code. https://reviews.llvm.org/D25565 ___

[clang-tools-extra] r284147 - Print stack trace for clang-change-namespace tool.

2016-10-13 Thread Eric Liu via cfe-commits
Author: ioeric Date: Thu Oct 13 13:56:14 2016 New Revision: 284147 URL: http://llvm.org/viewvc/llvm-project?rev=284147&view=rev Log: Print stack trace for clang-change-namespace tool. Modified: clang-tools-extra/trunk/change-namespace/tool/ClangChangeNamespace.cpp Modified: clang-tools-extra

[clang-tools-extra] r284148 - Print stack trace for clang-move tool.

2016-10-13 Thread Eric Liu via cfe-commits
Author: ioeric Date: Thu Oct 13 14:04:19 2016 New Revision: 284148 URL: http://llvm.org/viewvc/llvm-project?rev=284148&view=rev Log: Print stack trace for clang-move tool. Modified: clang-tools-extra/trunk/clang-move/tool/ClangMoveMain.cpp Modified: clang-tools-extra/trunk/clang-move/tool/Cl

[clang-tools-extra] r284155 - [clang-move] error out when fail to create new files.

2016-10-13 Thread Eric Liu via cfe-commits
Author: ioeric Date: Thu Oct 13 14:49:19 2016 New Revision: 284155 URL: http://llvm.org/viewvc/llvm-project?rev=284155&view=rev Log: [clang-move] error out when fail to create new files. Modified: clang-tools-extra/trunk/clang-move/tool/ClangMoveMain.cpp Modified: clang-tools-extra/trunk/cla

[PATCH] D25597: Try to fix buildbot failure in VirtualFileSystem caused by r284129.

2016-10-14 Thread Eric Liu via cfe-commits
ioeric created this revision. ioeric added a reviewer: bkramer. ioeric added a subscriber: cfe-commits. Since `remove_dots` does not delete leading "../" anymore, assertion test need to be updated. https://reviews.llvm.org/D25597 Files: lib/Basic/VirtualFileSystem.cpp Index: lib/Basic/Virtu

[PATCH] D25597: Try to fix buildbot failure in VirtualFileSystem caused by r284129.

2016-10-14 Thread Eric Liu via cfe-commits
ioeric updated this revision to Diff 74631. ioeric added a comment. - Separate assertions to get more information. https://reviews.llvm.org/D25597 Files: lib/Basic/VirtualFileSystem.cpp Index: lib/Basic/VirtualFileSystem.cpp ==

[PATCH] D25565: Deduplicate sets of replacements by file names.

2016-10-14 Thread Eric Liu via cfe-commits
ioeric updated this revision to Diff 74632. ioeric added a comment. - Change name to groupReplacementsByFile https://reviews.llvm.org/D25565 Files: include/clang/Tooling/Core/Replacement.h include/clang/Tooling/Refactoring.h lib/Tooling/Core/Replacement.cpp lib/Tooling/Refactoring.cpp

[PATCH] D25565: Deduplicate sets of replacements by file names.

2016-10-14 Thread Eric Liu via cfe-commits
ioeric updated this revision to Diff 74634. ioeric added a comment. - Merge branch 'master' of http://llvm.org/git/clang into arcpatch-D25565 - Forgot to update names in tests... https://reviews.llvm.org/D25565 Files: include/clang/Tooling/Core/Replacement.h include/clang/Tooling/Refactorin

[PATCH] D25565: Deduplicate sets of replacements by file names.

2016-10-14 Thread Eric Liu via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL284219: Deduplicate sets of replacements by file names. (authored by ioeric). Changed prior to commit: https://reviews.llvm.org/D25565?vs=74634&id=74636#toc Repository: rL LLVM https://reviews.llvm.

r284219 - Deduplicate sets of replacements by file names.

2016-10-14 Thread Eric Liu via cfe-commits
Author: ioeric Date: Fri Oct 14 04:32:06 2016 New Revision: 284219 URL: http://llvm.org/viewvc/llvm-project?rev=284219&view=rev Log: Deduplicate sets of replacements by file names. Summary: If there are multiple pairs with the same file path after removing dots, we only keep one pair (with path

[PATCH] D25598: [clang-move] Matching static class member more correctly.

2016-10-14 Thread Eric Liu via cfe-commits
ioeric accepted this revision. ioeric added a comment. This revision is now accepted and ready to land. lg https://reviews.llvm.org/D25598 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-com

<    1   2   3   4   5   6   7   8   9   10   >