aboutsummaryrefslogtreecommitdiff
path: root/llvm/unittests/ADT/StringMapTest.cpp
diff options
context:
space:
mode:
authorYitzhak Mandelbaum <yitzhakm@google.com>2020-06-18 20:53:03 +0000
committerYitzhak Mandelbaum <yitzhakm@google.com>2020-06-19 18:48:54 +0000
commitd81d69f1c0c161e093531cf1ac9c1fa280ab5bf1 (patch)
tree816787213d66a0feafdcf9b0af01249f0199c963 /llvm/unittests/ADT/StringMapTest.cpp
parentb5d51c24488b5955700f29e40cfb4c5fb4241f76 (diff)
downloadllvm-d81d69f1c0c161e093531cf1ac9c1fa280ab5bf1.zip
llvm-d81d69f1c0c161e093531cf1ac9c1fa280ab5bf1.tar.gz
llvm-d81d69f1c0c161e093531cf1ac9c1fa280ab5bf1.tar.bz2
[libTooling] Change Transformer's `cat` to handle some cases of text in macros.
Summary: Currently, `cat` validates range selections before extracting the corresponding source text. However, this means that any range inside a macro is rejected as an error. This patch changes the implementation to first try to map the range to something reasonable. This makes the behavior consistent with handling of ranges used for selecting portions of the source to edit. Also updates a clang-tidy lit-test for one of the checks which was affected by this change. Reviewers: gribozavr2, tdl-g Subscribers: cfe-commits Tags: #clang Differential Revision: https://reviews.llvm.org/D82126
Diffstat (limited to 'llvm/unittests/ADT/StringMapTest.cpp')
0 files changed, 0 insertions, 0 deletions