================
@@ -1571,6 +1615,27 @@ CXType clang_Cursor_getTemplateArgumentType(CXCursor C, 
unsigned I) {
   return cxtype::MakeCXType(TA.getAsType(), getCursorTU(C));
 }
 
+CXType clang_Cursor_getConstantTemplateArgumentType(CXCursor C, unsigned I) {
+  TemplateArgument TA;
+  if (clang_Cursor_getTemplateArgument(C, I, &TA) !=
+      CXGetTemplateArgumentStatus_Success) {
+    return cxtype::MakeCXType(QualType(), getCursorTU(C));
+  }
+
+  switch (TA.getKind()) {
----------------
fscheidl wrote:

Pack arguments are already expanded by `clang_Cursor_getTemplateArgument` 
before we reach the switch, so we should never see `TemplateArgument::Pack` 
here.

https://github.com/llvm/llvm-project/pull/183504
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to