Re: [PATCH] D22465: [clang-rename] introduce better symbol finding and add few more tests

2016-07-22 Thread Kirill Bobyrev via cfe-commits
omtcyfz updated this revision to Diff 65060. omtcyfz added a comment. remove redundant `#include` and `using` directives https://reviews.llvm.org/D22465 Files: clang-rename/RenamingAction.cpp clang-rename/USRFinder.cpp clang-rename/USRFinder.h clang-rename/USRFindingAction.cpp clang-r

Re: [PATCH] D22465: [clang-rename] introduce better symbol finding and add few more tests

2016-07-22 Thread Kirill Bobyrev via cfe-commits
omtcyfz updated this revision to Diff 65066. omtcyfz added a comment. @alexfh, or wait... It's fine, I just forgot to add few tests, sorry. https://reviews.llvm.org/D22465 Files: clang-rename/RenamingAction.cpp clang-rename/USRFinder.cpp clang-rename/USRFinder.h clang-rename/USRFindingA

Re: [PATCH] D22465: [clang-rename] introduce better symbol finding and add few more tests

2016-07-22 Thread Kirill Bobyrev via cfe-commits
omtcyfz updated this revision to Diff 65065. omtcyfz added a comment. @alexfh, awww, sorry, I've uploaded wrong diff last time for whatever reason... Can you review the changes please? Now it contains many new tests and I managed to cut off unnecessary blocks of code. https://reviews.llvm.org

Re: [PATCH] D22465: [clang-rename] introduce better symbol finding and add few more tests

2016-07-22 Thread Kirill Bobyrev via cfe-commits
omtcyfz added inline comments. Comment at: test/clang-rename/ComplicatedClassType.cpp:1-6 @@ -1,6 +1,7 @@ -// Unsupported test. // RUN: cat %s > %t.cpp -// FIXME: This test contains very simple constructions likely to be seen in any -// project and therefore passing this test is

[clang-tools-extra] r276414 - [clang-rename] introduce better symbol finding

2016-07-22 Thread Kirill Bobyrev via cfe-commits
Author: omtcyfz Date: Fri Jul 22 08:41:09 2016 New Revision: 276414 URL: http://llvm.org/viewvc/llvm-project?rev=276414&view=rev Log: [clang-rename] introduce better symbol finding This patch introduces: * TypeLoc visiting, which helps a lot in renaming types * NestedNameSpecifierLoc visiting (t

Re: [PATCH] D22465: [clang-rename] introduce better symbol finding and add few more tests

2016-07-22 Thread Kirill Bobyrev via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL276414: [clang-rename] introduce better symbol finding (authored by omtcyfz). Changed prior to commit: https://reviews.llvm.org/D22465?vs=65066&id=65067#toc Repository: rL LLVM https://reviews.llvm.

Re: [PATCH] D22654: [Clang-rename] Remove custom version, fix extra space in error message

2016-07-25 Thread Kirill Bobyrev via cfe-commits
omtcyfz added a comment. Just remove it then? Repository: rL LLVM https://reviews.llvm.org/D22654 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] r276620 - [clang-rename] fix typos in tests

2016-07-25 Thread Kirill Bobyrev via cfe-commits
Author: omtcyfz Date: Mon Jul 25 03:56:11 2016 New Revision: 276620 URL: http://llvm.org/viewvc/llvm-project?rev=276620&view=rev Log: [clang-rename] fix typos in tests TemplateFunctionFindBy{Declaration|Use}.cpp contained typos and therefore were failing. clang-rename passes these tests after typ

Re: [PATCH] D22654: [Clang-rename] Remove custom version, fix extra space in error message

2016-07-25 Thread Kirill Bobyrev via cfe-commits
omtcyfz added a comment. lgtm Repository: rL LLVM https://reviews.llvm.org/D22654 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Re: [PATCH] D21814: clang-rename: split existing options into two new subcommands

2016-07-27 Thread Kirill Bobyrev via cfe-commits
omtcyfz added a comment. Apart from my high level concerns, which of course I still have... Comment at: clang-rename/tool/clang-rename.py:43 @@ -42,2 +42,3 @@ command = [binary, + "rename-at", filename, `rename-at` isn't necess

[PATCH] D22853: [clang-rename] add support for template parameter renaming

2016-07-27 Thread Kirill Bobyrev via cfe-commits
omtcyfz created this revision. omtcyfz added reviewers: alexfh, klimek. omtcyfz added a subscriber: cfe-commits. Few simple tweaks allow template parameters to be renamed. See TemplateTypenameFindBy{TemplateParam|TypeInside}.cpp for example how it works. https://reviews.llvm.org/D22853 Files:

[PATCH] D22854: change Vim key binding for include-fixer and clang-rename

2016-07-27 Thread Kirill Bobyrev via cfe-commits
omtcyfz created this revision. omtcyfz added reviewers: alexfh, klimek, ioeric. omtcyfz added a subscriber: cfe-commits. Change Vim key binding for include-fixer (`,cf` -> `cf`) and clang-rename (`,cr` -> `cr`) to use `` instead of `,` like cool Vim people (tm) do. https://reviews.llvm.org/D228

Re: [PATCH] D22854: change Vim key binding for include-fixer and clang-rename

2016-07-27 Thread Kirill Bobyrev via cfe-commits
omtcyfz updated this revision to Diff 65714. omtcyfz added a comment. add refernce to what `` is https://reviews.llvm.org/D22854 Files: clang-rename/tool/clang-rename.py docs/clang-rename.rst docs/include-fixer.rst include-fixer/tool/clang-include-fixer.py Index: include-fixer/tool/cla

Re: [PATCH] D22854: change Vim key binding for include-fixer and clang-rename

2016-07-27 Thread Kirill Bobyrev via cfe-commits
omtcyfz added a comment. In https://reviews.llvm.org/D22854#497496, @vmiklos wrote: > `:help leader` explains it. Or see this link: > http://learnvimscriptthehardway.stevelosh.com/chapters/06.html#leader. The > later describes 3 arguments for using `` instead of `,` directly. I think the poin

[clang-tools-extra] r276866 - [clang-rename] skip CXXConversionDecl while searching for NamedDecl

2016-07-27 Thread Kirill Bobyrev via cfe-commits
Author: omtcyfz Date: Wed Jul 27 08:37:22 2016 New Revision: 276866 URL: http://llvm.org/viewvc/llvm-project?rev=276866&view=rev Log: [clang-rename] skip CXXConversionDecl while searching for NamedDecl Modified: clang-tools-extra/trunk/clang-rename/USRFinder.cpp clang-tools-extra/trunk/te

Re: [PATCH] D22854: change Vim key binding for include-fixer and clang-rename

2016-07-27 Thread Kirill Bobyrev via cfe-commits
omtcyfz added a comment. Any other comments? https://reviews.llvm.org/D22854 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Re: [PATCH] D22854: change Vim key binding for include-fixer and clang-rename

2016-07-27 Thread Kirill Bobyrev via cfe-commits
omtcyfz added inline comments. Comment at: docs/clang-rename.rst:101 @@ +100,3 @@ +[`` key``](http://vim.wikia.com/wiki/Mapping_keys_in_Vim_-_Tutorial_(Part_3)#Map_leader) +is a reference to a specific key defined by the mapleader variable and is binded +to backslash by default.

Re: [PATCH] D22854: change Vim key binding for include-fixer and clang-rename

2016-07-27 Thread Kirill Bobyrev via cfe-commits
omtcyfz updated this revision to Diff 65739. omtcyfz marked an inline comment as done. https://reviews.llvm.org/D22854 Files: clang-rename/tool/clang-rename.py docs/clang-rename.rst docs/include-fixer.rst include-fixer/tool/clang-include-fixer.py Index: include-fixer/tool/clang-include-f

[clang-tools-extra] r276870 - change Vim key binding for include-fixer and clang-rename

2016-07-27 Thread Kirill Bobyrev via cfe-commits
Author: omtcyfz Date: Wed Jul 27 09:23:47 2016 New Revision: 276870 URL: http://llvm.org/viewvc/llvm-project?rev=276870&view=rev Log: change Vim key binding for include-fixer and clang-rename Change Vim key binding for include-fixer (`,cf` -> `cf`) and clang-rename (`,cr` -> `cr`) to use `` inste

Re: [PATCH] D22854: change Vim key binding for include-fixer and clang-rename

2016-07-27 Thread Kirill Bobyrev via cfe-commits
omtcyfz added inline comments. Comment at: docs/clang-rename.rst:101 @@ +100,3 @@ +[`` key``](http://vim.wikia.com/wiki/Mapping_keys_in_Vim_-_Tutorial_(Part_3)#Map_leader) +is a reference to a specific key defined by the mapleader variable and is binded +to backslash by default.

[clang-tools-extra] r276871 - fix typo in clang-rename and clang-tidy docs

2016-07-27 Thread Kirill Bobyrev via cfe-commits
Author: omtcyfz Date: Wed Jul 27 09:26:03 2016 New Revision: 276871 URL: http://llvm.org/viewvc/llvm-project?rev=276871&view=rev Log: fix typo in clang-rename and clang-tidy docs Modified: clang-tools-extra/trunk/docs/clang-rename.rst clang-tools-extra/trunk/docs/include-fixer.rst Modifi

Re: [PATCH] D22854: change Vim key binding for include-fixer and clang-rename

2016-07-27 Thread Kirill Bobyrev via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL276870: change Vim key binding for include-fixer and clang-rename (authored by omtcyfz). Changed prior to commit: https://reviews.llvm.org/D22854?vs=65739&id=65741#toc Repository: rL LLVM https://re

Re: [PATCH] D22881: Fix NamedDeclFindingASTVisitor

2016-07-28 Thread Kirill Bobyrev via cfe-commits
omtcyfz added a comment. Well, in this case `SourceMgr` should be removed... Please accept patches so fast; at least let the others take a look at it. https://reviews.llvm.org/D22881 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://li

Re: [PATCH] D22881: Fix NamedDeclFindingASTVisitor

2016-07-28 Thread Kirill Bobyrev via cfe-commits
omtcyfz added a comment. *please don't accept patches so fast https://reviews.llvm.org/D22881 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Re: [PATCH] D22881: Fix NamedDeclFindingASTVisitor

2016-07-28 Thread Kirill Bobyrev via cfe-commits
omtcyfz added a comment. if (auto *RD = Loc.getType()->getAsCXXRecordDecl()) return setResult(RD, TypeBeginLoc, TypeEndLoc); This isn't needed, too... https://reviews.llvm.org/D22881 ___ cfe-commits mailing list cfe-commits@lists.llvm.org

Re: [PATCH] D22881: Fix NamedDeclFindingASTVisitor

2016-07-28 Thread Kirill Bobyrev via cfe-commits
omtcyfz added a comment. In https://reviews.llvm.org/D22881#498911, @alexshap wrote: > inside setResult Decl->getQualifiedNameAsString() is used > so RD should not be nullptr there. > we get there in the newly added test. It is used, but then we should add this check to setResult, don't we?

Re: [PATCH] D22881: Fix NamedDeclFindingASTVisitor

2016-07-28 Thread Kirill Bobyrev via cfe-commits
omtcyfz added a comment. In https://reviews.llvm.org/D22881#498919, @alexshap wrote: > i took a look at handleNestedNameSpecifierLoc: > > const auto *Decl = NameLoc.getNestedNameSpecifier()->getAsNamespace(); > if (Decl) { >setResult(Decl, NameLoc.getLocalBeginLoc(), NameLoc.getLocalEndLo

[clang-tools-extra] r276967 - [clang-rename] USRFinder.cpp cleanup

2016-07-28 Thread Kirill Bobyrev via cfe-commits
Author: omtcyfz Date: Thu Jul 28 04:05:06 2016 New Revision: 276967 URL: http://llvm.org/viewvc/llvm-project?rev=276967&view=rev Log: [clang-rename] USRFinder.cpp cleanup Modified: clang-tools-extra/trunk/clang-rename/USRFinder.cpp Modified: clang-tools-extra/trunk/clang-rename/USRFinder.cpp

Re: [PATCH] D22906: Refactor NamedDeclFindingASTVisitor

2016-07-28 Thread Kirill Bobyrev via cfe-commits
omtcyfz added a comment. Fixed in https://reviews.llvm.org/rL276967 https://reviews.llvm.org/D22906 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] r276971 - [clang-rename] remove redundant *_cast<> traversal

2016-07-28 Thread Kirill Bobyrev via cfe-commits
Author: omtcyfz Date: Thu Jul 28 05:31:16 2016 New Revision: 276971 URL: http://llvm.org/viewvc/llvm-project?rev=276971&view=rev Log: [clang-rename] remove redundant *_cast<> traversal Modified: clang-tools-extra/trunk/clang-rename/USRLocFinder.cpp Modified: clang-tools-extra/trunk/clang-ren

Re: [PATCH] D21814: clang-rename: split existing options into two new subcommands

2016-07-29 Thread Kirill Bobyrev via cfe-commits
omtcyfz added a subscriber: Eugene.Zelenko. omtcyfz added a comment. 1. Run `clang-format` or something, 80 char width limit is broken in `tool/ClangRename.cpp` dozen of times. 2. Only do `outs() << "abcd\n" << "efgh\n"` if you have something in between, which can not be predefined. I.e. if you

Re: [PATCH] D22853: [clang-rename] add support for template parameter renaming

2016-07-29 Thread Kirill Bobyrev via cfe-commits
omtcyfz added a comment. Ping. Change is quite trivial. https://reviews.llvm.org/D22853 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Re: [PATCH] D22853: [clang-rename] add support for template parameter renaming

2016-07-29 Thread Kirill Bobyrev via cfe-commits
omtcyfz updated this revision to Diff 66095. omtcyfz added a comment. git rebase; git resolve conflicts https://reviews.llvm.org/D22853 Files: clang-rename/USRFinder.cpp clang-rename/USRLocFinder.cpp test/clang-rename/TemplateTypenameFindByTemplateParam.cpp test/clang-rename/TemplateTyp

Re: [PATCH] D21814: clang-rename: split existing options into two new subcommands

2016-07-29 Thread Kirill Bobyrev via cfe-commits
omtcyfz added a comment. In https://reviews.llvm.org/D21814#500481, @vmiklos wrote: > > 1. Run `clang-format` or something, 80 char width limit is broken in > > `tool/ClangRename.cpp` dozen of times. > > > Done. I was afraid doing that, due to the changes not related to my patch, but > the resu

Re: [PATCH] D21814: clang-rename: split existing options into two new subcommands

2016-07-29 Thread Kirill Bobyrev via cfe-commits
omtcyfz added a comment. besides, let me push one thing; it's about passing a vector of USRs to the USRLocFinder instead of passing them 1 by 1; removes a need to write that `FIXME` of yours :) https://reviews.llvm.org/D21814 ___ cfe-commits maili

Re: [PATCH] D21814: clang-rename: split existing options into two new subcommands

2016-07-29 Thread Kirill Bobyrev via cfe-commits
omtcyfz added a comment. Hm, nevermind, I should check whether it doesn't break anything. https://reviews.llvm.org/D21814 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] r277131 - [clang-rename] speedup RenamingAction

2016-07-29 Thread Kirill Bobyrev via cfe-commits
Author: omtcyfz Date: Fri Jul 29 05:16:45 2016 New Revision: 277131 URL: http://llvm.org/viewvc/llvm-project?rev=277131&view=rev Log: [clang-rename] speedup RenamingAction The complexity of renaming a USR is O(N) [N stands for number of nodes in Translation Unit]. In some cases there are more tha

Re: [PATCH] D21814: clang-rename: split existing options into two new subcommands

2016-07-29 Thread Kirill Bobyrev via cfe-commits
omtcyfz added a comment. Apparently it doesn't. Pushed to upstream. https://reviews.llvm.org/D21814 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Re: [PATCH] D21814: clang-rename: split existing options into two new subcommands

2016-07-29 Thread Kirill Bobyrev via cfe-commits
omtcyfz added a comment. In https://reviews.llvm.org/D21814#500506, @vmiklos wrote: > Rebased on top of r277131 and resolved conflicts. > > > As for help message, look at clang-tidy. Is there a need in helpMain? > > > I think so; we have this chicken-and-egg problem (see earlier comments of this

Re: [PATCH] D21814: clang-rename: split existing options into two new subcommands

2016-07-29 Thread Kirill Bobyrev via cfe-commits
omtcyfz added a comment. P.S. not sure whether we have to write `clang-rename: for the -new-name option: must be specified` out. We already launched `clang-rename` what else could've give us an error? https://reviews.llvm.org/D21814 ___ cfe-commit

Re: [PATCH] D21814: clang-rename: split existing options into two new subcommands

2016-07-29 Thread Kirill Bobyrev via cfe-commits
omtcyfz added a comment. In https://reviews.llvm.org/D21814#500629, @vmiklos wrote: > In https://reviews.llvm.org/D21814#500621, @omtcyfz wrote: > > > P.S. not sure whether we have to write `clang-rename: for the -new-name > > option: must be specified` out. We already launched `clang-rename` wh

Re: [PATCH] D21814: clang-rename: split existing options into two new subcommands

2016-07-29 Thread Kirill Bobyrev via cfe-commits
omtcyfz added a comment. In https://reviews.llvm.org/D21814#500735, @vmiklos wrote: > Yes, exactly, so not easy to customize I guess. Aha, alright. Well, doesn't matter too much. LGTM. https://reviews.llvm.org/D21814 ___ cfe-commits mailing list

[PATCH] D23006: [clang-rename] add basic Emacs integration

2016-08-01 Thread Kirill Bobyrev via cfe-commits
omtcyfz created this revision. omtcyfz added reviewers: bkramer, alexfh, klimek. omtcyfz added a subscriber: cfe-commits. This patch aims to add very basic Emacs integration. My experience with Emacs is limited to few days, so I'm not sure whether I've done things correctly. https://reviews.llvm

Re: [PATCH] D23006: [clang-rename] add basic Emacs integration

2016-08-01 Thread Kirill Bobyrev via cfe-commits
omtcyfz updated this revision to Diff 66292. omtcyfz added a comment. Update docs by adding information about Emacs integration. https://reviews.llvm.org/D23006 Files: clang-rename/tool/clang-rename.el docs/clang-rename.rst Index: docs/clang-rename.rst =

Re: [PATCH] D23006: [clang-rename] add basic Emacs integration

2016-08-01 Thread Kirill Bobyrev via cfe-commits
omtcyfz added inline comments. Comment at: clang-rename/tool/clang-rename.el:7 @@ +6,3 @@ + +;; This package allows to filter code through clang-format to fix its formatting. +;; clang-format is a tool that formats C/C++/Obj-C code according to a set of klimek wr

Re: [PATCH] D23006: [clang-rename] add basic Emacs integration

2016-08-01 Thread Kirill Bobyrev via cfe-commits
omtcyfz updated this revision to Diff 66296. omtcyfz marked 2 inline comments as done. https://reviews.llvm.org/D23006 Files: clang-rename/tool/clang-rename.el docs/clang-rename.rst Index: docs/clang-rename.rst === --- docs/clan

[PATCH] D23009: [clang-rename] handle overridden functions correctly

2016-08-01 Thread Kirill Bobyrev via cfe-commits
omtcyfz created this revision. omtcyfz added reviewers: alexfh, klimek. omtcyfz added a subscriber: cfe-commits. 1. Renaming overridden functions only works for two levels of "overriding hierarchy". `clang-rename` should recursively add overridden methods. 2. Make use of `forEachOverridden` AST M

Re: [PATCH] D23006: [clang-rename] add basic Emacs integration

2016-08-01 Thread Kirill Bobyrev via cfe-commits
omtcyfz added a comment. Manuel, any other comments? Jens seems to be missing and I don't know about anyone else who is familiar with Emacs :( https://reviews.llvm.org/D23006 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm

[clang-tools-extra] r277340 - [clang-tidy] remove trailing whitespaces and retab

2016-08-01 Thread Kirill Bobyrev via cfe-commits
Author: omtcyfz Date: Mon Aug 1 07:06:18 2016 New Revision: 277340 URL: http://llvm.org/viewvc/llvm-project?rev=277340&view=rev Log: [clang-tidy] remove trailing whitespaces and retab Modified: clang-tools-extra/trunk/clang-tidy/cert/LICENSE.TXT clang-tools-extra/trunk/clang-tidy/cert/St

Re: [PATCH] D23006: [clang-rename] add basic Emacs integration

2016-08-01 Thread Kirill Bobyrev via cfe-commits
omtcyfz added inline comments. Comment at: clang-rename/tool/clang-rename.el:20 @@ +19,3 @@ + "Rename all instances of the symbol at the point using clang-rename" + (interactive "sEnter a new name: ") + (let (;; Emacs offset is 1-based. hokein wrote: > `s` is a

Re: [PATCH] D23006: [clang-rename] add basic Emacs integration

2016-08-01 Thread Kirill Bobyrev via cfe-commits
omtcyfz updated this revision to Diff 66328. omtcyfz marked 8 inline comments as done. https://reviews.llvm.org/D23006 Files: clang-rename/tool/clang-rename.el docs/clang-rename.rst Index: docs/clang-rename.rst === --- docs/clan

Re: [PATCH] D23006: [clang-rename] add basic Emacs integration

2016-08-01 Thread Kirill Bobyrev via cfe-commits
omtcyfz added a comment. All the comments seem to be addressed. https://reviews.llvm.org/D23006 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] r277354 - [clang-rename] revert r276836

2016-08-01 Thread Kirill Bobyrev via cfe-commits
Author: omtcyfz Date: Mon Aug 1 11:48:33 2016 New Revision: 277354 URL: http://llvm.org/viewvc/llvm-project?rev=277354&view=rev Log: [clang-rename] revert r276836 Revert r276836, which resulted in tests passing regardless of the actual tool replacements. Modified: clang-tools-extra/trunk/

Re: [PATCH] D23009: [clang-rename] handle overridden functions correctly

2016-08-01 Thread Kirill Bobyrev via cfe-commits
omtcyfz updated this revision to Diff 66338. omtcyfz marked an inline comment as done. https://reviews.llvm.org/D23009 Files: clang-rename/USRFindingAction.cpp test/clang-rename/FunctionOverride.cpp Index: test/clang-rename/FunctionOverride.cpp ===

Re: [PATCH] D23009: [clang-rename] handle overridden functions correctly

2016-08-01 Thread Kirill Bobyrev via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL277356: [clang-rename] handle overridden functions correctly (authored by omtcyfz). Changed prior to commit: https://reviews.llvm.org/D23009?vs=66338&id=66340#toc Repository: rL LLVM https://reviews

Re: [PATCH] D23006: [clang-rename] add basic Emacs integration

2016-08-01 Thread Kirill Bobyrev via cfe-commits
omtcyfz updated this revision to Diff 66341. https://reviews.llvm.org/D23006 Files: clang-rename/tool/clang-rename.el docs/clang-rename.rst Index: docs/clang-rename.rst === --- docs/clang-rename.rst +++ docs/clang-rename.rst @@

Re: [PATCH] D23006: [clang-rename] add basic Emacs integration

2016-08-01 Thread Kirill Bobyrev via cfe-commits
omtcyfz marked 2 inline comments as done. Comment at: clang-rename/tool/clang-rename.el:28 @@ +27,3 @@ +(orig-buf (current-buffer)) +(file-name (buffer-file-name))) + alexfh wrote: > For posterity, please add a short summary of the offline discussi

[clang-tools-extra] r277356 - [clang-rename] handle overridden functions correctly

2016-08-01 Thread Kirill Bobyrev via cfe-commits
Author: omtcyfz Date: Mon Aug 1 12:15:57 2016 New Revision: 277356 URL: http://llvm.org/viewvc/llvm-project?rev=277356&view=rev Log: [clang-rename] handle overridden functions correctly 1. Renaming overridden functions only works for two levels of "overriding hierarchy". clang-rename should r

Re: [PATCH] D22853: [clang-rename] add support for template parameter renaming

2016-08-01 Thread Kirill Bobyrev via cfe-commits
omtcyfz added inline comments. Comment at: clang-rename/USRFinder.cpp:80 @@ -79,1 +79,3 @@ TypeBeginLoc, 0, Context.getSourceManager(), Context.getLangOpts()); +if (const auto *TemplateTypeParm = dyn_cast(Loc.getType())) { + return setResult(TemplateTypeParm->ge

Re: [PATCH] D22853: [clang-rename] add support for template parameter renaming

2016-08-01 Thread Kirill Bobyrev via cfe-commits
omtcyfz updated this revision to Diff 66372. omtcyfz added a comment. Addressed comments; updated to the latest revision. https://reviews.llvm.org/D22853 Files: clang-rename/USRFinder.cpp clang-rename/USRLocFinder.cpp test/clang-rename/TemplateTypenameFindByTemplateParam.cpp test/clang-

Re: [PATCH] D22853: [clang-rename] add support for template parameter renaming

2016-08-01 Thread Kirill Bobyrev via cfe-commits
omtcyfz updated this revision to Diff 66373. omtcyfz added a comment. Apply `clang-format` to fit 80 cols limit. https://reviews.llvm.org/D22853 Files: clang-rename/USRFinder.cpp clang-rename/USRLocFinder.cpp test/clang-rename/TemplateTypenameFindByTemplateParam.cpp test/clang-rename/Te

Re: [PATCH] D22853: [clang-rename] add support for template parameter renaming

2016-08-01 Thread Kirill Bobyrev via cfe-commits
omtcyfz marked 3 inline comments as done. omtcyfz added a comment. https://reviews.llvm.org/D22853 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Re: [PATCH] D23006: [clang-rename] add basic Emacs integration

2016-08-01 Thread Kirill Bobyrev via cfe-commits
omtcyfz marked an inline comment as done. omtcyfz added a comment. https://reviews.llvm.org/D23006 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Re: [PATCH] D23006: [clang-rename] add basic Emacs integration

2016-08-02 Thread Kirill Bobyrev via cfe-commits
omtcyfz updated this revision to Diff 66434. https://reviews.llvm.org/D23006 Files: clang-rename/tool/CMakeLists.txt clang-rename/tool/clang-rename.el docs/clang-rename.rst Index: docs/clang-rename.rst === --- docs/clang-renam

Re: [PATCH] D23006: [clang-rename] add basic Emacs integration

2016-08-02 Thread Kirill Bobyrev via cfe-commits
omtcyfz added a comment. In https://reviews.llvm.org/D23006#502814, @Eugene.Zelenko wrote: > Please add install rule for clang-rename.el. See clang-format CMakeLists.txt > as example. Good point! Thank you! Done. https://reviews.llvm.org/D23006 ___

Re: [PATCH] D23006: [clang-rename] add basic Emacs integration

2016-08-02 Thread Kirill Bobyrev via cfe-commits
omtcyfz updated this revision to Diff 66437. omtcyfz added a comment. - s/print/type - Add `clang-rename.py` to the `CMakeLists.txt` installation instructions. https://reviews.llvm.org/D23006 Files: clang-rename/tool/CMakeLists.txt clang-rename/tool/clang-rename.el docs/clang-rename.rst

Re: [PATCH] D23006: [clang-rename] add basic Emacs integration

2016-08-02 Thread Kirill Bobyrev via cfe-commits
omtcyfz marked 2 inline comments as done. omtcyfz added a comment. Thanks! Fixed. Waiting few more hours just in case anyone will jump in and write few comments. https://reviews.llvm.org/D23006 ___ cfe-commits mailing list cfe-commits@lists.llvm.or

[clang-tools-extra] r277433 - [clang-rename] add basic Emacs integration

2016-08-02 Thread Kirill Bobyrev via cfe-commits
Author: omtcyfz Date: Tue Aug 2 03:51:26 2016 New Revision: 277433 URL: http://llvm.org/viewvc/llvm-project?rev=277433&view=rev Log: [clang-rename] add basic Emacs integration This patch aims to add very basic Emacs integration. Reviewers: hokein, alexfh Differential Revision: https://reviews.

Re: [PATCH] D23006: [clang-rename] add basic Emacs integration

2016-08-02 Thread Kirill Bobyrev via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL277433: [clang-rename] add basic Emacs integration (authored by omtcyfz). Changed prior to commit: https://reviews.llvm.org/D23006?vs=66437&id=66442#toc Repository: rL LLVM https://reviews.llvm.org/

Re: [PATCH] D21814: clang-rename: split existing options into two new subcommands

2016-08-02 Thread Kirill Bobyrev via cfe-commits
omtcyfz added a comment. //Make sure to rebase once more; documentation was updated in the last revision.// https://reviews.llvm.org/D21814 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-c

[clang-tools-extra] r277437 - [clang-rename] add support for template parameter renaming

2016-08-02 Thread Kirill Bobyrev via cfe-commits
Author: omtcyfz Date: Tue Aug 2 04:38:38 2016 New Revision: 277437 URL: http://llvm.org/viewvc/llvm-project?rev=277437&view=rev Log: [clang-rename] add support for template parameter renaming Few simple tweaks allow template parameters to be renamed. See TemplateTypenameFindBy{TemplateParam|Type

Re: [PATCH] D22853: [clang-rename] add support for template parameter renaming

2016-08-02 Thread Kirill Bobyrev via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL277437: [clang-rename] add support for template parameter renaming (authored by omtcyfz). Changed prior to commit: https://reviews.llvm.org/D22853?vs=66373&id=66446#toc Repository: rL LLVM https://r

[PATCH] D23058: [clang-rename] add support for template instantiations

2016-08-02 Thread Kirill Bobyrev via cfe-commits
omtcyfz created this revision. omtcyfz added reviewers: alexfh, klimek. omtcyfz added a subscriber: cfe-commits. This patch introduces basic capabilities of renaming templated class and its specializations. https://reviews.llvm.org/D23058 Files: clang-rename/USRFinder.cpp clang-rename/USRFi

[clang-tools-extra] r277469 - [clang-rename] fix Emacs script build failure

2016-08-02 Thread Kirill Bobyrev via cfe-commits
Author: omtcyfz Date: Tue Aug 2 10:10:17 2016 New Revision: 277469 URL: http://llvm.org/viewvc/llvm-project?rev=277469&view=rev Log: [clang-rename] fix Emacs script build failure Clang-rename Emacs integration script sometimes doesn't work correctly. Modified: clang-tools-extra/trunk/clang

[clang-tools-extra] r277491 - [clang-rename] fix Emacs integration script

2016-08-02 Thread Kirill Bobyrev via cfe-commits
Author: omtcyfz Date: Tue Aug 2 13:23:08 2016 New Revision: 277491 URL: http://llvm.org/viewvc/llvm-project?rev=277491&view=rev Log: [clang-rename] fix Emacs integration script Modified: clang-tools-extra/trunk/clang-rename/tool/clang-rename.el Modified: clang-tools-extra/trunk/clang-rename

[clang-tools-extra] r277577 - [clang-tidy] address concerns with rL277340

2016-08-03 Thread Kirill Bobyrev via cfe-commits
Author: omtcyfz Date: Wed Aug 3 01:54:24 2016 New Revision: 277577 URL: http://llvm.org/viewvc/llvm-project?rev=277577&view=rev Log: [clang-tidy] address concerns with rL277340 alexfh raised a concern with https://reviews.llvm.org/rL277340 After retabbing indentation of .. code-block:: was incr

Re: [PATCH] D23058: [clang-rename] add support for template instantiations

2016-08-03 Thread Kirill Bobyrev via cfe-commits
omtcyfz added inline comments. Comment at: test/clang-rename/TemplateClassInstantiationFindByUninstantiatedType.cpp:2 @@ +1,3 @@ +// RUN: cat %s > %t.cpp +// RUN: clang-rename -offset=440 -new-name=Bar %t.cpp -i -- +// RUN: sed 's,//.*,,' %t.cpp | FileCheck %s al

Re: [PATCH] D23058: [clang-rename] add support for template instantiations

2016-08-03 Thread Kirill Bobyrev via cfe-commits
omtcyfz added inline comments. Comment at: test/clang-rename/TemplateClassInstantiationFindByDeclaration.cpp:2 @@ -1,3 +1,3 @@ // RUN: cat %s > %t.cpp -// RUN: clang-rename -offset=287 -new-name=Bar %t.cpp -i -- +// RUN: clang-rename -offset=159 -new-name=Bar %t.cpp -i -- // RUN

Re: [PATCH] D23058: [clang-rename] add support for template instantiations

2016-08-03 Thread Kirill Bobyrev via cfe-commits
omtcyfz updated this revision to Diff 66634. https://reviews.llvm.org/D23058 Files: clang-rename/USRFinder.cpp clang-rename/USRFindingAction.cpp test/clang-rename/ComplexFunctionOverride.cpp test/clang-rename/TemplateClassInstantiationFindByDeclaration.cpp test/clang-rename/TemplateClas

Re: [PATCH] D23058: [clang-rename] improve USRFindingAction

2016-08-03 Thread Kirill Bobyrev via cfe-commits
omtcyfz updated this revision to Diff 66642. omtcyfz added a comment. Removed `dump()` call used for debugging purposes. Removed unneeded header inclusion in `USRFindingAction.cpp`. https://reviews.llvm.org/D23058 Files: clang-rename/USRFinder.cpp clang-rename/USRFindingAction.cpp test/cl

Re: [PATCH] D23058: [clang-rename] improve USRFindingAction

2016-08-03 Thread Kirill Bobyrev via cfe-commits
omtcyfz updated this revision to Diff 66670. omtcyfz added a comment. Merged multiple identical tests into a single test with multiple `clang-rename` invocations. https://reviews.llvm.org/D23058 Files: clang-rename/USRFinder.cpp clang-rename/USRFindingAction.cpp test/clang-rename/Complex

Re: [PATCH] D23058: [clang-rename] improve USRFindingAction

2016-08-03 Thread Kirill Bobyrev via cfe-commits
omtcyfz marked 2 inline comments as done. Comment at: test/clang-rename/TemplateClassInstantiationFindByUninstantiatedType.cpp:3 @@ +2,3 @@ +// RUN: clang-rename -offset=440 -new-name=Bar %t.cpp -i -- +// RUN: sed 's,//.*,,' %t.cpp | FileCheck %s + alexfh wrote:

[clang-tools-extra] r277623 - [docs] fix typo in clang-rename docs

2016-08-03 Thread Kirill Bobyrev via cfe-commits
Author: omtcyfz Date: Wed Aug 3 13:15:07 2016 New Revision: 277623 URL: http://llvm.org/viewvc/llvm-project?rev=277623&view=rev Log: [docs] fix typo in clang-rename docs clang-rename is a refactoring tool, not "linter" tool. Fix typo in docs. Modified: clang-tools-extra/trunk/docs/clang-ren

[clang-tools-extra] r277663 - [clang-rename] improve USRFindingAction

2016-08-03 Thread Kirill Bobyrev via cfe-commits
Author: omtcyfz Date: Wed Aug 3 18:00:32 2016 New Revision: 277663 URL: http://llvm.org/viewvc/llvm-project?rev=277663&view=rev Log: [clang-rename] improve USRFindingAction 1. Improve templated class renaming, namely add capabilities of finding partial and full specializations. Every class parti

Re: [PATCH] D23058: [clang-rename] improve USRFindingAction

2016-08-03 Thread Kirill Bobyrev via cfe-commits
This revision was automatically updated to reflect the committed changes. omtcyfz marked an inline comment as done. Closed by commit rL277663: [clang-rename] improve USRFindingAction (authored by omtcyfz). Changed prior to commit: https://reviews.llvm.org/D23058?vs=66670&id=66728#toc Repositor

[PATCH] D23158: [clang-rename] merge tests when possible

2016-08-04 Thread Kirill Bobyrev via cfe-commits
omtcyfz created this revision. omtcyfz added reviewers: alexfh, klimek. omtcyfz added a subscriber: cfe-commits. The only difference between some tests is `-offset` passed to `clang-rename`. It makes sense to merge them into a single file and add multiple tool invocations. https://reviews.llvm.

[clang-tools-extra] r277709 - [clang-rename] add missing clang-format improvements

2016-08-04 Thread Kirill Bobyrev via cfe-commits
Author: omtcyfz Date: Thu Aug 4 04:23:30 2016 New Revision: 277709 URL: http://llvm.org/viewvc/llvm-project?rev=277709&view=rev Log: [clang-rename] add missing clang-format improvements r277702 introduced clang-format changes so that later commits wouldn't introduce non-functional changes while

Re: [PATCH] D23153: Run clang-format on clang-rename code

2016-08-04 Thread Kirill Bobyrev via cfe-commits
omtcyfz added a comment. Actually few changes `clang-format` would produce weren't there. It's either you used old `clang-format` or you missed them, but there were header reordering issues. Pushed quick fix. Repository: rL LLVM https://reviews.llvm.org/D23153 ___

Re: [PATCH] D23158: [clang-rename] merge tests when possible

2016-08-04 Thread Kirill Bobyrev via cfe-commits
omtcyfz updated this revision to Diff 66801. omtcyfz marked an inline comment as done. https://reviews.llvm.org/D23158 Files: clang-rename/USRFindingAction.cpp clang-rename/tool/ClangRename.cpp test/clang-rename/ClassAsTemplateArgument.cpp test/clang-rename/ClassAsTemplateArgumentFindByCl

Re: [PATCH] D23158: [clang-rename] merge tests when possible

2016-08-04 Thread Kirill Bobyrev via cfe-commits
omtcyfz updated this revision to Diff 66803. omtcyfz added a comment. Rebased on master. Removed unneeded file copying etc since clang-rename can output to the stdout. https://reviews.llvm.org/D23158 Files: test/clang-rename/ClassAsTemplateArgument.cpp test/clang-rename/ClassAsTemplateArgu

Re: [PATCH] D23158: [clang-rename] merge tests when possible

2016-08-04 Thread Kirill Bobyrev via cfe-commits
omtcyfz updated this revision to Diff 66818. omtcyfz added a comment. Make testset great again. https://reviews.llvm.org/D23158 Files: test/clang-rename/ClassAsTemplateArgument.cpp test/clang-rename/ClassAsTemplateArgumentFindByClass.cpp test/clang-rename/ClassAsTemplateArgumentFindByTemp

[PATCH] D23193: [clang-rename] fix bug with initializer lists

2016-08-05 Thread Kirill Bobyrev via cfe-commits
omtcyfz created this revision. omtcyfz added a reviewer: alexfh. omtcyfz added a subscriber: cfe-commits. `clang-rename` is currently not able to find a symbol in initializer list. This patch is a fix of that bug. https://reviews.llvm.org/D23193 Files: clang-rename/USRFinder.cpp clang-renam

Re: [PATCH] D23198: clang-rename rename-all: support reading old/newname pairs from a YAML file

2016-08-05 Thread Kirill Bobyrev via cfe-commits
omtcyfz added a comment. Still don't see general use case for that one, but since we already support multiple renamings "at once"... Would also be nice to support at least `offset + new-name` in YAML input files, too. Comment at: clang-rename/tool/ClangRename.cpp:140 @@ -116,

Re: [PATCH] D23198: clang-rename rename-all: support reading old/newname pairs from a YAML file

2016-08-05 Thread Kirill Bobyrev via cfe-commits
omtcyfz added inline comments. Comment at: clang-rename/tool/ClangRename.cpp:140 @@ -116,1 +139,3 @@ cl::value_desc("filename"), cl::cat(*Category)); + cl::opt Input( + "input", cl::desc("YAML file to load oldname-newname pairs from."), vmiklos wrote:

Re: [PATCH] D23198: clang-rename rename-all: support reading old/newname pairs from a YAML file

2016-08-06 Thread Kirill Bobyrev via cfe-commits
omtcyfz added a comment. `.cpp.rename-at.yaml`? I understand it's done for the purpose of doing `-input %s.rename-at.yaml`, though I don't think getting proper names for them and either doing some string magic in tool invocation or just passing full name is wrong. Other than that my concerns s

Re: [PATCH] D23198: clang-rename rename-all: support reading old/newname pairs from a YAML file

2016-08-06 Thread Kirill Bobyrev via cfe-commits
omtcyfz added a comment. + I'll take a look again on Monday, too. May be too sleepy now :) https://reviews.llvm.org/D23198 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[PATCH] D23243: [clang-tidy] enhance modernize-use-bool-literals to check ternary operator

2016-08-06 Thread Kirill Bobyrev via cfe-commits
omtcyfz created this revision. omtcyfz added reviewers: alexfh, Eugene.Zelenko. omtcyfz added a subscriber: cfe-commits. Fixing bug https://llvm.org/bugs/show_bug.cgi?id=28854. Implicit cast with ternary operator makes AST look in a way in which it feels reasonable to add second matcher to detec

Re: [PATCH] D23243: [clang-tidy] enhance modernize-use-bool-literals to check ternary operator

2016-08-07 Thread Kirill Bobyrev via cfe-commits
omtcyfz removed rL LLVM as the repository for this revision. omtcyfz updated this revision to Diff 67095. omtcyfz added a comment. Comment `anyOf()` part in check's matcher and extend testset. https://reviews.llvm.org/D23243 Files: clang-tidy/modernize/UseBoolLiteralsCheck.cpp test/clang-ti

Re: [PATCH] D23243: [clang-tidy] enhance modernize-use-bool-literals to check ternary operator

2016-08-07 Thread Kirill Bobyrev via cfe-commits
omtcyfz marked 2 inline comments as done. Comment at: clang-tidy/modernize/UseBoolLiteralsCheck.cpp:38-43 @@ +37,8 @@ + unless(isInTemplateInstantiation(, + anyOf(hasTrueExpression(ignoringParenImpCasts( +integerLiteral().bind("trueBra

Re: [PATCH] D23243: [clang-tidy] enhance modernize-use-bool-literals to check ternary operator

2016-08-07 Thread Kirill Bobyrev via cfe-commits
omtcyfz marked 2 inline comments as done. omtcyfz added a comment. Thanks. Yes, sure. https://reviews.llvm.org/D23243 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

<    1   2   3   4   5   6   7   >