-
Notifications
You must be signed in to change notification settings - Fork 45
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support for variable template #2
Comments
Finish Feature Libclang-3.8-Fixes Add support for alias templates, see #2.
Under libclang 3.8 or higher alias templates are now supported. |
Add support for alias templates, see #2.
You might consider using libtooling instead of libclang. This is what @chandlerc recommended to @agserm and @bgeller for copperspice/doxypress. |
Yeah, I know I should. But I got it working except for this issue and #39, so I see what I can do. |
As @purpleKarrot noted, libclang will most likely never support the level of parsing you need for a documentation engine. We discovered this in developing doxypress. The libclang interface is really oriented toward a code completion use case, and basically supports "whatever XCode needed to understand." We tried to make libclang work for our case but eventually realized it would be futile and we would be fighting the API every step of the way. |
I was able to get all the information I wanted, because I've coupled libclang with my own parser that scans the tokens of a cursor. The problem with variable templates is that - last time I've checked - they are reported as regular variables, so I was not able to get the template information. This seems to be a libclang bug though. |
This is now tracked here: standardese/cppast#11 |
Due to libclang 3.7 limitations there is no support for variable or alias templates.
Variable templates become normal variables and alias templates are simply ignored.
Before a libclang version gets available try to work around that somehow.
The text was updated successfully, but these errors were encountered: