================
@@ -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()) {
----------------
AaronBallman wrote:
If it's a pack, should we still get the type?
https://github.com/llvm/llvm-project/pull/183504
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits