clang API Documentation

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

#include <Expr.h>

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

List of all members.

Public Member Functions

 CompoundAssignOperator (Expr *lhs, Expr *rhs, Opcode opc, QualType ResType, ExprValueKind VK, ExprObjectKind OK, QualType CompLHSType, QualType CompResultType, SourceLocation OpLoc, bool fpContractable)
 CompoundAssignOperator (EmptyShell Empty)
 Build an empty compound assignment operator expression.
QualType getComputationLHSType () const
void setComputationLHSType (QualType T)
QualType getComputationResultType () const
void setComputationResultType (QualType T)

Static Public Member Functions

static bool classof (const Stmt *S)

Detailed Description

CompoundAssignOperator - For compound assignments (e.g. +=), we keep track of the type the operation is performed in. Due to the semantics of these operators, the operands are promoted, the arithmetic performed, an implicit conversion back to the result type done, then the assignment takes place. This captures the intermediate type which the computation is done in.

Definition at line 3109 of file Expr.h.


Constructor & Destructor Documentation

clang::CompoundAssignOperator::CompoundAssignOperator ( Expr lhs,
Expr rhs,
Opcode  opc,
QualType  ResType,
ExprValueKind  VK,
ExprObjectKind  OK,
QualType  CompLHSType,
QualType  CompResultType,
SourceLocation  OpLoc,
bool  fpContractable 
) [inline]

Definition at line 3113 of file Expr.h.

References clang::BinaryOperator::isCompoundAssignmentOp().

Build an empty compound assignment operator expression.

Definition at line 3126 of file Expr.h.


Member Function Documentation

static bool clang::CompoundAssignOperator::classof ( const Stmt S) [inline, static]

Reimplemented from clang::BinaryOperator.

Definition at line 3138 of file Expr.h.

References clang::Stmt::getStmtClass().

Definition at line 3132 of file Expr.h.

Referenced by clang::ASTNodeImporter::VisitCompoundAssignOperator().

Definition at line 3135 of file Expr.h.

Referenced by clang::ASTNodeImporter::VisitCompoundAssignOperator().

Definition at line 3133 of file Expr.h.

Definition at line 3136 of file Expr.h.


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