clang API Documentation

Public Types | Public Member Functions | Static Public Member Functions
clang::comments::ParamCommandComment Class Reference

Doxygen \param command. More...

#include <Comment.h>

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

List of all members.

Public Types

enum  PassDirection { In, Out, InOut }

Public Member Functions

 ParamCommandComment (SourceLocation LocBegin, SourceLocation LocEnd, unsigned CommandID, CommandMarkerKind CommandMarker)
PassDirection getDirection () const LLVM_READONLY
bool isDirectionExplicit () const LLVM_READONLY
void setDirection (PassDirection Direction, bool Explicit)
bool hasParamName () const
StringRef getParamName (const FullComment *FC) const
StringRef getParamNameAsWritten () const
SourceRange getParamNameRange () const
bool isParamIndexValid () const LLVM_READONLY
bool isVarArgParam () const LLVM_READONLY
void setIsVarArgParam ()
unsigned getParamIndex () const LLVM_READONLY
void setParamIndex (unsigned Index)

Static Public Member Functions

static bool classof (const Comment *C)
static const char * getDirectionAsString (PassDirection D)

Detailed Description

Doxygen \param command.

Definition at line 717 of file Comment.h.


Member Enumeration Documentation

Enumerator:
In 
Out 
InOut 

Definition at line 743 of file Comment.h.


Constructor & Destructor Documentation

Definition at line 728 of file Comment.h.

References In, and clang::comments::Comment::ParamCommandCommentBits.


Member Function Documentation

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

Reimplemented from clang::comments::BlockCommandComment.

Definition at line 739 of file Comment.h.

References clang::comments::Comment::getCommentKind().

Definition at line 751 of file Comment.h.

References clang::comments::Comment::ParamCommandCommentBits.

Definition at line 117 of file Comment.cpp.

References In, InOut, and Out.

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

Definition at line 791 of file Comment.h.

References isParamIndexValid(), and isVarArgParam().

Referenced by getParamName().

Definition at line 778 of file Comment.h.

References InvalidParamIndex.

Referenced by getParamIndex(), getParamName(), setIsVarArgParam(), and setParamIndex().

Definition at line 782 of file Comment.h.

References VarArgParamIndex.

Referenced by getParamIndex(), getParamName(), and setParamIndex().

void clang::comments::ParamCommandComment::setDirection ( PassDirection  Direction,
bool  Explicit 
) [inline]

Definition at line 786 of file Comment.h.

References isParamIndexValid(), and VarArgParamIndex.

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

Definition at line 797 of file Comment.h.

References isParamIndexValid(), and isVarArgParam().

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


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