|
clang-tools 23.0.0git
|
#include <SymbolDocumentation.h>
Public Member Functions | |
| SymbolDocCommentVisitor (llvm::StringRef Documentation, const CommentOptions &CommentOpts) | |
| bool | isParameterDocumented (StringRef ParamName) const |
| bool | isTemplateTypeParmDocumented (StringRef ParamName) const |
| bool | hasBriefCommand () const |
| bool | hasReturnCommand () const |
| bool | hasDetailedDoc () const |
| void | detailedDocToMarkup (markup::Document &Out) const |
| Converts all unhandled comment commands to a markup document. | |
| void | briefToMarkup (markup::Paragraph &Out) const |
| Converts the "brief" command(s) to a markup document. | |
| void | returnToMarkup (markup::Paragraph &Out) const |
| Converts the "return" command(s) to a markup document. | |
| void | retvalsToMarkup (markup::Document &Out) const |
| Converts the "retval" command(s) to a markup document. | |
| void | visitBlockCommandComment (const comments::BlockCommandComment *B) |
| void | templateTypeParmDocToMarkup (StringRef TemplateParamName, markup::Paragraph &Out) const |
| void | templateTypeParmDocToString (StringRef TemplateParamName, llvm::raw_string_ostream &Out) const |
| void | parameterDocToMarkup (StringRef ParamName, markup::Paragraph &Out) const |
| void | parameterDocToString (StringRef ParamName, llvm::raw_string_ostream &Out) const |
| void | visitParagraphComment (const comments::ParagraphComment *P) |
| void | visitParamCommandComment (const comments::ParamCommandComment *P) |
| void | visitTParamCommandComment (const comments::TParamCommandComment *TP) |
| void | preprocessDocumentation (StringRef Doc) |
| Preprocesses the raw documentation string to prepare it for doxygen parsing. | |
Definition at line 31 of file SymbolDocumentation.h.
|
inline |
Definition at line 34 of file SymbolDocumentation.h.
References preprocessDocumentation().
| void clang::clangd::SymbolDocCommentVisitor::briefToMarkup | ( | markup::Paragraph & | Out | ) | const |
Converts the "brief" command(s) to a markup document.
Definition at line 491 of file SymbolDocumentation.cpp.
| void clang::clangd::SymbolDocCommentVisitor::detailedDocToMarkup | ( | markup::Document & | Out | ) | const |
Converts all unhandled comment commands to a markup document.
Definition at line 523 of file SymbolDocumentation.cpp.
|
inline |
Definition at line 88 of file SymbolDocumentation.h.
|
inline |
Definition at line 92 of file SymbolDocumentation.h.
|
inline |
Definition at line 90 of file SymbolDocumentation.h.
|
inline |
Definition at line 80 of file SymbolDocumentation.h.
|
inline |
Definition at line 84 of file SymbolDocumentation.h.
| void clang::clangd::SymbolDocCommentVisitor::parameterDocToMarkup | ( | StringRef | ParamName, |
| markup::Paragraph & | Out ) const |
Definition at line 503 of file SymbolDocumentation.cpp.
| void clang::clangd::SymbolDocCommentVisitor::parameterDocToString | ( | StringRef | ParamName, |
| llvm::raw_string_ostream & | Out ) const |
Definition at line 513 of file SymbolDocumentation.cpp.
Referenced by clang::clangd::getDeclComment().
| void clang::clangd::SymbolDocCommentVisitor::preprocessDocumentation | ( | StringRef | Doc | ) |
Preprocesses the raw documentation string to prepare it for doxygen parsing.
This is a workaround to provide better support for markdown in doxygen. Clang's doxygen parser e.g. does not handle markdown code blocks.
The documentation string is preprocessed to replace some markdown constructs with parsable doxygen commands. E.g. markdown code blocks are replaced with doxygen \code{.lang} ... \endcode blocks.
Additionally, potential doxygen commands inside markdown inline code spans are escaped to avoid that doxygen tries to interpret them as commands.
Definition at line 353 of file SymbolDocumentation.cpp.
Referenced by SymbolDocCommentVisitor().
| void clang::clangd::SymbolDocCommentVisitor::returnToMarkup | ( | markup::Paragraph & | Out | ) | const |
Converts the "return" command(s) to a markup document.
Definition at line 497 of file SymbolDocumentation.cpp.
| void clang::clangd::SymbolDocCommentVisitor::retvalsToMarkup | ( | markup::Document & | Out | ) | const |
Converts the "retval" command(s) to a markup document.
Definition at line 553 of file SymbolDocumentation.cpp.
| void clang::clangd::SymbolDocCommentVisitor::templateTypeParmDocToMarkup | ( | StringRef | TemplateParamName, |
| markup::Paragraph & | Out ) const |
Definition at line 533 of file SymbolDocumentation.cpp.
| void clang::clangd::SymbolDocCommentVisitor::templateTypeParmDocToString | ( | StringRef | TemplateParamName, |
| llvm::raw_string_ostream & | Out ) const |
Definition at line 543 of file SymbolDocumentation.cpp.
Referenced by clang::clangd::getDeclComment().
| void clang::clangd::SymbolDocCommentVisitor::visitBlockCommandComment | ( | const comments::BlockCommandComment * | B | ) |
Definition at line 457 of file SymbolDocumentation.cpp.
|
inline |
Definition at line 118 of file SymbolDocumentation.h.
|
inline |
Definition at line 125 of file SymbolDocumentation.h.
|
inline |
Definition at line 129 of file SymbolDocumentation.h.