Skip to content
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

doxygenfunction can't recognize default parameter values #993

Open
SigmaKlim opened this issue Aug 21, 2024 · 0 comments
Open

doxygenfunction can't recognize default parameter values #993

SigmaKlim opened this issue Aug 21, 2024 · 0 comments

Comments

@SigmaKlim
Copy link

Hello.
Here I have the function:
void MyFun(int x, char8_t* y = u8"ib")
It is correctly parsed by Doxygen.
However, when referenced with .. doxygenfunction:: MyFun(int x, char8_t* y = u8"ib" ), I receive an error saying " Could not parse arguments. Parsing eror is Invalid C++ declaration: Expecting “,” or “)” in parameters-and-qualifiers, got “””."
I need to include function arguments into the command, so I can't just use .. doxygenfunction:: MyFun. Neither can I use .. doxygenfunction:: MyFun(int x, char8_t* y ), because breathe does not connect xml function declaration with the command. The only solution I found is to completely exclude the problematic parameter value (with @cond/@endcond). This is, of course, undesireble as the reader would like to see the genuine function signature with all the default values and not some "postprocessed" version.
Any suggestions, please?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant