[all-commits] [llvm/llvm-project] fbeff2: [clangd] Report only decl of overridding method in...

Utkarsh Saxena via All-commits all-commits at lists.llvm.org
Tue Feb 2 04:06:53 PST 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: fbeff2ec2bc6e44b92931207b0063f83ff7a3b3a
      https://github.com/llvm/llvm-project/commit/fbeff2ec2bc6e44b92931207b0063f83ff7a3b3a
  Author: Utkarsh Saxena <usx at google.com>
  Date:   2021-02-02 (Tue, 02 Feb 2021)

  Changed paths:
    M clang-tools-extra/clangd/XRefs.cpp
    M clang-tools-extra/clangd/XRefs.h
    M clang-tools-extra/clangd/unittests/XRefsTests.cpp

  Log Message:
  -----------
  [clangd] Report only decl of overridding method in xref.

See: https://github.com/clangd/clangd/issues/668

```
struct A { virtual void foo() = 0; };
struct B : A { void foo() override; };
```

Find refs on `A::foo()` will show:
- decls of `A::foo()`
- decls of `B::foo()`
- refs to `A::foo()`
- no refs to `B::foo()`.

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




More information about the All-commits mailing list