================ @@ -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 + ---------------- DeinAlptraum wrote:
This change seems unrelated to the rest of this PR, and should be in a separate one. It is also missing tests. https://github.com/llvm/llvm-project/pull/123539 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits