hanchenye-llvm-project/clang-tools-extra/clang-rename
Alexander Shaposhnikov e4920c6fb9 [clang-rename] Fix handling of unchanged files
Fix the output of clang-rename for the files without modifications.
Update the code in clang-reorder-fields/tool/ClangReorderFields.cpp 
to avoid inconsistency.

Example:
a.h:
struct A {};
a.cpp:
#include "a.h"
int main() { return 0; }

Before the changes the output looks like this:
clang-rename -qualified-name=A -new-name=B a.cpp
<<<<<INVALID SOURCE LOCATION>>>>>

Test plan: make -j8 check-clang-tools

Differential revision: https://reviews.llvm.org/D24634

llvm-svn: 281826
2016-09-17 17:08:47 +00:00
..
tool [clang-rename] Fix handling of unchanged files 2016-09-17 17:08:47 +00:00
CMakeLists.txt clangRename: Update libdeps to add clangASTMatchers. 2016-07-19 15:53:11 +00:00
RenamingAction.cpp [clang-rename] Enforce LLVM policy about braces around single line control flow statement body. 2016-09-04 22:50:41 +00:00
RenamingAction.h [clang-rename] Add comment after namespace closing 2016-09-05 09:42:02 +00:00
USRFinder.cpp [clang-rename] Enforce LLVM policy about braces around single line control flow statement body. 2016-09-04 22:50:41 +00:00
USRFinder.h [clang-rename] Fix Clang-tidy and IWYU warnings; other minor fixes 2016-09-04 22:19:52 +00:00
USRFindingAction.cpp [clang-rename] Merge rename-{at|all} & optimise. 2016-09-16 08:45:19 +00:00
USRFindingAction.h [clang-rename] Merge rename-{at|all} & optimise. 2016-09-16 08:45:19 +00:00
USRLocFinder.cpp [clang-rename] Enforce LLVM policy about braces around single line control flow statement body. 2016-09-04 22:50:41 +00:00
USRLocFinder.h [clang-rename] speedup RenamingAction 2016-07-29 10:16:45 +00:00