[PATCH] libclang: New functions clang_Type_getNumTemplateArguments, clang_Type_getTemplateArgument.

Philippe Daouadi pdaouadi at aldebaran-robotics.com
Wed Feb 26 04:37:58 PST 2014


  I'll write the tests for variadic templates, templated argument and partial specialization (and fix the code if it needs to be)


================
Comment at: tools/c-index-test/c-index-test.c:1288
@@ +1287,3 @@
+          if (TArg.kind != CXType_Invalid) {
+            PrintTypeAndTypeKind(TArg, " [%s] [%s]");
+          }
----------------
Dmitri Gribenko wrote:
> This format is confusing (is it two parameters instead of one?)  Consider more verbose [type=%s] [typekind=%s]
> 
Seems like this comes from the test right above which has been copy pasted. Will fix that (and the one above), but this ambiguity is not dangerous to the tests.


http://llvm-reviews.chandlerc.com/D1688



More information about the cfe-commits mailing list