mosra / m.css

A no-nonsense, no-JavaScript CSS framework, site and documentation theme for content-oriented websites
https://mcss.mosra.cz
Other
409 stars 92 forks source link

Fix for Doxygen XML for a class being parsed as a function. #189

Closed crisluengo closed 2 years ago

crisluengo commented 3 years ago

I upgraded to Doxygen 1.9.0, and the head of the m.css master branch, and was faced with an error where the XML for a class was being parsed as a function. doxygen.py errors out because signature: str = element.find('argsstring').text in parse_func() is None.

This seems to be caused by a class that is a member of a class that is marked as a friend.

The second change might not be necessary, but it seems logical to me and it mirrors similar code elsewhere.

mosra commented 2 years ago

Thanks! Finally got to this part, sorry for the extreme delays.

In the second change you meant to add 'class', 'struct', 'union' to the condition as well, right? (It was still blowing up in the test_doxygen.test_cpp.Friends.test_warnings test otherwise.)

Merged as c7ee89e74cf96323b7bf14d4c7535b6867d57868, I added a comment to ensure this isn't accidentally "cleaned up" in the future.