[all-commits] [llvm/llvm-project] a7fd54: [clang-rename] Fix the missing template constructors.

Haojian Wu via All-commits all-commits at lists.llvm.org
Tue Feb 11 00:47:37 PST 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: a7fd548a4f9e50e1aa2def57bae885604c9c5878
      https://github.com/llvm/llvm-project/commit/a7fd548a4f9e50e1aa2def57bae885604c9c5878
  Author: Haojian Wu <hokein.wu at gmail.com>
  Date:   2020-02-11 (Tue, 11 Feb 2020)

  Changed paths:
    M clang-tools-extra/clangd/unittests/RenameTests.cpp
    M clang/lib/Tooling/Refactoring/Rename/USRFindingAction.cpp
    M clang/test/clang-rename/Ctor.cpp

  Log Message:
  -----------
  [clang-rename] Fix the missing template constructors.

Summary:
When renaming a class with template constructors, we are missing the
occurrences of the template constructors, because getUSRsForDeclaration doesn't
give USRs of the templated constructors (they are not in the normal `ctors()`
method).

Reviewers: kbobyrev

Subscribers: jkorous, arphaman, kadircet, usaxena95, cfe-commits

Tags: #clang

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




More information about the All-commits mailing list