[clang-rename] exit code-related bugfix and code cleanup
authorBenjamin Kramer <benny.kra@googlemail.com>
Thu, 14 Jul 2016 09:46:03 +0000 (09:46 +0000)
committerBenjamin Kramer <benny.kra@googlemail.com>
Thu, 14 Jul 2016 09:46:03 +0000 (09:46 +0000)
commit1afefc0da35c4e5409c17fc9caf29315353f3e63
tree86a937a019db2cae46b18764487a88db48d40fa2
parent0c05e2e4b6620f7cbb9e1b031c82287fafd742ac
[clang-rename] exit code-related bugfix and code cleanup

This patch does the following:

* enforces proper formatting for few files (i.e. deals with 80 linewidth violations and few other things)
* ensures '\n' chars are passed to the output streams instead of "\n" strings
* fixes a bug caused by calling cl::PrintHelpMessage(), which occasionally calls exit(0), so that exit(1) (which is right after cl::PrintHelpMessage line) becomes dead code

Patch by Kirill Bobyrev!

Differential Revision: http://reviews.llvm.org/D22091

llvm-svn: 275387
clang-tools-extra/clang-rename/RenamingAction.cpp
clang-tools-extra/clang-rename/USRLocFinder.cpp
clang-tools-extra/clang-rename/USRLocFinder.h
clang-tools-extra/clang-rename/tool/ClangRename.cpp
clang-tools-extra/test/clang-rename/NoNewName.cpp [new file with mode: 0644]