clang API Documentation

Public Member Functions | Static Public Member Functions | Protected Member Functions | Friends
clang::CXXNamedCastExpr Class Reference

#include <ExprCXX.h>

Inheritance diagram for clang::CXXNamedCastExpr:
Inheritance graph
[legend]
Collaboration diagram for clang::CXXNamedCastExpr:
Collaboration graph
[legend]

List of all members.

Public Member Functions

const char * getCastName () const
SourceLocation getOperatorLoc () const
 Retrieve the location of the cast operator keyword, e.g., "static_cast".
SourceLocation getRParenLoc () const
 Retrieve the location of the closing parenthesis.
SourceRange getSourceRange () const

Static Public Member Functions

static bool classof (const Stmt *T)
static bool classof (const CXXNamedCastExpr *)

Protected Member Functions

 CXXNamedCastExpr (StmtClass SC, QualType ty, ExprValueKind VK, CastKind kind, Expr *op, unsigned PathSize, TypeSourceInfo *writtenTy, SourceLocation l, SourceLocation RParenLoc)
 CXXNamedCastExpr (StmtClass SC, EmptyShell Shell, unsigned PathSize)

Friends

class ASTStmtReader

Detailed Description

CXXNamedCastExpr - Abstract class common to all of the C++ "named" casts, static_cast, dynamic_cast, reinterpret_cast, or const_cast.

This abstract class is inherited by all of the classes representing "named" casts, e.g., CXXStaticCastExpr, CXXDynamicCastExpr, CXXReinterpretCastExpr, and CXXConstCastExpr.

Definition at line 158 of file ExprCXX.h.


Constructor & Destructor Documentation

clang::CXXNamedCastExpr::CXXNamedCastExpr ( StmtClass  SC,
QualType  ty,
ExprValueKind  VK,
CastKind  kind,
Expr op,
unsigned  PathSize,
TypeSourceInfo writtenTy,
SourceLocation  l,
SourceLocation  RParenLoc 
) [inline, protected]

Definition at line 164 of file ExprCXX.h.

clang::CXXNamedCastExpr::CXXNamedCastExpr ( StmtClass  SC,
EmptyShell  Shell,
unsigned  PathSize 
) [inline, explicit, protected]

Definition at line 171 of file ExprCXX.h.


Member Function Documentation

static bool clang::CXXNamedCastExpr::classof ( const Stmt T) [inline, static]
static bool clang::CXXNamedCastExpr::classof ( const CXXNamedCastExpr ) [inline, static]

Definition at line 200 of file ExprCXX.h.

const char * CXXNamedCastExpr::getCastName ( ) const

getCastName - Get the name of the C++ cast being used, e.g., "static_cast", "dynamic_cast", "reinterpret_cast", or "const_cast". The returned pointer must not be freed.

Definition at line 476 of file ExprCXX.cpp.

References clang::Stmt::getStmtClass().

SourceLocation clang::CXXNamedCastExpr::getOperatorLoc ( ) const [inline]

Retrieve the location of the cast operator keyword, e.g., "static_cast".

Definition at line 181 of file ExprCXX.h.

Referenced by clang::TreeTransform< Derived >::TransformCXXNamedCastExpr().

SourceLocation clang::CXXNamedCastExpr::getRParenLoc ( ) const [inline]

Retrieve the location of the closing parenthesis.

Definition at line 184 of file ExprCXX.h.

SourceRange clang::CXXNamedCastExpr::getSourceRange ( ) const [inline]

SourceLocation tokens are not useful in isolation - they are low level value objects created/interpreted by SourceManager. We assume AST clients will have a pointer to the respective SourceManager.

Reimplemented from clang::Stmt.

Definition at line 186 of file ExprCXX.h.


Friends And Related Function Documentation

friend class ASTStmtReader [friend]

Reimplemented from clang::Stmt.

Definition at line 174 of file ExprCXX.h.


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