clang 22.0.0git
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:
[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 625 of file Comment.h.

Constructor & Destructor Documentation

◆ BlockCommandComment() [1/2]

◆ BlockCommandComment() [2/2]

Member Function Documentation

◆ child_begin()

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

Definition at line 661 of file Comment.h.

References Paragraph.

◆ child_end()

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

Definition at line 665 of file Comment.h.

References Paragraph.

◆ classof()

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

Definition at line 655 of file Comment.h.

References clang::C.

◆ getArgRange()

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

Definition at line 695 of file Comment.h.

References Args.

◆ getArgText()

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

Definition at line 691 of file Comment.h.

References Args.

◆ getCommandID()

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

Definition at line 669 of file Comment.h.

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

Referenced by getCommandName().

◆ getCommandMarker()

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

Definition at line 723 of file Comment.h.

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

◆ getCommandName()

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

Definition at line 673 of file Comment.h.

References getCommandID().

Referenced by getCommandNameRange().

◆ getCommandNameBeginLoc()

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

◆ getCommandNameRange()

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

◆ getNumArgs()

◆ getParagraph()

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

Definition at line 708 of file Comment.h.

References Paragraph.

◆ hasNonWhitespaceParagraph()

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

Definition at line 712 of file Comment.h.

References Paragraph.

◆ setArgs()

◆ setParagraph()

Member Data Documentation

◆ Args

◆ Paragraph

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

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