[all-commits] [llvm/llvm-project] 71aa3f: [clangd] Add parameter renaming to define-inline c...

kadir çetinkaya via All-commits all-commits at lists.llvm.org
Thu Oct 31 01:28:16 PDT 2019


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 71aa3f7b7e43bf7d2a8a38324b1f9f7b12bbbdfc
      https://github.com/llvm/llvm-project/commit/71aa3f7b7e43bf7d2a8a38324b1f9f7b12bbbdfc
  Author: Kadir Cetinkaya <kadircet at google.com>
  Date:   2019-10-31 (Thu, 31 Oct 2019)

  Changed paths:
    M clang-tools-extra/clangd/refactor/tweaks/DefineInline.cpp
    M clang-tools-extra/clangd/unittests/TweakTests.cpp

  Log Message:
  -----------
  [clangd] Add parameter renaming to define-inline code action

Summary:
When moving a function definition to declaration location we also need
to handle renaming of the both function and template parameters.

This patch achives that by making sure every parameter name and dependent type
in destination is renamed to their respective name in the source.

Reviewers: ilya-biryukov

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

Tags: #clang

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




More information about the All-commits mailing list