llvm-project/clang/unittests/Tooling
Eric Li d1e3235f60 [libTooling] Change Tranformer's consumer to take multiple changes
Previously, Transformer would invoke the consumer once per file modified per
match, in addition to any errors encountered. The consumer is not aware of which
AtomicChanges come from any particular match. It is unclear which sets of edits
may be related or whether an error invalidates any previously emitted changes.

Modify the signature of the consumer to accept a set of changes. This keeps
related changes (i.e. all edits from a single match) together, and clarifies
that errors don't produce partial changes.

Reviewed By: ymandel

Differential Revision: https://reviews.llvm.org/D119745
2022-02-15 16:34:36 +00:00
..
RecursiveASTVisitorTests [llvm][clang][NFC] updates inline licence info 2021-08-11 02:48:53 +00:00
Syntax [pseudo] Implement LRGraph 2022-02-09 11:20:07 +01:00
ASTSelectionTest.cpp
CMakeLists.txt [clangd] NFC: Move stdlib headers handling to Clang 2022-02-09 11:05:39 +01:00
CastExprTest.cpp Reformat CastExpr unittest suite; NFC 2022-02-07 09:21:41 -05:00
CommentHandlerTest.cpp
CompilationDatabaseTest.cpp Revert "Rename llvm::array_lengthof into llvm::size to match std::size from C++17" 2022-01-26 16:55:53 +01:00
DependencyScannerTest.cpp [clang][deps] Ensure filesystem cache consistency 2022-01-21 13:04:25 +01:00
DiagnosticsYamlTest.cpp Remark was added to clang tooling Diagnostic 2021-05-24 11:21:44 -04:00
ExecutionTest.cpp
FixItTest.cpp
HeaderIncludesTest.cpp [clangd] Crash in __memcmp_avx2_movbe 2022-02-10 09:40:44 -08:00
LexicallyOrderedRecursiveASTVisitorTest.cpp
LookupTest.cpp Move clang/Tooling/Core/Lookup.h to clang/Tooling/Refactoring/Lookup.h 2020-10-20 10:13:28 +01:00
QualTypeNamesTest.cpp [AST] Add more testcases to QualTypeNamesTest. NFC 2021-12-15 21:59:54 +01:00
RangeSelectorTest.cpp Widen `name` stencil to support `TypeLoc` nodes. 2021-05-13 23:23:12 +01:00
RecursiveASTVisitorTestDeclVisitor.cpp
RecursiveASTVisitorTestPostOrderVisitor.cpp [ADT] Remove APInt/APSInt toString() std::string variants 2021-06-11 13:19:15 +01:00
RecursiveASTVisitorTestTypeLocVisitor.cpp
RefactoringActionRulesTest.cpp
RefactoringCallbacksTest.cpp Remove references to the ast_type_traits namespace 2020-12-11 00:58:46 +01:00
RefactoringTest.cpp Support: Use sys::path::is_style_{posix,windows}() in a few places 2021-10-29 12:09:41 -07:00
ReplacementTest.h
ReplacementsYamlTest.cpp [yaml][clang-tidy] Fix multiline YAML serialization 2020-07-09 02:41:58 -07:00
RewriterTest.cpp
RewriterTestContext.h Tooling: Migrate some tests to FileEntryRef, NFC 2020-12-10 18:05:03 -08:00
SourceCodeBuildersTest.cpp [libTooling] Adds more support for constructing object access expressions. 2022-01-25 19:43:36 +00:00
SourceCodeTest.cpp [clang][AST] Handle overload callee type in CallExpr::getCallReturnType. 2021-04-12 09:44:17 +02:00
StandardLibraryTest.cpp [clangd] NFC: Move stdlib headers handling to Clang 2022-02-09 11:05:39 +01:00
StencilTest.cpp [libTooling] Adds more support for constructing object access expressions. 2022-01-25 19:43:36 +00:00
TestVisitor.h
ToolingTest.cpp Move TargetRegistry.(h|cpp) from Support to MC 2021-10-08 14:51:48 -07:00
TransformerTest.cpp [libTooling] Change Tranformer's consumer to take multiple changes 2022-02-15 16:34:36 +00:00