[clang] [cindex] Add API to query the class methods of a type (PR #123539)
Trevor Laughlin via cfe-commits
cfe-commits at lists.llvm.org
Sun Jan 26 05:22:30 PST 2025
================
@@ -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.
+ """
+ if not hasattr(self, "_specialized"):
+ self._specialized = Cursor.from_result(
+ conf.lib.clang_getSpecializedCursorTemplate(self), self
+ )
+
+ return self._specialized
+
----------------
trelau wrote:
removed this and will put into a different PR (with tests)
https://github.com/llvm/llvm-project/pull/123539
More information about the cfe-commits
mailing list