hanchenye-llvm-project/clang/unittests
Alex Lorenz b54ef6a2a4 [refactor] add clang-refactor tool with initial testing support and
local-rename action

This commit introduces the clang-refactor tool alongside the local-rename action
which uses the existing renaming engine used by clang-rename. The tool
doesn't actually perform the source transformations yet, it just provides
testing support. This commit also moves only one test from clang-rename over to
test/Refactor. I will continue to move the other tests throughout
development of clang-refactor.

The following options are supported by clang-refactor:

-v: use verbose output
-selection: The source range that corresponds to the portion of the source
 that's selected (currently only special command test:<file> is supported).

Please note that a follow-up commit will migrate clang-refactor to
libTooling's common option parser, so clang-refactor will be able to use
the common interface with compilation database and options like -p, -extra-arg,
etc.

The testing support provided by clang-refactor is described below:

When -selection=test:<file> is given, clang-refactor will parse the selection
commands from that file. The selection commands are grouped and the specified
refactoring action invoked by the tool. Each command in a group is expected to
produce an identical result. The precise syntax for the selection commands is
described in a comment in TestSupport.h.

Differential Revision: https://reviews.llvm.org/D36574

llvm-svn: 313244
2017-09-14 10:06:52 +00:00
..
AST [AST] Add TableGen for StmtDataCollectors 2017-09-06 13:20:51 +00:00
ASTMatchers Add objcImplementationDecl matcher 2017-09-10 21:00:15 +00:00
Analysis [analyzer] Performance optimizations for the CloneChecker 2017-08-31 07:10:46 +00:00
Basic [Basic] Add a DiagnosticError llvm::ErrorInfo subclass 2017-08-25 15:48:00 +00:00
CodeGen ClangCodeGenTests: Update libdeps. 2017-08-27 11:46:05 +00:00
Driver Use class to pass information about executable name 2017-08-29 05:22:26 +00:00
Format clang-format: [JS] wrap and indent `goog.setTestOnly` calls. 2017-09-11 15:22:52 +00:00
Frontend Use the VFS from the CompilerInvocation by default 2017-09-12 16:54:53 +00:00
Lex [Lexer] Finding beginning of token with escaped new line 2017-08-10 10:06:16 +00:00
Rename Use add_clang_unittest in the CMakeLists.txt for the moved unittest 2017-06-30 16:43:00 +00:00
Rewrite
Sema
StaticAnalyzer Add a method to get the list of registered static analyzer checkers. 2016-11-08 07:23:32 +00:00
Tooling [refactor] add clang-refactor tool with initial testing support and 2017-09-14 10:06:52 +00:00
libclang Fixed more signed/unsigned mismatch warnings introduced in my change at r279076 2016-08-18 20:56:48 +00:00
CMakeLists.txt [refactor] Move clang-rename into the clang repository 2017-06-30 16:36:09 +00:00