MaskRay added a comment.

In https://reviews.llvm.org/D42895#998617, @yvvan wrote:

> I feel quite ok about this patch.
>
> Can you please add unit-tests?


Added

  // CHECK:      [indexEntityReference]: kind: field | name: y | {{.*}} | loc: 
70:5 | {{.*}} | role: ref write
  // CHECK:      [indexEntityReference]: kind: field | name: x | {{.*}} | loc: 
70:11 | {{.*}} | role: ref read
  // CHECK:      [indexEntityReference]: kind: function | name: foo3 | {{.*}} | 
loc: 71:10 | {{.*}} | role: ref addressof
  // CHECK:      [indexEntityReference]: kind: function | name: foo4 | {{.*}} | 
loc: 72:3 | {{.*}} | role: ref call

to `clang/test/Index/index-refs.cpp`. I will implement read/write after this 
revision is landed.. https://github.com/cquery-project/cquery/issues/262


Repository:
  rC Clang

https://reviews.llvm.org/D42895



_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to