clang API Documentation

Classes | Public Member Functions | Static Public Member Functions | Protected Member Functions | Protected Attributes
clang::comments::BlockCommandComment Class Reference

#include <Comment.h>

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

List of all members.

Classes

struct  Argument

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

Static Public Member Functions

static bool classof (const Comment *C)

Protected Member Functions

 BlockCommandComment (CommentKind K, SourceLocation LocBegin, SourceLocation LocEnd, unsigned CommandID, CommandMarkerKind CommandMarker)

Protected Attributes

ArrayRef< ArgumentArgs
 Word-like arguments.
ParagraphCommentParagraph
 Paragraph argument.

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 602 of file Comment.h.


Constructor & Destructor Documentation

clang::comments::BlockCommandComment::BlockCommandComment ( CommentKind  K,
SourceLocation  LocBegin,
SourceLocation  LocEnd,
unsigned  CommandID,
CommandMarkerKind  CommandMarker 
) [inline, protected]

Member Function Documentation

Reimplemented from clang::comments::Comment.

Reimplemented in clang::comments::VerbatimLineComment, and clang::comments::VerbatimBlockComment.

Definition at line 648 of file Comment.h.

References Paragraph.

Reimplemented from clang::comments::Comment.

Reimplemented in clang::comments::VerbatimLineComment, and clang::comments::VerbatimBlockComment.

Definition at line 652 of file Comment.h.

References Paragraph.

static bool clang::comments::BlockCommandComment::classof ( const Comment C) [inline, static]

Definition at line 682 of file Comment.h.

References Args.

Referenced by clang::comments::Sema::checkBlockCommandEmptyParagraph().

Definition at line 678 of file Comment.h.

References Args.

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

Definition at line 695 of file Comment.h.

References Paragraph.

Referenced by clang::comments::Sema::checkBlockCommandEmptyParagraph().

Definition at line 699 of file Comment.h.

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

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

Member Data Documentation

Paragraph argument.

Definition at line 617 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: