clang
7.0.0
|
Any part of the comment. More...
#include "clang/AST/Comment.h"
Classes | |
class | BlockCommandCommentBitfields |
class | CommentBitfields |
class | HTMLStartTagCommentBitfields |
class | HTMLTagCommentBitfields |
class | InlineCommandCommentBitfields |
class | InlineContentCommentBitfields |
class | ParagraphCommentBitfields |
class | ParamCommandCommentBitfields |
class | TextCommentBitfields |
Public Types | |
enum | CommentKind { NoCommentKind = 0 } |
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 (const ASTContext &Context) const |
void | dump (raw_ostream &OS, const CommandTraits *Traits, const SourceManager *SM) const |
SourceRange | getSourceRange () const LLVM_READONLY |
SourceLocation | getLocStart () const LLVM_READONLY |
SourceLocation | getBeginLoc () const LLVM_READONLY |
SourceLocation | getLocEnd () 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. More... | |
SourceRange | Range |
Source range of this AST node. More... | |
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 197 of file Comment.h.
References CommentBits.
Comment::child_iterator clang::comments::Comment::child_begin | ( | ) | const |
Definition at line 68 of file Comment.cpp.
References getCommentKind(), and NoCommentKind.
Referenced by child_count().
|
inline |
Definition at line 233 of file Comment.h.
References child_begin(), and child_end().
Comment::child_iterator clang::comments::Comment::child_end | ( | ) | const |
Definition at line 82 of file Comment.cpp.
References getCommentKind(), and NoCommentKind.
Referenced by child_count().
LLVM_DUMP_METHOD void Comment::dump | ( | ) | const |
LLVM_DUMP_METHOD void Comment::dump | ( | const ASTContext & | Context | ) | const |
Definition at line 2811 of file ASTDumper.cpp.
void Comment::dump | ( | raw_ostream & | OS, |
const CommandTraits * | Traits, | ||
const SourceManager * | SM | ||
) | const |
Definition at line 2816 of file ASTDumper.cpp.
LLVM_DUMP_METHOD void Comment::dumpColor | ( | ) | const |
Definition at line 2823 of file ASTDumper.cpp.
Referenced by getCommentKind().
|
inline |
Definition at line 219 of file Comment.h.
References clang::SourceRange::getBegin().
Referenced by getLocStart().
|
inline |
Definition at line 204 of file Comment.h.
References CommentBits, dump(), dumpColor(), and getCommentKindName().
Referenced by child_begin(), child_end(), clang::comments::InlineContentComment::classof(), clang::comments::TextComment::classof(), clang::comments::InlineCommandComment::classof(), clang::comments::HTMLTagComment::classof(), clang::comments::HTMLStartTagComment::classof(), clang::comments::HTMLEndTagComment::classof(), clang::comments::BlockContentComment::classof(), clang::comments::ParagraphComment::classof(), clang::comments::BlockCommandComment::classof(), clang::comments::ParamCommandComment::classof(), clang::comments::TParamCommandComment::classof(), clang::comments::VerbatimBlockLineComment::classof(), clang::comments::VerbatimBlockComment::classof(), clang::comments::VerbatimLineComment::classof(), clang::comments::FullComment::classof(), getCommentKindName(), and clang::comments::CommentVisitorBase< make_const_ptr, ImplClass, RetTy >::visit().
const char * clang::comments::Comment::getCommentKindName | ( | ) | const |
Definition at line 21 of file Comment.cpp.
References getCommentKind(), and NoCommentKind.
Referenced by getCommentKind().
|
inline |
Definition at line 222 of file Comment.h.
References clang::SourceRange::getEnd().
Referenced by getLocEnd().
|
inline |
Definition at line 224 of file Comment.h.
References Loc.
Referenced by clang::comments::Sema::actOnFullComment(), clang::comments::Sema::actOnHTMLEndTag(), clang::comments::Sema::actOnParamCommandStart(), clang::comments::Sema::actOnTParamCommandStart(), clang::comments::Sema::checkBlockCommandDuplicate(), clang::comments::Sema::checkContainerDecl(), clang::comments::Sema::checkContainerDeclVerbatimLine(), clang::comments::Sema::checkDeprecatedCommand(), clang::comments::Sema::checkFunctionDeclVerbatimLine(), clang::comments::Sema::checkReturnsCommand(), and clang::comments::HTMLTagComment::getTagNameSourceRange().
|
inline |
Definition at line 221 of file Comment.h.
References getEndLoc().
Referenced by clang::comments::InlineCommandComment::getCommandNameRange(), clang::comments::VerbatimLineComment::getTextRange(), and clang::comments::BlockCommandComment::setParagraph().
|
inline |
Definition at line 218 of file Comment.h.
References getBeginLoc().
Referenced by clang::comments::BlockCommandComment::getCommandNameBeginLoc(), clang::comments::InlineCommandComment::getCommandNameRange(), clang::comments::BlockCommandComment::setArgs(), and clang::comments::BlockCommandComment::setParagraph().
|
inline |
Definition at line 216 of file Comment.h.
References Range.
Referenced by clang::comments::Sema::actOnFullComment(), clang::comments::Sema::actOnHTMLEndTag(), clang::comments::Sema::checkBlockCommandDuplicate(), clang::comments::Sema::checkBlockCommandEmptyParagraph(), clang::comments::Sema::checkContainerDecl(), clang::comments::Sema::checkContainerDeclVerbatimLine(), clang::comments::Sema::checkDeprecatedCommand(), clang::comments::Sema::checkFunctionDeclVerbatimLine(), and clang::comments::Sema::checkReturnsCommand().
|
inlineprotected |
Definition at line 181 of file Comment.h.
Referenced by clang::comments::BlockCommandComment::BlockCommandComment(), clang::comments::FullComment::FullComment(), clang::comments::HTMLTagComment::HTMLTagComment(), and clang::comments::ParagraphComment::ParagraphComment().
|
inlineprotected |
Definition at line 177 of file Comment.h.
Referenced by clang::comments::FullComment::FullComment(), clang::comments::ParagraphComment::ParagraphComment(), clang::comments::BlockCommandComment::setArgs(), and clang::comments::BlockCommandComment::setParagraph().
union { ... } |
BlockCommandCommentBitfields clang::comments::Comment::BlockCommandCommentBits |
Definition at line 173 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 166 of file Comment.h.
Referenced by Comment(), and getCommentKind().
HTMLStartTagCommentBitfields clang::comments::Comment::HTMLStartTagCommentBits |
Definition at line 171 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 170 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 169 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 167 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 56 of file Comment.h.
Referenced by getLocation().
ParagraphCommentBitfields clang::comments::Comment::ParagraphCommentBits |
Definition at line 172 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 59 of file Comment.h.
Referenced by getSourceRange(), clang::comments::HTMLStartTagComment::setAttrs(), and clang::comments::HTMLStartTagComment::setGreaterLoc().
TextCommentBitfields clang::comments::Comment::TextCommentBits |
Definition at line 168 of file Comment.h.
Referenced by clang::comments::TextComment::isWhitespace(), and clang::comments::TextComment::TextComment().