[all-commits] [llvm/llvm-project] 88e620: [libTooling] Update Transformer's `node` combinato...

Yitzhak Mandelbaum via All-commits all-commits at lists.llvm.org
Fri Nov 20 10:12:24 PST 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 88e62085624e7ec55bd4a41c6d77acdcb7f1d113
      https://github.com/llvm/llvm-project/commit/88e62085624e7ec55bd4a41c6d77acdcb7f1d113
  Author: Yitzhak Mandelbaum <yitzhakm at google.com>
  Date:   2020-11-20 (Fri, 20 Nov 2020)

  Changed paths:
    M clang-tools-extra/unittests/clang-tidy/TransformerClangTidyCheckTest.cpp
    M clang/include/clang/Tooling/Transformer/RangeSelector.h
    M clang/lib/Tooling/Transformer/RangeSelector.cpp
    M clang/unittests/Tooling/TransformerTest.cpp

  Log Message:
  -----------
  [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




More information about the All-commits mailing list