teak-llvm/clang/unittests/Tooling
Yitzhak Mandelbaum b9d2bf38e8 [libTooling] Fix bug in Stencil handling of macro ranges
Summary: Currently, an attempt to rewrite source code inside a macro expansion succeeds, but results in empty text, rather than failing with an error.  This patch restructures to the code to explicitly validate ranges before attempting to edit them.

Reviewers: gribozavr

Subscribers: cfe-commits

Tags: #clang

Differential Revision: https://reviews.llvm.org/D72274
2020-01-17 12:11:25 -05:00
..
RecursiveASTVisitorTests [Tooling] Move raw string literal out of a macro call. NFC 2019-12-12 10:53:20 +01:00
Syntax [Syntax] Unset IsOriginal flag on nodes removed from the tree 2020-01-14 17:00:33 +01:00
ASTSelectionTest.cpp
CastExprTest.cpp
CMakeLists.txt Reland "[AST] Traverse the class type loc inside the member type loc."" 2019-12-09 11:18:12 +01:00
CommentHandlerTest.cpp [Tooling] Migrated APIs that take ownership of objects to unique_ptr 2019-08-30 09:29:34 +00:00
CompilationDatabaseTest.cpp [clang][Tooling] Prefer -x over -std when interpolating 2019-12-20 11:10:36 +01:00
DependencyScannerTest.cpp Use FileEntryRef for PPCallbacks::HasInclude 2019-08-27 17:32:42 +00:00
DiagnosticsYamlTest.cpp
ExecutionTest.cpp Changed FrontendActionFactory::create to return a std::unique_ptr 2019-08-29 16:38:36 +00:00
FixItTest.cpp
HeaderIncludesTest.cpp
LexicallyOrderedRecursiveASTVisitorTest.cpp
LookupTest.cpp
QualTypeNamesTest.cpp Renamed traverseDecl to TraverseDecl in a test 2020-01-17 17:12:23 +01:00
RangeSelectorTest.cpp [libTooling] Put all Transformer declarations in a single namespace. 2019-10-16 01:06:46 +00:00
RecursiveASTVisitorTestDeclVisitor.cpp
RecursiveASTVisitorTestPostOrderVisitor.cpp
RecursiveASTVisitorTestTypeLocVisitor.cpp
RefactoringActionRulesTest.cpp
RefactoringCallbacksTest.cpp
RefactoringTest.cpp [Tooling] Migrated APIs that take ownership of objects to unique_ptr 2019-08-30 09:29:34 +00:00
ReplacementsYamlTest.cpp
ReplacementTest.h
RewriterTest.cpp
RewriterTestContext.h
SourceCodeBuildersTest.cpp [libTooling] Move Transformer files to their own directory/library. 2019-10-10 02:34:47 +00:00
SourceCodeTest.cpp [libTooling] Fix bug in Stencil handling of macro ranges 2020-01-17 12:11:25 -05:00
StencilTest.cpp [libTooling] Fix bug in Stencil handling of macro ranges 2020-01-17 12:11:25 -05:00
TestVisitor.h [Tooling] Migrated APIs that take ownership of objects to unique_ptr 2019-08-30 09:29:34 +00:00
ToolingTest.cpp [clang][Tooling] Filter flags that generate output in SyntaxOnlyAdjuster 2019-11-13 15:03:30 +01:00
TransformerTest.cpp [libTooling] Further simplify Stencil type and introduce MatchComputation. 2019-11-11 12:44:15 -05:00