llvm-project/clang/lib/Tooling/Transformer
Yitzhak Mandelbaum 1fabe6e519 [libTooling] Change `addInclude` to use expansion locs.
This patch changes the default range used to anchor the include insertion to use
an expansion loc.  This ensures that the location is valid, when the user relies
on the default range.

Driveby: extend a FIXME for a problem that was emphasized by this change; fix some spellings.

Differential Revision: https://reviews.llvm.org/D93703
2021-01-15 03:08:56 +00:00
..
CMakeLists.txt [openmp] Base of tablegen generated OpenMP common declaration 2020-06-23 10:32:32 -04:00
Parsing.cpp [libTooling] Fix use of `char` in comparison. 2020-09-11 12:24:09 +00:00
RangeSelector.cpp [libTooling] Update Transformer's `node` combinator to include the trailing semicolon for decls. 2020-11-20 18:11:50 +00: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 `CharRange`s. 2020-07-01 20:40:48 +00:00
SourceCodeBuilders.cpp
Stencil.cpp [libTooling] Add support for smart pointers to relevant Transformer `Stencil`s. 2021-01-05 17:57:41 +00:00
Transformer.cpp [libTooling] Move RewriteRule include edits to ASTEdit granularity. 2020-08-11 16:47:14 +00:00