[all-commits] [llvm/llvm-project] ecfa0b: [libTooling] Fix `maybeExtendRange` to support `Ch...

Gabriel Matute via All-commits all-commits at lists.llvm.org
Wed Jul 1 13:41:56 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: ecfa0b24189abf4bb172a8860048af05fa17daee
      https://github.com/llvm/llvm-project/commit/ecfa0b24189abf4bb172a8860048af05fa17daee
  Author: Gabriel Matute <gmatute at google.com>
  Date:   2020-07-01 (Wed, 01 Jul 2020)

  Changed paths:
    M clang/lib/Tooling/Transformer/SourceCode.cpp
    M clang/unittests/Tooling/SourceCodeTest.cpp

  Log Message:
  -----------
  [libTooling] Fix `maybeExtendRange` to support `CharRange`s.

Currently, `maybeExtendRange` takes a `CharSourceRange`, but only works
correctly for the `TokenRange` case. This change adds proper support for the
`CharRange` case.

Reviewed By: gribozavr2

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




More information about the All-commits mailing list