clang
7.0.0
|
Abstract class for opening and closing HTML tags. More...
#include "clang/AST/Comment.h"
Public Member Functions | |
StringRef | getTagName () const LLVM_READONLY |
SourceRange | getTagNameSourceRange () const LLVM_READONLY |
bool | isMalformed () const |
void | setIsMalformed () |
![]() | |
void | addTrailingNewline () |
bool | hasTrailingNewline () const |
![]() | |
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 |
Static Public Member Functions | |
static bool | classof (const Comment *C) |
![]() | |
static bool | classof (const Comment *C) |
Protected Member Functions | |
HTMLTagComment (CommentKind K, SourceLocation LocBegin, SourceLocation LocEnd, StringRef TagName, SourceLocation TagNameBegin, SourceLocation TagNameEnd) | |
![]() | |
InlineContentComment (CommentKind K, SourceLocation LocBegin, SourceLocation LocEnd) | |
![]() | |
void | setSourceRange (SourceRange SR) |
void | setLocation (SourceLocation L) |
Protected Attributes | |
StringRef | TagName |
SourceRange | TagNameRange |
![]() | |
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 | |
}; | |
Additional Inherited Members | |
![]() | |
enum | CommentKind { NoCommentKind = 0 } |
typedef Comment *const * | child_iterator |
![]() | |
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 } |
Abstract class for opening and closing HTML tags.
HTML tags are always treated as inline content (regardless HTML semantics).
|
inlineprotected |
Definition at line 380 of file Comment.h.
References clang::comments::Comment::HTMLTagCommentBits, and clang::comments::Comment::setLocation().
Definition at line 394 of file Comment.h.
References clang::comments::Comment::getCommentKind().
|
inline |
Definition at line 399 of file Comment.h.
Referenced by clang::comments::Sema::actOnFullComment(), and clang::comments::Sema::actOnHTMLStartTagFinish().
|
inline |
Definition at line 401 of file Comment.h.
References clang::comments::Comment::getLocation(), and clang::SourceLocation::getLocWithOffset().
|
inline |
Definition at line 407 of file Comment.h.
References clang::comments::Comment::HTMLTagCommentBits.
|
inline |
Definition at line 411 of file Comment.h.
References clang::comments::Comment::HTMLTagCommentBits.
Referenced by clang::comments::Sema::actOnFullComment(), and clang::comments::Sema::actOnHTMLEndTag().
|
protected |
|
protected |