llvm-capstone/clang/lib/Tooling/Transformer
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
..
CMakeLists.txt [openmp] Base of tablegen generated OpenMP common declaration 2020-06-23 10:32:32 -04:00
Parsing.cpp [clang] Remove unused "using" (NFC) 2021-12-27 20:48:21 -08:00
RangeSelector.cpp Widen name stencil to support TypeLoc nodes. 2021-05-13 23:23:12 +01:00
RewriteRule.cpp [libTooling] Change addInclude to use expansion locs. 2021-01-15 03:08:56 +00:00
SourceCode.cpp [libTooling] Fix maybeExtendRange to support CharRanges. 2020-07-01 20:40:48 +00:00
SourceCodeBuilders.cpp Fix MSVC 'not all control paths return a value' warning. NFC. 2022-01-26 11:33:37 +00:00
Stencil.cpp [libTooling] Adds more support for constructing object access expressions. 2022-01-25 19:43:36 +00:00
Transformer.cpp [libTooling] Change Tranformer's consumer to take multiple changes 2022-02-15 16:34:36 +00:00