[all-commits] [llvm/llvm-project] 54afca: [clangd] Report xref for base methods.

Utkarsh Saxena via All-commits all-commits at lists.llvm.org
Wed Feb 3 03:08:12 PST 2021


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

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

  Log Message:
  -----------
  [clangd] Report xref for base methods.

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

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

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

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




More information about the All-commits mailing list