Open MarcelVersteeg opened 3 years ago
This library was not meant to support C++ and templates, also because libclang is sometimes not exposing everything, which is bringing more complications because we need to re-parse things CppAst. But PR welcome if you find a way to expose this properly.
Let's say I have the following code
When I parse this, I get the following parameter information for the methods: TestMethod1 -> param type is
unsigned int
TestMethod2 -> param type isMyTemplateClass
(wihtout the template arguments!) TestMethod3 -> param type isMyTemplateClass
(wihtout the template arguments!)When I look at the C interface of clang, it seems that this is solved by using the canonical types, where the original (non-expanded type) is the actual type and holds a pointer to the underlying expanded type (not tested as I am writing C# code using this library). However using this library, I am not able to get the original type as it is declared in the method signature.
I would like to know the original parameter type as it is written in the code and not the already expanded typedef. My parse configuration is as follows: