[all-commits] [llvm/llvm-project] 65cb4f: [libTooling] Change `after` range-selector to oper...

Yitzhak Mandelbaum via All-commits all-commits at lists.llvm.org
Thu Oct 15 13:59:22 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 65cb4fdd69f43b6c39a8e4ca27b509284b11d807
      https://github.com/llvm/llvm-project/commit/65cb4fdd69f43b6c39a8e4ca27b509284b11d807
  Author: Yitzhak Mandelbaum <yitzhakm at google.com>
  Date:   2020-10-15 (Thu, 15 Oct 2020)

  Changed paths:
    M clang/lib/Tooling/Transformer/RangeSelector.cpp
    M clang/unittests/Tooling/RangeSelectorTest.cpp

  Log Message:
  -----------
  [libTooling] Change `after` range-selector to operate only on source ranges

Currently, `after` fails when applied to locations in macro arguments.  This
change projects the subrange into a file source range and then applies `after`.

Differential Revision: https://reviews.llvm.org/D89468




More information about the All-commits mailing list