clang 19.0.0git
Public Member Functions | Static Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
clang::comments::BlockCommandComment Class Reference

A command that has zero or more word-like arguments (number of word-like arguments depends on command name) and a paragraph as an argument (e. More...

#include "clang/AST/Comment.h"

Inheritance diagram for clang::comments::BlockCommandComment:
Inheritance graph
[legend]

Public Member Functions

 BlockCommandComment (SourceLocation LocBegin, SourceLocation LocEnd, unsigned CommandID, CommandMarkerKind CommandMarker)
 
child_iterator child_begin () const
 
child_iterator child_end () const
 
unsigned getCommandID () const
 
StringRef getCommandName (const CommandTraits &Traits) const
 
SourceLocation getCommandNameBeginLoc () const
 
SourceRange getCommandNameRange (const CommandTraits &Traits) const
 
unsigned getNumArgs () const
 
StringRef getArgText (unsigned Idx) const
 
SourceRange getArgRange (unsigned Idx) const
 
void setArgs (ArrayRef< Argument > A)
 
ParagraphCommentgetParagraph () const LLVM_READONLY
 
bool hasNonWhitespaceParagraph () const
 
void setParagraph (ParagraphComment *PC)
 
CommandMarkerKind getCommandMarker () const LLVM_READONLY
 
- Public Member Functions inherited from clang::comments::Comment
 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
 

Static Public Member Functions

static bool classof (const Comment *C)
 
- Static Public Member Functions inherited from clang::comments::BlockContentComment
static bool classof (const Comment *C)
 

Protected Member Functions

 BlockCommandComment (CommentKind K, SourceLocation LocBegin, SourceLocation LocEnd, unsigned CommandID, CommandMarkerKind CommandMarker)
 
- Protected Member Functions inherited from clang::comments::BlockContentComment
 BlockContentComment (CommentKind K, SourceLocation LocBegin, SourceLocation LocEnd)
 
- Protected Member Functions inherited from clang::comments::Comment
void setSourceRange (SourceRange SR)
 
void setLocation (SourceLocation L)
 

Protected Attributes

ArrayRef< ArgumentArgs
 Word-like arguments.
 
ParagraphCommentParagraph
 Paragraph argument.
 
- Protected Attributes inherited from clang::comments::Comment
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
 
}; 
 

Additional Inherited Members

- Public Types inherited from clang::comments::Comment
typedef Comment *const * child_iterator
 
- Protected Types inherited from clang::comments::Comment
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 }
 

Detailed Description

A command that has zero or more word-like arguments (number of word-like arguments depends on command name) and a paragraph as an argument (e.

g., \brief).

Definition at line 604 of file Comment.h.

Constructor & Destructor Documentation

◆ BlockCommandComment() [1/2]

clang::comments::BlockCommandComment::BlockCommandComment ( CommentKind  K,
SourceLocation  LocBegin,
SourceLocation  LocEnd,
unsigned  CommandID,
CommandMarkerKind  CommandMarker 
)
inlineprotected

◆ BlockCommandComment() [2/2]

clang::comments::BlockCommandComment::BlockCommandComment ( SourceLocation  LocBegin,
SourceLocation  LocEnd,
unsigned  CommandID,
CommandMarkerKind  CommandMarker 
)
inline

Member Function Documentation

◆ child_begin()

child_iterator clang::comments::BlockCommandComment::child_begin ( ) const
inline

Definition at line 640 of file Comment.h.

References Paragraph.

◆ child_end()

child_iterator clang::comments::BlockCommandComment::child_end ( ) const
inline

Definition at line 644 of file Comment.h.

References Paragraph.

◆ classof()

static bool clang::comments::BlockCommandComment::classof ( const Comment C)
inlinestatic

Definition at line 634 of file Comment.h.

References clang::C.

◆ getArgRange()

SourceRange clang::comments::BlockCommandComment::getArgRange ( unsigned  Idx) const
inline

Definition at line 674 of file Comment.h.

References Args.

◆ getArgText()

StringRef clang::comments::BlockCommandComment::getArgText ( unsigned  Idx) const
inline

Definition at line 670 of file Comment.h.

References Args.

◆ getCommandID()

unsigned clang::comments::BlockCommandComment::getCommandID ( ) const
inline

Definition at line 648 of file Comment.h.

References clang::comments::Comment::BlockCommandCommentBits.

Referenced by getCommandName().

◆ getCommandMarker()

CommandMarkerKind clang::comments::BlockCommandComment::getCommandMarker ( ) const
inline

Definition at line 702 of file Comment.h.

References clang::comments::Comment::BlockCommandCommentBits.

◆ getCommandName()

StringRef clang::comments::BlockCommandComment::getCommandName ( const CommandTraits Traits) const
inline

◆ getCommandNameBeginLoc()

SourceLocation clang::comments::BlockCommandComment::getCommandNameBeginLoc ( ) const
inline

◆ getCommandNameRange()

SourceRange clang::comments::BlockCommandComment::getCommandNameRange ( const CommandTraits Traits) const
inline

◆ getNumArgs()

unsigned clang::comments::BlockCommandComment::getNumArgs ( ) const
inline

◆ getParagraph()

ParagraphComment * clang::comments::BlockCommandComment::getParagraph ( ) const
inline

Definition at line 687 of file Comment.h.

References Paragraph.

◆ hasNonWhitespaceParagraph()

bool clang::comments::BlockCommandComment::hasNonWhitespaceParagraph ( ) const
inline

Definition at line 691 of file Comment.h.

References clang::comments::ParagraphComment::isWhitespace(), and Paragraph.

◆ setArgs()

void clang::comments::BlockCommandComment::setArgs ( ArrayRef< Argument A)
inline

◆ setParagraph()

void clang::comments::BlockCommandComment::setParagraph ( ParagraphComment PC)
inline

Member Data Documentation

◆ Args

ArrayRef<Argument> clang::comments::BlockCommandComment::Args
protected

◆ Paragraph

ParagraphComment* clang::comments::BlockCommandComment::Paragraph
protected

Paragraph argument.

Definition at line 610 of file Comment.h.

Referenced by child_begin(), child_end(), getParagraph(), hasNonWhitespaceParagraph(), and setParagraph().


The documentation for this class was generated from the following file: