https://github.com/trelau updated
https://github.com/llvm/llvm-project/pull/123539
>From bb0542e8f2ad50892ee9d2c1f76ec1def85c3e56 Mon Sep 17 00:00:00 2001
From: Trevor Laughlin
Date: Sun, 19 Jan 2025 19:21:10 -0500
Subject: [PATCH] [cindex] Add API to query the class methods of a type
---
cla
@@ -2052,6 +2052,19 @@ def referenced(self):
return self._referenced
+@property
+def specialized(self):
+"""
+For a cursor that is instantiated from a template, returns a cursor
+representing the template that it was instantiated from.
https://github.com/trelau updated
https://github.com/llvm/llvm-project/pull/123539
>From bb0542e8f2ad50892ee9d2c1f76ec1def85c3e56 Mon Sep 17 00:00:00 2001
From: Trevor Laughlin
Date: Sun, 19 Jan 2025 19:21:10 -0500
Subject: [PATCH 1/2] [cindex] Add API to query the class methods of a type
---
https://github.com/trelau created
https://github.com/llvm/llvm-project/pull/123539
Inspired by https://github.com/llvm/llvm-project/pull/120300, add a new API
`clang_visitCXXMethods` to libclang (and the Python bindings) which allows
iterating over the class methods of a type.
>From bb0542e8f
trelau wrote:
For what it's worth, to get around my issue in
https://github.com/llvm/llvm-project/issues/121502 I followed your same pattern
here and added a ```get_methods()``` function to Python (and a new libclang
function ```clang_visitCXXMethods```) to access the class methods.
Looking a
trelau wrote:
Just referencing https://github.com/llvm/llvm-project/issues/121502 since this
PR seem somewhat related (making it easier to iterate over things and pointed
out it doesn't work for template instantiations, which might be the underlying
problem I encountered).
I'd like to keep us