-
-
Notifications
You must be signed in to change notification settings - Fork 5
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
AssertionError when C++20 Concepts are present #1
Comments
Ooooh, exciting, a concepts-related bug! Thanks for the report. I'll have a look into it and try to come up with a workaround over the weekend. |
If it's rainy enough over the weekend, I could look into adding concepts support into m.css. Was one of my TODO items for Doxygen 1.9 support, apart from everything else in mosra/m.css#215. No promises though :P |
@jake-arkinstall I've added a workaround for this in 0.5.5. Now if a C++20 concept is found during the XML preprocess it will be removed and a warning emitted:
If you do as the warning says and stick your concepts inside an appropriately labeled |
Astounding turnaround. Hit me up if you set up github sponsors in future. Same to @mosra. |
@jake-arkinstall Oh, hey, I'm flattered! But honestly I don't think I'd ever bother with the whole sponsorship thing. My job pays me well enough to live a comfortable life, and the open-source bits+pieces I do on the side are pretty firmly in the realm of "bit of fun on the weekends", so they don't really need incentivizing. Having said that, if you want to throw 5 bucks into a charity of your choice in my name, I won't try to stop you :) |
@mosra would you like an additional maintainer for m.css, at least for the doxygen part? I'd be willing to put my hand up for that, if so. Adding concepts seems like it would be fun, and I'm not yet too burned out on doxygen's (mis)behaviour 😅 |
@wroyca since you're using modules it occurs to me that it's also very likely you'll be creating/using C++20's |
Thanks for the heads up! Concept aside, there is also the issue of doxygen not recognizing the new |
@jake-arkinstall as of v0.9.0 support for C++20 concepts has been implemented 🎉 You'll need to add Note that it's an evolving story as they're not even merged into m.css yet (I have a PR for that), so the way they're presented or organized might change a bit over the coming versions. Happy to hear any feedback. |
MCSS, specifically the mcss fork that Poxy uses (the issues tab isn't present on the fork), compares each fundamental element type against a list (doxygen.py, line 3222) including struct, enum, etc. As
concept
isn't present, the chain of comparisons ends up at the else condition, which simply assertsFalse
and crashes the entire documentation generation process.I would appreciate concept generation being added, but I'm also happy for the
else
condition to simply ignore unknown element types (generating a warning instead of assertingFalse
).The text was updated successfully, but these errors were encountered: