[all-commits] [llvm/llvm-project] b9d2bf: [libTooling] Fix bug in Stencil handling of macro ...
Yitzhak Mandelbaum via All-commits
all-commits at lists.llvm.org
Fri Jan 17 09:11:45 PST 2020
Branch: refs/heads/master
Home: https://github.com/llvm/llvm-project
Commit: b9d2bf38e86e6dd8a2f188d9a24f546aa67de8af
https://github.com/llvm/llvm-project/commit/b9d2bf38e86e6dd8a2f188d9a24f546aa67de8af
Author: Yitzhak Mandelbaum <yitzhakm at google.com>
Date: 2020-01-17 (Fri, 17 Jan 2020)
Changed paths:
M clang/include/clang/Tooling/Transformer/SourceCode.h
M clang/lib/Tooling/Transformer/SourceCode.cpp
M clang/lib/Tooling/Transformer/Stencil.cpp
M clang/unittests/Tooling/SourceCodeTest.cpp
M clang/unittests/Tooling/StencilTest.cpp
Log Message:
-----------
[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
More information about the All-commits
mailing list