[PATCH] D72274: [libTooling] Fix bug in Stencil handling of macro ranges
Yitzhak Mandelbaum via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Mon Jan 6 08:09:40 PST 2020
ymandel created this revision.
ymandel added a reviewer: gribozavr.
Herald added a project: clang.
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.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D72274
Files:
clang/include/clang/Tooling/Transformer/SourceCode.h
clang/lib/Tooling/Transformer/SourceCode.cpp
clang/lib/Tooling/Transformer/Stencil.cpp
clang/unittests/Tooling/SourceCodeTest.cpp
clang/unittests/Tooling/StencilTest.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D72274.236369.patch
Type: text/x-patch
Size: 10170 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20200106/ccc6cc9e/attachment.bin>
More information about the cfe-commits
mailing list