Adds the following calls to libclang/cindex:
- clang_Cursor_getNumTemplateArgument: Retrieves the number of template arguments specified in a FunctionDecl
- clang_Cursor_getTemplateArgumentKind: Retrieves a CXTemplateArgumentKind (defined in this change, corresponds to clang::TemplateArgument::ArgKind) the number of template arguments specified in a FunctionDecl
- clang_Cursor_getTemplateArgumentType: Retrieves a CXType describing the n'th [template type] argument of a FunctionDecl
- clang_Cursor_getTemplateArgumentValue: Retrives, as a [signed] long long, the integral value of the n'th argument of a FunctionDecl
- clang_Cursor_getTemplateArgumentUnsignedValue: Retrives, as an unsigned long long, the integral value of the n'th argument of a FunctionDecl
Since you're really only looking for one cursor for 'foo' here, maybe this loop can be simplified away? I.g. no need for 'found' etc. The test and its kin can be made shorter