1/3: Add SymbolDocumentation class to parse Doxygen comments
This commit just adds and tests the a new class for doxygen parsing.
Consumption in Hover and Index will be added in a follow-up commit.
Differential D134130
[clangd] Add doxygen parsing for Hover [1/3] tom-anders on Sep 18 2022, 4:39 AM. Authored by
Details
Diff Detail
Event TimelineComment Actions Hi! Sorry for letting these series of patches sit around without any comments. We were having some discussions internally to both understand the value proposition and its implications on the infrastructure. So first of all, what are the exact use cases you're planning to address/improve with support for doxygen parsing of comments? Couple that comes to mind:
any other use cases that you believe are important? as you might've noticed, this list already talks about dealing with certain doxygen commands (but not all).
what do you think about those conclusions? any other commands that you seem worth giving a thought? another important thing to consider is trying to heuristically infer some of these fields for non-doxygen code bases as well. that way we can provide a similar experience for both. some other things to discuss about the design overall:
Happy to move the discussion to some other medium as well, if you would like to have them in discourse/github etc. Comment Actions Thanks for the detailed feedback! Unfortunately, I’m sick right now, so I probably won’t be able to give a detailed answer until after Christmas. Yeah let’s maybe copy your comment back to the GitHub Issue and discuss over there, it seems the issue has lots of subscribers already who perhaps also have some more ideas/usecases. Comment Actions Sorry to hear that. I hope you get better soon (and definitely no rush)!
posted it there, thanks! Comment Actions This is a beautiful patch, it has helped me understand the hierarchy of clang comment nodes much better. I will note that it only supports explicit briefs. That is, those for which the \brief or @brief command has appeared. But implicit briefs are also quite prevalent. An implicit brief is simply the text of the first paragraph, after removing the whitespace starting at the beginning of the FullComment, and the absence of a \brief or @brief command anywhere else in the attached javadoc. |