clang API Documentation

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

Abstract class common to all of the C++ "named"/"keyword" casts. More...

#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.
SourceLocation getLocStart () const LLVM_READONLY
SourceLocation getLocEnd () const LLVM_READONLY
SourceRange getAngleBrackets () const LLVM_READONLY

Static Public Member Functions

static bool classof (const Stmt *T)

Protected Member Functions

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

Friends

class ASTStmtReader

Detailed Description

Abstract class common to all of the C++ "named"/"keyword" casts.

This abstract class is inherited by all of the classes representing "named" casts: CXXStaticCastExpr for static_cast, CXXDynamicCastExpr for dynamic_cast, CXXReinterpretCastExpr for reinterpret_cast, and CXXConstCastExpr for const_cast.

Definition at line 180 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,
SourceRange  AngleBrackets 
) [inline, protected]

Definition at line 187 of file ExprCXX.h.

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

Definition at line 195 of file ExprCXX.h.


Member Function Documentation

static bool clang::CXXNamedCastExpr::classof ( const Stmt T) [inline, static]
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 575 of file ExprCXX.cpp.

References clang::Stmt::getStmtClass().

Reimplemented from clang::Stmt.

Definition at line 211 of file ExprCXX.h.

Reimplemented from clang::Stmt.

Definition at line 210 of file ExprCXX.h.

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

Definition at line 205 of file ExprCXX.h.

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

Retrieve the location of the closing parenthesis.

Definition at line 208 of file ExprCXX.h.

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


Friends And Related Function Documentation

friend class ASTStmtReader [friend]

Reimplemented from clang::Stmt.

Definition at line 198 of file ExprCXX.h.


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