[PATCH] Add [some[ template argument-extraction calls to libclang & cindex

Rob Springer rspringer at google.com
Sun Oct 5 15:40:41 PDT 2014


Hi eliben,

Adds the following calls to libclang/cindex:
- clang_Cursor_getNumTemplateArgument: Retrieves 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_getTemplateArgumentValue: Retrives, as an unsigned long long, the integral value of the n'th argument of a FunctionDecl

http://reviews.llvm.org/D5621

Files:
  bindings/python/clang/cindex.py
  bindings/python/tests/cindex/test_cursor.py
  include/clang-c/Index.h
  test/Index/preamble_macro_template.cpp
  tools/c-index-test/c-index-test.c
  tools/libclang/CXCursor.cpp
  tools/libclang/libclang.exports
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D5621.14437.patch
Type: text/x-patch
Size: 13972 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20141005/d49e13af/attachment.bin>


More information about the llvm-commits mailing list