[cfe-commits] [Patch] Better libclang template support (looking for someone to look over the changes)

A. Selm and.selm+clanglist at gmail.com
Wed Sep 19 10:36:55 PDT 2012


Hello,

I modified libclang to support C++ templates better.

As I am a first-time contributor, it would be great if someone could 
look over the changes, propose revisions and help me create the 
according patches.

The changes can be seen in this github diff:
https://github.com/FunkMonkey/libClang/compare/master...dev_templates

My changes include:
- exposing the types TemplateTypeParm, TemplateSpecialization
- accessing the template parameters of a cursor
-- clang_getTemplateNumParameters and clang_getTemplateParameter
- exposing template arguments as cursors

The part about the template arguments is really debatable, as they are 
not AST nodes in Clang, but I exposed them as AST cursors in libclang 
(because it fit better to what I did).

Other changes
- exposing type Elaborated
- getting the access specifier of a member cursor 
(clang_getCXXMemberAccessSpecifier)

Thanks,
André






More information about the cfe-commits mailing list