hanchenye-llvm-project/clang/unittests/Tooling
Manuel Klimek b12e5a5ccd Add functions to apply replacements and reformat them.
This is a commonly useful feature to have, and we have implemented it
multiple times with different kinds of bugs. This implementation
centralizes the idea in a set of functions that we can then use from the various
tools.

Reverts r262234, which is a revert of r262232, and puts the functions
into FOrmat.h, as they are closely coupled to clang-format, and we
otherwise introduce a cyclic dependency between libFormat and
libTooling.

Patch by Eric Liu.

llvm-svn: 262323
2016-03-01 12:37:30 +00:00
..
CMakeLists.txt Revert "Implement new interfaces for code-formatting when applying replacements." 2016-02-29 16:44:16 +00:00
CommentHandlerTest.cpp Wdeprecated: CommentVerifiers are returned by value, make sure they're correctly copy/moveable 2015-08-13 21:24:08 +00:00
CompilationDatabaseTest.cpp Roll-back r250822. 2015-10-20 13:23:58 +00:00
LookupTest.cpp [Tooling] Add a utility function to replace one nested name with another. 2015-10-22 15:04:10 +00:00
QualTypeNamesTest.cpp Stop using "template" when printing qualtype names 2016-02-16 20:34:27 +00:00
RecursiveASTVisitorTest.cpp Let RecursiveASTVisitor visit array index VarDecls 2016-01-22 15:11:54 +00:00
RecursiveASTVisitorTestCallVisitor.cpp Separated RecursiveASTVisitorTest into multiple files. 2014-10-09 15:02:06 +00:00
RecursiveASTVisitorTestDeclVisitor.cpp Separated RecursiveASTVisitorTest into multiple files. 2014-10-09 15:02:06 +00:00
RecursiveASTVisitorTestExprVisitor.cpp Separated RecursiveASTVisitorTest into multiple files. 2014-10-09 15:02:06 +00:00
RecursiveASTVisitorTestTypeLocVisitor.cpp Fix initializing TypeOfTypeLoc 2014-10-24 13:52:55 +00:00
RefactoringCallbacksTest.cpp Rename AST node matchers to match the AST node names directly. Part of this rename also splits recordDecl() (which used to match CXXRecordDecl) into recordDecl() (that matches RecordDecl) and cxxRecordDecl (that matches CXXRecordDecl). Also adds isStruct(), isUnion(), and isClass() narrowing matchers for RecordDecl objects. 2015-09-17 13:30:52 +00:00
RefactoringTest.cpp Add functions to apply replacements and reformat them. 2016-03-01 12:37:30 +00:00
ReplacementsYamlTest.cpp
RewriterTest.cpp Avoid using set::emplace as it is apparently not supported by gcc 4.7. 2015-06-16 13:15:54 +00:00
RewriterTestContext.h Roll-back r250822. 2015-10-20 13:23:58 +00:00
TestVisitor.h Roll-back r250822. 2015-10-20 13:23:58 +00:00
ToolingTest.cpp Make ArgumentAdjuster aware of the current file being processed. 2015-11-05 02:19:53 +00:00