clang API Documentation

Public Member Functions | Static Public Member Functions
clang::CXXUuidofExpr Class Reference

#include <ExprCXX.h>

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

List of all members.

Public Member Functions

 CXXUuidofExpr (QualType Ty, TypeSourceInfo *Operand, SourceRange R)
 CXXUuidofExpr (QualType Ty, Expr *Operand, SourceRange R)
 CXXUuidofExpr (EmptyShell Empty, bool isExpr)
bool isTypeOperand () const
QualType getTypeOperand () const
 Retrieves the type operand of this __uuidof() expression after various required adjustments (removing reference types, cv-qualifiers).
TypeSourceInfogetTypeOperandSourceInfo () const
 Retrieve source information for the type operand.
void setTypeOperandSourceInfo (TypeSourceInfo *TSI)
ExprgetExprOperand () const
void setExprOperand (Expr *E)
SourceRange getSourceRange () const LLVM_READONLY
void setSourceRange (SourceRange R)
child_range children ()

Static Public Member Functions

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

Detailed Description

CXXUuidofExpr - A microsoft C++ __uuidof expression, which gets the _GUID that corresponds to the supplied type or expression.

This represents code like __uuidof(COMTYPE) or __uuidof(*comPtr)

Definition at line 548 of file ExprCXX.h.


Constructor & Destructor Documentation

clang::CXXUuidofExpr::CXXUuidofExpr ( QualType  Ty,
TypeSourceInfo Operand,
SourceRange  R 
) [inline]

Definition at line 554 of file ExprCXX.h.

clang::CXXUuidofExpr::CXXUuidofExpr ( QualType  Ty,
Expr Operand,
SourceRange  R 
) [inline]

Definition at line 561 of file ExprCXX.h.

clang::CXXUuidofExpr::CXXUuidofExpr ( EmptyShell  Empty,
bool  isExpr 
) [inline]

Definition at line 568 of file ExprCXX.h.


Member Function Documentation

child_range clang::CXXUuidofExpr::children ( ) [inline]

Reimplemented from clang::Stmt.

Definition at line 612 of file ExprCXX.h.

References isTypeOperand().

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

Reimplemented from clang::Expr.

Definition at line 606 of file ExprCXX.h.

References clang::Stmt::getStmtClass().

static bool clang::CXXUuidofExpr::classof ( const CXXUuidofExpr ) [inline, static]

Definition at line 609 of file ExprCXX.h.

Expr* clang::CXXUuidofExpr::getExprOperand ( ) const [inline]

Definition at line 593 of file ExprCXX.h.

References isTypeOperand().

SourceRange clang::CXXUuidofExpr::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 603 of file ExprCXX.h.

QualType CXXUuidofExpr::getTypeOperand ( ) const

Retrieves the type operand of this __uuidof() expression after various required adjustments (removing reference types, cv-qualifiers).

Definition at line 32 of file ExprCXX.cpp.

References clang::QualType::getNonReferenceType(), clang::Expr::getType(), clang::QualType::getUnqualifiedType(), and isTypeOperand().

TypeSourceInfo* clang::CXXUuidofExpr::getTypeOperandSourceInfo ( ) const [inline]

Retrieve source information for the type operand.

Definition at line 583 of file ExprCXX.h.

References isTypeOperand().

bool clang::CXXUuidofExpr::isTypeOperand ( ) const [inline]
void clang::CXXUuidofExpr::setExprOperand ( Expr E) [inline]

Definition at line 598 of file ExprCXX.h.

References isTypeOperand().

void clang::CXXUuidofExpr::setSourceRange ( SourceRange  R) [inline]

Definition at line 604 of file ExprCXX.h.

void clang::CXXUuidofExpr::setTypeOperandSourceInfo ( TypeSourceInfo TSI) [inline]

Definition at line 588 of file ExprCXX.h.

References isTypeOperand().


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