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é



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

Reply via email to