[all-commits] [llvm/llvm-project] 62116c: [clangd] consider ~^foo() to target the destructor...

Sam McCall via All-commits all-commits at lists.llvm.org
Wed Oct 19 05:12:54 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 62116c8f0b5b7aac3d53f1bd2445356ae6866048
      https://github.com/llvm/llvm-project/commit/62116c8f0b5b7aac3d53f1bd2445356ae6866048
  Author: Sam McCall <sam.mccall at gmail.com>
  Date:   2022-10-19 (Wed, 19 Oct 2022)

  Changed paths:
    M clang-tools-extra/clangd/Selection.cpp
    M clang-tools-extra/clangd/unittests/SelectionTests.cpp

  Log Message:
  -----------
  [clangd] consider ~^foo() to target the destructor, not the type

This behavior was once deliberate, but i've yet to find someone who likes it.
The reference behavior is unchanged: the `foo` within ~foo is still considered
a reference to the type. This means rename etc still works.

fixes https://github.com/clangd/clangd/issues/179

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




More information about the All-commits mailing list