clang 20.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 226 of file Comment.h.
References CommentBits.
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 258 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 308 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 316 of file ASTDumper.cpp.
References clang::ASTContext::getDiagnostics(), clang::DiagnosticsEngine::getShowColors(), and clang::ASTNodeTraverser< Derived, NodeDelegateType >::Visit().
LLVM_DUMP_METHOD void Comment::dumpColor | ( | ) | const |
Definition at line 325 of file ASTDumper.cpp.
References clang::ASTNodeTraverser< Derived, NodeDelegateType >::Visit().
|
inline |
Definition at line 245 of file Comment.h.
References clang::SourceRange::getBegin(), and Range.
Referenced by clang::comments::BlockCommandComment::getCommandNameBeginLoc(), clang::comments::InlineCommandComment::getCommandNameRange(), clang::comments::BlockCommandComment::getCommandNameRange(), clang::comments::BlockCommandComment::setArgs(), and clang::comments::BlockCommandComment::setParagraph().
|
inline |
Definition at line 233 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 247 of file Comment.h.
References clang::SourceRange::getEnd(), and Range.
Referenced by clang::comments::InlineCommandComment::getCommandNameRange(), clang::comments::VerbatimLineComment::getTextRange(), and clang::comments::BlockCommandComment::setParagraph().
|
inline |
Definition at line 249 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(), and clang::comments::Parser::parseHTMLStartTag().
|
inline |
Definition at line 243 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 216 of file Comment.h.
References Loc.
Referenced by clang::comments::BlockCommandComment::BlockCommandComment(), clang::comments::FullComment::FullComment(), clang::comments::HTMLTagComment::HTMLTagComment(), and clang::comments::ParagraphComment::ParagraphComment().
|
inlineprotected |
Definition at line 212 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::@15 |
BlockCommandCommentBitfields clang::comments::Comment::BlockCommandCommentBits |
Definition at line 208 of file Comment.h.
Referenced by clang::comments::BlockCommandComment::BlockCommandComment(), clang::comments::BlockCommandComment::getCommandID(), and clang::comments::BlockCommandComment::getCommandMarker().
CommentBitfields clang::comments::Comment::CommentBits |
Definition at line 201 of file Comment.h.
Referenced by Comment(), and getCommentKind().
HTMLStartTagCommentBitfields clang::comments::Comment::HTMLStartTagCommentBits |
Definition at line 206 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 205 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 204 of file Comment.h.
Referenced by clang::comments::InlineCommandComment::getCommandID(), clang::comments::InlineCommandComment::getRenderKind(), and clang::comments::InlineCommandComment::InlineCommandComment().
InlineContentCommentBitfields clang::comments::Comment::InlineContentCommentBits |
Definition at line 202 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 68 of file Comment.h.
Referenced by getLocation(), and setLocation().
ParagraphCommentBitfields clang::comments::Comment::ParagraphCommentBits |
Definition at line 207 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 71 of file Comment.h.
Referenced by getBeginLoc(), getEndLoc(), getSourceRange(), clang::comments::HTMLStartTagComment::setAttrs(), clang::comments::HTMLStartTagComment::setGreaterLoc(), and setSourceRange().
TextCommentBitfields clang::comments::Comment::TextCommentBits |
Definition at line 203 of file Comment.h.
Referenced by clang::comments::TextComment::isWhitespace(), and clang::comments::TextComment::TextComment().