llvm-project/clang/lib/Tooling/Transformer
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
..
CMakeLists.txt [libTooling] Move `RewriteRule` abstraction into its own header and impl. 2019-10-11 14:43:46 +00:00
RangeSelector.cpp [libTooling] Put all Transformer declarations in a single namespace. 2019-10-16 01:06:46 +00:00
RewriteRule.cpp [libTooling] Further simplify `Stencil` type and introduce `MatchComputation`. 2019-11-11 12:44:15 -05:00
SourceCode.cpp [libTooling] Fix bug in Stencil handling of macro ranges 2020-01-17 12:11:25 -05:00
SourceCodeBuilders.cpp
Stencil.cpp [libTooling] Fix bug in Stencil handling of macro ranges 2020-01-17 12:11:25 -05:00
Transformer.cpp [libTooling] Put all Transformer declarations in a single namespace. 2019-10-16 01:06:46 +00:00