About the variadic test case, from what I saw here 
http://clang.llvm.org/doxygen/classclang_1_1TemplateArgument.html#ad5158465bd96aebe0d9dc44207821220
 , variadic are not counted as Type arguments but (probably) as Pack arguments 
containing Type arguments (I can check that if you want) and Matthieu's new 
function works only with types (it does not work with integer template 
arguments also).
  Other functions would be needed to handle the variadic template argument 
case, as they would be needed also for integer arguments.


================
Comment at: tools/c-index-test/c-index-test.c:1272
@@ -1271,3 +1271,3 @@
           CXType T = clang_getCursorType(clang_Cursor_getArgument(cursor, i));
           if (T.kind != CXType_Invalid) {
             PrintTypeAndTypeKind(T, " [%s] [%s]");
----------------
Dmitri Gribenko wrote:
> Please print something in the invalid case as well, or print the NumArgs 
> variable.
> 
>   [templateargs/3=[Int][Int]]
> 
> Maybe something like that.
This is the getArgument test, mine is the one below. Modifying this one breaks 
other tests, but I'll do it for the my case.


http://llvm-reviews.chandlerc.com/D1688
_______________________________________________
cfe-commits mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits

Reply via email to