Classes |
struct | CXComment |
| A parsed comment. More...
|
Enumerations |
enum | CXCommentKind {
CXComment_Null = 0,
CXComment_Text = 1,
CXComment_InlineCommand = 2,
CXComment_HTMLStartTag = 3,
CXComment_HTMLEndTag = 4,
CXComment_Paragraph = 5,
CXComment_BlockCommand = 6,
CXComment_ParamCommand = 7,
CXComment_TParamCommand = 8,
CXComment_VerbatimBlockCommand = 9,
CXComment_VerbatimBlockLine = 10,
CXComment_VerbatimLine = 11,
CXComment_FullComment = 12
} |
| Describes the type of the comment AST node (CXComment ). A comment node can be considered block content (e. g., paragraph), inline content (plain text) or neither (the root AST node). More...
|
enum | CXCommentInlineCommandRenderKind { CXCommentInlineCommandRenderKind_Normal,
CXCommentInlineCommandRenderKind_Bold,
CXCommentInlineCommandRenderKind_Monospaced,
CXCommentInlineCommandRenderKind_Emphasized
} |
| The most appropriate rendering mode for an inline command, chosen on command semantics in Doxygen. More...
|
enum | CXCommentParamPassDirection { CXCommentParamPassDirection_In,
CXCommentParamPassDirection_Out,
CXCommentParamPassDirection_InOut
} |
| Describes parameter passing direction for \param or \arg command. More...
|
Functions |
CINDEX_LINKAGE CXComment | clang_Cursor_getParsedComment (CXCursor C) |
| Given a cursor that represents a documentable entity (e.g., declaration), return the associated parsed comment as a CXComment_FullComment AST node.
|
CINDEX_LINKAGE enum CXCommentKind | clang_Comment_getKind (CXComment Comment) |
CINDEX_LINKAGE unsigned | clang_Comment_getNumChildren (CXComment Comment) |
CINDEX_LINKAGE CXComment | clang_Comment_getChild (CXComment Comment, unsigned ChildIdx) |
CINDEX_LINKAGE unsigned | clang_Comment_isWhitespace (CXComment Comment) |
| A CXComment_Paragraph node is considered whitespace if it contains only CXComment_Text nodes that are empty or whitespace.
|
CINDEX_LINKAGE unsigned | clang_InlineContentComment_hasTrailingNewline (CXComment Comment) |
CINDEX_LINKAGE CXString | clang_TextComment_getText (CXComment Comment) |
CINDEX_LINKAGE CXString | clang_InlineCommandComment_getCommandName (CXComment Comment) |
CINDEX_LINKAGE enum
CXCommentInlineCommandRenderKind | clang_InlineCommandComment_getRenderKind (CXComment Comment) |
CINDEX_LINKAGE unsigned | clang_InlineCommandComment_getNumArgs (CXComment Comment) |
CINDEX_LINKAGE CXString | clang_InlineCommandComment_getArgText (CXComment Comment, unsigned ArgIdx) |
CINDEX_LINKAGE CXString | clang_HTMLTagComment_getTagName (CXComment Comment) |
CINDEX_LINKAGE unsigned | clang_HTMLStartTagComment_isSelfClosing (CXComment Comment) |
CINDEX_LINKAGE unsigned | clang_HTMLStartTag_getNumAttrs (CXComment Comment) |
CINDEX_LINKAGE CXString | clang_HTMLStartTag_getAttrName (CXComment Comment, unsigned AttrIdx) |
CINDEX_LINKAGE CXString | clang_HTMLStartTag_getAttrValue (CXComment Comment, unsigned AttrIdx) |
CINDEX_LINKAGE CXString | clang_BlockCommandComment_getCommandName (CXComment Comment) |
CINDEX_LINKAGE unsigned | clang_BlockCommandComment_getNumArgs (CXComment Comment) |
CINDEX_LINKAGE CXString | clang_BlockCommandComment_getArgText (CXComment Comment, unsigned ArgIdx) |
CINDEX_LINKAGE CXComment | clang_BlockCommandComment_getParagraph (CXComment Comment) |
CINDEX_LINKAGE CXString | clang_ParamCommandComment_getParamName (CXComment Comment) |
CINDEX_LINKAGE unsigned | clang_ParamCommandComment_isParamIndexValid (CXComment Comment) |
CINDEX_LINKAGE unsigned | clang_ParamCommandComment_getParamIndex (CXComment Comment) |
CINDEX_LINKAGE unsigned | clang_ParamCommandComment_isDirectionExplicit (CXComment Comment) |
CINDEX_LINKAGE enum
CXCommentParamPassDirection | clang_ParamCommandComment_getDirection (CXComment Comment) |
CINDEX_LINKAGE CXString | clang_TParamCommandComment_getParamName (CXComment Comment) |
CINDEX_LINKAGE unsigned | clang_TParamCommandComment_isParamPositionValid (CXComment Comment) |
CINDEX_LINKAGE unsigned | clang_TParamCommandComment_getDepth (CXComment Comment) |
CINDEX_LINKAGE unsigned | clang_TParamCommandComment_getIndex (CXComment Comment, unsigned Depth) |
CINDEX_LINKAGE CXString | clang_VerbatimBlockLineComment_getText (CXComment Comment) |
CINDEX_LINKAGE CXString | clang_VerbatimLineComment_getText (CXComment Comment) |
CINDEX_LINKAGE CXString | clang_HTMLTagComment_getAsString (CXComment Comment) |
| Convert an HTML tag AST node to string.
|
CINDEX_LINKAGE CXString | clang_FullComment_getAsHTML (CXComment Comment) |
| Convert a given full parsed comment to an HTML fragment.
|
CINDEX_LINKAGE CXString | clang_FullComment_getAsXML (CXComment Comment) |
| Convert a given full parsed comment to an XML document.
|
The routines in this group provide access to information in documentation comments. These facilities are distinct from the core and may be subject to their own schedule of stability and deprecation.
Convert a given full parsed comment to an HTML fragment.
Specific details of HTML layout are subject to change. Don't try to parse this HTML back into an AST, use other APIs instead.
Currently the following CSS classes are used:
- "para-brief" for \brief paragraph and equivalent commands;
- "para-returns" for \returns paragraph and equivalent commands;
- "word-returns" for the "Returns" word in \returns paragraph.
Function argument documentation is rendered as a <dl> list with arguments sorted in function prototype order. CSS classes used:
- "param-name-index-NUMBER" for parameter name (<dt>);
- "param-descr-index-NUMBER" for parameter description (<dd>);
- "param-name-index-invalid" and "param-descr-index-invalid" are used if parameter index is invalid.
Template parameter documentation is rendered as a <dl> list with parameters sorted in template parameter list order. CSS classes used:
- "tparam-name-index-NUMBER" for parameter name (<dt>);
- "tparam-descr-index-NUMBER" for parameter description (<dd>);
- "tparam-name-index-other" and "tparam-descr-index-other" are used for names inside template template parameters;
- "tparam-name-index-invalid" and "tparam-descr-index-invalid" are used if parameter position is invalid.
- Parameters:
-
Comment | a CXComment_FullComment AST node. |
- Returns:
- string containing an HTML fragment.