|
clang 22.0.0git
|
Any part of the comment. More...
#include "clang/AST/Comment.h"
Classes | |
| struct | Argument |
| class | BlockCommandCommentBitfields |
| class | CommentBitfields |
| class | HTMLStartTagCommentBitfields |
| class | HTMLTagCommentBitfields |
| class | InlineCommandCommentBitfields |
| class | InlineContentCommentBitfields |
| class | ParagraphCommentBitfields |
| class | ParamCommandCommentBitfields |
| class | TextCommentBitfields |
Public Types | |
| typedef Comment *const * | child_iterator |
Public Member Functions | |
| Comment (CommentKind K, SourceLocation LocBegin, SourceLocation LocEnd) | |
| CommentKind | getCommentKind () const |
| const char * | getCommentKindName () const |
| void | dump () const |
| void | dumpColor () const |
| void | dump (raw_ostream &OS, const ASTContext &Context) const |
| SourceRange | getSourceRange () const LLVM_READONLY |
| SourceLocation | getBeginLoc () const LLVM_READONLY |
| SourceLocation | getEndLoc () const LLVM_READONLY |
| SourceLocation | getLocation () const LLVM_READONLY |
| child_iterator | child_begin () const |
| child_iterator | child_end () const |
| unsigned | child_count () const |
Protected Types | |
| enum | { NumCommentBits = 8 } |
| enum | { NumInlineContentCommentBits = NumCommentBits + 1 } |
| enum | { NumTextCommentBits = NumInlineContentCommentBits + 2 } |
| enum | { NumInlineCommandCommentBits } |
| enum | { NumHTMLTagCommentBits = NumInlineContentCommentBits + 1 } |
| enum | { NumHTMLStartTagCommentBits = NumHTMLTagCommentBits + 1 } |
| enum | { NumParagraphCommentBits = NumCommentBits + 2 } |
| enum | { NumBlockCommandCommentBits } |
| enum | { NumParamCommandCommentBits = NumBlockCommandCommentBits + 3 } |
Protected Member Functions | |
| void | setSourceRange (SourceRange SR) |
| void | setLocation (SourceLocation L) |
Protected Attributes | |
| SourceLocation | Loc |
| Preferred location to show caret. | |
| SourceRange | Range |
| Source range of this AST node. | |
| union { | |
| CommentBitfields CommentBits | |
| InlineContentCommentBitfields InlineContentCommentBits | |
| TextCommentBitfields TextCommentBits | |
| InlineCommandCommentBitfields InlineCommandCommentBits | |
| HTMLTagCommentBitfields HTMLTagCommentBits | |
| HTMLStartTagCommentBitfields HTMLStartTagCommentBits | |
| ParagraphCommentBitfields ParagraphCommentBits | |
| BlockCommandCommentBitfields BlockCommandCommentBits | |
| ParamCommandCommentBitfields ParamCommandCommentBits | |
| }; | |
| typedef Comment* const* clang::comments::Comment::child_iterator |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
inline |
Definition at line 232 of file Comment.h.
References CommentBits, Loc, and Range.
Referenced by clang::comments::BlockContentComment::BlockContentComment(), clang::comments::BlockContentComment::classof(), clang::comments::FullComment::classof(), clang::comments::InlineContentComment::classof(), clang::comments::VerbatimBlockLineComment::classof(), clang::comments::FullComment::FullComment(), clang::comments::InlineContentComment::InlineContentComment(), and clang::comments::VerbatimBlockLineComment::VerbatimBlockLineComment().
| Comment::child_iterator clang::comments::Comment::child_begin | ( | ) | const |
Definition at line 83 of file Comment.cpp.
References getCommentKind(), and clang::comments::None.
Referenced by child_count().
|
inline |
Definition at line 264 of file Comment.h.
References child_begin(), and child_end().
| Comment::child_iterator clang::comments::Comment::child_end | ( | ) | const |
Definition at line 98 of file Comment.cpp.
References getCommentKind(), and clang::comments::None.
Referenced by child_count().
| LLVM_DUMP_METHOD void Comment::dump | ( | ) | const |
Definition at line 310 of file ASTDumper.cpp.
References clang::ASTNodeTraverser< Derived, NodeDelegateType >::Visit().
| LLVM_DUMP_METHOD void Comment::dump | ( | raw_ostream & | OS, |
| const ASTContext & | Context ) const |
Definition at line 318 of file ASTDumper.cpp.
References clang::ASTNodeTraverser< Derived, NodeDelegateType >::Visit().
| LLVM_DUMP_METHOD void Comment::dumpColor | ( | ) | const |
Definition at line 327 of file ASTDumper.cpp.
References clang::ASTNodeTraverser< Derived, NodeDelegateType >::Visit().
|
inline |
Definition at line 251 of file Comment.h.
References Range.
Referenced by clang::comments::BlockCommandComment::getCommandNameBeginLoc(), clang::comments::BlockCommandComment::getCommandNameRange(), clang::comments::InlineCommandComment::getCommandNameRange(), clang::comments::BlockCommandComment::setArgs(), and clang::comments::BlockCommandComment::setParagraph().
|
inline |
Definition at line 239 of file Comment.h.
References CommentBits.
Referenced by child_begin(), child_end(), and getCommentKindName().
| const char * clang::comments::Comment::getCommentKindName | ( | ) | const |
Definition at line 35 of file Comment.cpp.
References getCommentKind(), and clang::comments::None.
|
inline |
Definition at line 253 of file Comment.h.
References Range.
Referenced by clang::comments::InlineCommandComment::getCommandNameRange(), clang::comments::VerbatimLineComment::getTextRange(), and clang::comments::BlockCommandComment::setParagraph().
|
inline |
Definition at line 255 of file Comment.h.
References Loc.
Referenced by clang::comments::Sema::actOnFullComment(), clang::comments::Sema::actOnHTMLEndTag(), clang::comments::Sema::actOnParamCommandStart(), clang::comments::Sema::actOnTParamCommandParamNameArg(), clang::comments::Sema::actOnTParamCommandStart(), clang::comments::HTMLTagComment::getTagNameSourceRange(), clang::comments::Parser::parseHTMLStartTag(), and clang::comments::Parser::parseVerbatimBlock().
|
inline |
Definition at line 249 of file Comment.h.
References Range.
Referenced by clang::comments::Sema::actOnFullComment(), clang::comments::Sema::actOnHTMLEndTag(), and clang::comments::Parser::parseHTMLStartTag().
|
inlineprotected |
Definition at line 222 of file Comment.h.
References Loc.
Referenced by clang::comments::BlockCommandComment::BlockCommandComment(), clang::comments::BlockCommandComment::BlockCommandComment(), clang::comments::FullComment::FullComment(), clang::comments::HTMLTagComment::HTMLTagComment(), and clang::comments::ParagraphComment::ParagraphComment().
|
inlineprotected |
Definition at line 218 of file Comment.h.
References Range.
Referenced by clang::comments::FullComment::FullComment(), clang::comments::ParagraphComment::ParagraphComment(), clang::comments::BlockCommandComment::setArgs(), and clang::comments::BlockCommandComment::setParagraph().
| union { ... } clang::comments::Comment |
| BlockCommandCommentBitfields clang::comments::Comment::BlockCommandCommentBits |
| CommentBitfields clang::comments::Comment::CommentBits |
Definition at line 207 of file Comment.h.
Referenced by Comment(), and getCommentKind().
| HTMLStartTagCommentBitfields clang::comments::Comment::HTMLStartTagCommentBits |
Definition at line 212 of file Comment.h.
Referenced by clang::comments::HTMLStartTagComment::HTMLStartTagComment(), clang::comments::HTMLStartTagComment::isSelfClosing(), and clang::comments::HTMLStartTagComment::setSelfClosing().
| HTMLTagCommentBitfields clang::comments::Comment::HTMLTagCommentBits |
Definition at line 211 of file Comment.h.
Referenced by clang::comments::HTMLTagComment::HTMLTagComment(), clang::comments::HTMLTagComment::isMalformed(), and clang::comments::HTMLTagComment::setIsMalformed().
| InlineCommandCommentBitfields clang::comments::Comment::InlineCommandCommentBits |
Definition at line 210 of file Comment.h.
Referenced by clang::comments::InlineCommandComment::getCommandID(), clang::comments::InlineCommandComment::getCommandMarker(), clang::comments::InlineCommandComment::getRenderKind(), clang::comments::InlineCommandComment::InlineCommandComment(), and clang::comments::InlineCommandComment::InlineCommandComment().
| InlineContentCommentBitfields clang::comments::Comment::InlineContentCommentBits |
Definition at line 208 of file Comment.h.
Referenced by clang::comments::InlineContentComment::addTrailingNewline(), clang::comments::InlineContentComment::hasTrailingNewline(), and clang::comments::InlineContentComment::InlineContentComment().
|
protected |
Preferred location to show caret.
Definition at line 69 of file Comment.h.
Referenced by Comment(), getLocation(), and setLocation().
| ParagraphCommentBitfields clang::comments::Comment::ParagraphCommentBits |
Definition at line 213 of file Comment.h.
Referenced by clang::comments::ParagraphComment::isWhitespace(), and clang::comments::ParagraphComment::ParagraphComment().
| ParamCommandCommentBitfields clang::comments::Comment::ParamCommandCommentBits |
|
protected |
Source range of this AST node.
Definition at line 72 of file Comment.h.
Referenced by Comment(), getBeginLoc(), getEndLoc(), getSourceRange(), clang::comments::HTMLStartTagComment::setAttrs(), clang::comments::HTMLStartTagComment::setGreaterLoc(), and setSourceRange().
| TextCommentBitfields clang::comments::Comment::TextCommentBits |
Definition at line 209 of file Comment.h.
Referenced by clang::comments::TextComment::isWhitespace(), and clang::comments::TextComment::TextComment().