[libTooling] Update Transformer's `node` combinator to include the trailing semicolon...
authorYitzhak Mandelbaum <yitzhakm@google.com>
Fri, 20 Nov 2020 16:27:22 +0000 (16:27 +0000)
committerYitzhak Mandelbaum <yitzhakm@google.com>
Fri, 20 Nov 2020 18:11:50 +0000 (18:11 +0000)
commit88e62085624e7ec55bd4a41c6d77acdcb7f1d113
tree4445aff761d8f73bcc770045ffb94ffaf1fea47c
parenta7eae62a42761f386c6762bf9434d8296f389db3
[libTooling] Update Transformer's `node` combinator to include the trailing semicolon for decls.

Currently, `node` only includes the semicolon for (some) statements. However,
declarations have the same issue of (potentially) trailing semicolons, so `node`
should behave the same for them.

Differential Revision: https://reviews.llvm.org/D91872
clang-tools-extra/unittests/clang-tidy/TransformerClangTidyCheckTest.cpp
clang/include/clang/Tooling/Transformer/RangeSelector.h
clang/lib/Tooling/Transformer/RangeSelector.cpp
clang/unittests/Tooling/TransformerTest.cpp