llvm-project/clang/unittests/Tooling
Eric Liu e86a5f4c65 Make llvm::Error generated from replacement interfaces more specific.
Summary:
The new error information contains the type of error (e.g. overlap or bad file path)
and the replacement(s) that is causing the error. This enables us to resolve some errors.
For example, for insertion at the same location conflict, we need to know the
existing replacement which conflicts with the new replacement in order to calculate
the new position to be insert before/after the existing replacement (for merging).

Reviewers: klimek, bkramer

Subscribers: djasper, cfe-commits

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

llvm-svn: 287639
2016-11-22 13:46:42 +00:00
..
CMakeLists.txt Turn on the /bigobj switch for RecursiveASTVisitorTest.cpp; we are now bumping up against that limit with MSVC 2015 in Win64 debug build mode. 2016-11-02 14:31:36 +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 Resubmit "[Tooling] Parse compilation database command lines on Windows." 2016-08-18 19:31:48 +00:00
FixItTest.cpp [tooling] FixItHint Tooling refactoring 2016-05-11 14:31:39 +00:00
LookupTest.cpp [Tooling] skip anonymous namespaces when checking if typeLoc references a type decl from a different canonical namespace. 2016-07-26 14:53:05 +00:00
QualTypeNamesTest.cpp [Tooling] Add optional argument to getFullyQualifiedName to prepend "::". 2016-06-29 22:38:59 +00:00
RecursiveASTVisitorTest.cpp [RecursiveASTVisitor] Visit the implicit expression of a CXXDefaultArgExpr 2016-10-26 20:39:54 +00:00
RecursiveASTVisitorTestCallVisitor.cpp [NFC] Header cleanup 2016-07-18 19:02:11 +00:00
RecursiveASTVisitorTestDeclVisitor.cpp [NFC] Header cleanup 2016-07-18 19:02:11 +00:00
RecursiveASTVisitorTestExprVisitor.cpp Visit lambda capture inits from RecursiveASTVisitor::TraverseLambdaCapture(). 2016-08-17 14:59:53 +00:00
RecursiveASTVisitorTestTypeLocVisitor.cpp [NFC] Header cleanup 2016-07-18 19:02:11 +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 Make llvm::Error generated from replacement interfaces more specific. 2016-11-22 13:46:42 +00:00
ReplacementTest.h Implement tooling::Replacements as a class. 2016-08-01 10:16:37 +00:00
ReplacementsYamlTest.cpp Do not quote YAML plain string myself. Let YAMLIO do that. 2013-09-11 04:00:35 +00:00
RewriterTest.cpp Implement tooling::Replacements as a class. 2016-08-01 10:16:37 +00:00
RewriterTestContext.h Roll-back r250822. 2015-10-20 13:23:58 +00:00
TestVisitor.h Visit lambda capture inits from RecursiveASTVisitor::TraverseLambdaCapture(). 2016-08-17 14:59:53 +00:00
ToolingTest.cpp Fix colored diagnostics from tools 2016-08-30 17:42:29 +00:00