[all-commits] [llvm/llvm-project] c78325: [clang][tooling] Fix `name` range-selector to hand...

Yitzhak Mandelbaum via All-commits all-commits at lists.llvm.org
Fri Aug 25 07:45:44 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: c78325815062d62f0e2c68b6e72bb31b60c48260
      https://github.com/llvm/llvm-project/commit/c78325815062d62f0e2c68b6e72bb31b60c48260
  Author: Yitzhak Mandelbaum <yitzhakm at google.com>
  Date:   2023-08-25 (Fri, 25 Aug 2023)

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

  Log Message:
  -----------
  [clang][tooling] Fix `name` range-selector to handle TypeLocs correctly.

Previously, where `name` was applied to a template-specialization TypeLoc, it
returned the entire specialization (name, brackets, args) rather than just the
name identifier. With this change, exactly the name token is selected.

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




More information about the All-commits mailing list