[all-commits] [llvm/llvm-project] ee648c: [clang][index] Index unresolved member expression ...

Denis Fatkulin via All-commits all-commits at lists.llvm.org
Fri Aug 19 09:03:44 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: ee648c0ce09b1edcee65407041eab38228f4b042
      https://github.com/llvm/llvm-project/commit/ee648c0ce09b1edcee65407041eab38228f4b042
  Author: Denis Fatkulin <fatkulin.denis at huawei.com>
  Date:   2022-08-19 (Fri, 19 Aug 2022)

  Changed paths:
    M clang-tools-extra/clangd/unittests/XRefsTests.cpp
    M clang/lib/Index/IndexBody.cpp
    M clang/test/Index/Core/index-dependent-source.cpp

  Log Message:
  -----------
  [clang][index] Index unresolved member expression as reference

Unresolved member expressions aren't indexed as references.

Example code:

```
struct Foo {
  template <typename T> void bar(T t);
};
template <typename T> void test(Foo F, T t) {
  F.bar(t); // Not indexed
}
```

Reviewed By: hokein

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




More information about the All-commits mailing list