summaryrefslogtreecommitdiffstats
path: root/clang-tools-extra/change-namespace
Commit message (Collapse)AuthorAgeFilesLines
...
* [change-namespace] Fix a misplaced case when there is no trailing newline ↵Haojian Wu2016-10-041-2/+3
| | | | | | | | | | | | character at the end of the file. Reviewers: ioeric Subscribers: cfe-commits Differential Revision: https://reviews.llvm.org/D25226 llvm-svn: 283210
* [change-namespace] fix namespace specifier of global variables.Eric Liu2016-09-301-3/+20
| | | | | | | | | | Reviewers: hokein Subscribers: cfe-commits Differential Revision: https://reviews.llvm.org/D24963 llvm-svn: 282837
* Workaround ASTMatcher crashes. Added some more test cases.Eric Liu2016-09-271-10/+17
| | | | | | | | | | | | | | | Summary: - 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 parameter list (also due to no parent map). Workaround by putting `unless(cxxMethodDecl())` before parent check. Reviewers: klimek, sbenza, aaron.ballman, hokein Subscribers: aaron.ballman, cfe-commits Differential Revision: https://reviews.llvm.org/D24862 llvm-svn: 282486
* [change-namespace] fix qualifier of function references.Eric Liu2016-09-221-4/+34
| | | | | | | | | | Reviewers: hokein Subscribers: cfe-commits Differential Revision: https://reviews.llvm.org/D24803 llvm-svn: 282146
* [change-namespace] fix name qualifiers in UsingShadowDecl and ↵Eric Liu2016-09-212-4/+43
| | | | | | | | | | | | NestedNameSpecifier. Reviewers: hokein Subscribers: cfe-commits Differential Revision: https://reviews.llvm.org/D24784 llvm-svn: 282073
* clang-change-namespace: Update libdeps.NAKAMURA Takumi2016-09-201-0/+5
| | | | | FIXME: It seems clangFormat is not referred. llvm-svn: 281954
* Add missing dependency to change-namespace.Eric Liu2016-09-192-0/+2
| | | | llvm-svn: 281935
* Trying to fix name conflict in change-namespace tool.Eric Liu2016-09-192-6/+6
| | | | llvm-svn: 281920
* A clang tool for changing surrouding namespaces of class/function definitions.Eric Liu2016-09-195-0/+800
Summary: A tool for changing surrouding namespaces of class/function definitions while keeping references to types in the changed namespace correctly qualified by prepending namespace specifiers before them. Example: test.cc namespace na { class X {}; namespace nb { class Y { X x; }; } // namespace nb } // namespace na To move the definition of class Y from namespace "na::nb" to "x::y", run: clang-change-namespace --old_namespace "na::nb" \ --new_namespace "x::y" --file_pattern "test.cc" test.cc -- Output: namespace na { class X {}; } // namespace na namespace x { namespace y { class Y { na::X x; }; } // namespace y } // namespace x Reviewers: alexfh, omtcyfz, hokein Subscribers: mgorny, klimek, djasper, beanz, alexshap, Eugene.Zelenko, cfe-commits Differential Revision: https://reviews.llvm.org/D24183 llvm-svn: 281918
OpenPOWER on IntegriCloud