-
Notifications
You must be signed in to change notification settings - Fork 93
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
doxygen: fix keywords leaking into return type #228
Conversation
Oh, interesting, looks like |
5248267
to
5b0691b
Compare
Codecov Report
@@ Coverage Diff @@
## master #228 +/- ##
=======================================
Coverage 98.15% 98.16%
=======================================
Files 27 27
Lines 6951 6963 +12
Branches 49 49
=======================================
+ Hits 6823 6835 +12
Misses 128 128
Continue to review full report at Codecov.
|
There we are. Should be good now. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you! Finally managed to squeeze out some free time from my schedule to look at this.
I hope it's not too many comments, heh.
9997ffa
to
33a8f63
Compare
33a8f63
to
b1c2b56
Compare
b1c2b56
to
89bffa9
Compare
Rebased and merged as 2add9e0, thanks a lot for your patience :) |
No worries, happy to help improve the lib 😄 As an aside/out of curiousity: what's the deal with PR merges on this repo? They're closed but then still somehow merged in anyways. Some git/tooling shenanigans? |
I pull the branch locally and rebase it on top of master first, to avoid a merge commit. Historically GitHub didn't have UI to do that for me without squashing all commits together (maybe it does now? never actually bothered checking, GitLab used to have that as a paid feature), plus usually I also do a final pass over the changes locally before finally pushing them to |
There is a "Rebase and merge" option. |
also: - fixed `static` and `constexpr` leaking into variables (basically the same problem as mosra#228) - fixed a few tests that were broken with Doxygen 1.9.0+ - added support for C++20's `constinit`
also: - fixed `static` and `constexpr` leaking into variables (basically the same problem as mosra#228) - fixed a few tests that were broken with Doxygen 1.9.0+ - added support for C++20's `constinit`
Hola! I have done some work on
doxygen.py/parse_func()
to fix #225 and #226 by unifying the various ways the function handles the cases were doxygen leaks some keywords into the return type. It now should work regardless of the order they leak in and/or if they appear at the beginning or end of the type, as well as being more robust in the face of future Doxygenfuckupsregressions. Brute force, yo.Also did some drive-by fixes:
consteval
(since mimicking the wayconstexpr
was handled for functions seemed easy enough)CONTRIBUTING.rst
I've updated the doxygen tests, too. When I run them there are a number of test failures completely unrelated to functions (inline namespaces and such), but they appar to be known issues with Doxygen 1.9. They pass when I select only the ones that are relevant to my changes: