clang API Documentation
#include <Expr.h>
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) |
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.
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().
clang::CompoundAssignOperator::CompoundAssignOperator | ( | EmptyShell | Empty | ) | [inline, explicit] |
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().
QualType clang::CompoundAssignOperator::getComputationLHSType | ( | ) | const [inline] |
Definition at line 3132 of file Expr.h.
Referenced by clang::ASTNodeImporter::VisitCompoundAssignOperator().
QualType clang::CompoundAssignOperator::getComputationResultType | ( | ) | const [inline] |
Definition at line 3135 of file Expr.h.
Referenced by clang::ASTNodeImporter::VisitCompoundAssignOperator().
void clang::CompoundAssignOperator::setComputationLHSType | ( | QualType | T | ) | [inline] |
void clang::CompoundAssignOperator::setComputationResultType | ( | QualType | T | ) | [inline] |