-
Notifications
You must be signed in to change notification settings - Fork 7
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
issue with const
keyword
#5
Comments
Firstly, I haven't looked at this code in a while. sphinx-csharp should detect the const as a keyword. The doxygen output seems fine. My hunch is that breathe is somehow adding the static and assuming there is only one keyword. I should really add some tests for the doxygen/breathe integration, will have a look at this... |
This issue is similar to #2, except that |
wow, thanks (and for the super quick response)! btw, i also created an issue for breathe and added a ref here |
I used |
After some debugging I think the issue is in these lines: and the static is added because of: I will see if I can fix this |
I think if you use |
Can you try using |
Awesome glad it works, I will now create a merge request for the breathe repo... |
Hey, thanks for great work on adding c# support for breathe and sphinx!
I think I'm using latest versions of your fork of sphinx-csharp and breathe
and using latest doxygen installed with homebrew (im on mac)
My issue is that i have a class with a bunch of
const
ants and it seems to fail to recognise those with the following warnings:In my case its an child/internal static class, however the behaviour seems to be the same for any
const
s. static keyword is also added implicitly in the generated docs, however I think it might be also an artifact of breathe / doxygen.I tried to do some quick debugging and it seems the signature passed to
parse_variable_signature
by breathe already has the keywords merged, i.e.class definition:
Doxygen output:
Doxygen html output:
Sphinx html output:
Any ideas how to get rid of the
static
keyword or at least split theconstint
into two keywords?Or how to get the sphinx/breathe html output closer to that of doxygen?
breathe issue xref
Best,
Wiktor
The text was updated successfully, but these errors were encountered: