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

Kirill Bobyrev via cfe-commits cfe-commits at lists.llvm.org
Wed Jul 27 01:49:24 PDT 2016


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 necessary here anymore since it's going to be default behavior IIUC

================
Comment at: docs/clang-rename.rst:35
@@ -34,3 +34,3 @@
 
-  $ clang-rename -offset=42 -new-name=foo test.cpp -- -Imy_project/include -DMY_DEFINES ...
+  $ clang-rename rename-at -offset=42 -new-name=foo test.cpp -- -Imy_project/include -DMY_DEFINES ...
 
----------------
docs should be fixed correspondingly; i.e. prefer to write `clang-rename -offset=42....` over `clang-rename -rename-at`

================
Comment at: docs/clang-rename.rst:50
@@ +49,3 @@
+
+  $ clang-rename rename-all -old-name=foo -new-name=bar test.cpp
+
----------------
here and later, too


https://reviews.llvm.org/D21814





More information about the cfe-commits mailing list