================
@@ -0,0 +1,48 @@
+// Check that clang_getCursorReferenced() resolves member references through a
+// dependent base class to the member of the primary template.
+
+template <typename T>
+class A {
+public:
+ int size() const { return 1; }
+ int field;
+ void ov(int);
+ void ov(float);
+};
+
+template <typename T>
+class B : public A<T> {
+public:
+ int f1() const { return this->size(); }
+ int f2() const { return this->field; }
+ void f3() { this->ov(1); }
+ int f4() const { return A<T>::size(); }
+};
+
+// RUN: c-index-test -test-load-source local %s | FileCheck %s
+
+// CHECK: 16:27: CallExpr=:7:7 Extent=[16:27 - 16:39]
----------------
HighCommander4 wrote:
Consider using relative line references, e.g. `[[@LINE-8]]`; see
`index-concepts.cpp` for some examples.
https://github.com/llvm/llvm-project/pull/235116
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits