class BinaryOperator
Declaration
class BinaryOperator : public Expr { /* full declaration omitted */ };
Description
A builtin binary operation expression such as "x + y" or "x <= y". This expression node kind describes a builtin binary operation, such as "x + y" for integer values "x" and "y". The operands will already have been converted to appropriate types (e.g., by performing promotions or conversions). In C++, where operators may be overloaded, a different kind of expression node (CXXOperatorCallExpr) is used to express the invocation of an overloaded operator with operator syntax. Within a C++ template, whether BinaryOperator or CXXOperatorCallExpr is used to store an expression "x + y" depends on the subexpressions for x and y. If neither x or y is type-dependent, and the "+" operator resolves to a built-in operation, BinaryOperator will be used to express the computation (x and y may still be value-dependent). If either x or y is type-dependent, or if the "+" resolves to an overloaded operator, CXXOperatorCallExpr will be used to express the computation.
Declared at: clang/include/clang/AST/Expr.h:3807
Inherits from: Expr
Member Variables
- private clang::Stmt* [2] SubExprs
Inherited from Stmt:
Method Overview
- protected BinaryOperator(const clang::ASTContext & Ctx, clang::Expr * lhs, clang::Expr * rhs, clang::BinaryOperator::Opcode opc, clang::QualType ResTy, clang::ExprValueKind VK, clang::ExprObjectKind OK, clang::SourceLocation opLoc, clang::FPOptionsOverride FPFeatures)
- protected BinaryOperator(clang::Stmt::EmptyShell Empty)
- protected BinaryOperator(clang::Stmt::StmtClass SC, clang::Stmt::EmptyShell Empty)
- protected BinaryOperator(const clang::ASTContext & Ctx, clang::Expr * lhs, clang::Expr * rhs, clang::BinaryOperator::Opcode opc, clang::QualType ResTy, clang::ExprValueKind VK, clang::ExprObjectKind OK, clang::SourceLocation opLoc, clang::FPOptionsOverride FPFeatures, bool dead2)
- public static clang::BinaryOperator * Create(const clang::ASTContext & C, clang::Expr * lhs, clang::Expr * rhs, clang::BinaryOperator::Opcode opc, clang::QualType ResTy, clang::ExprValueKind VK, clang::ExprObjectKind OK, clang::SourceLocation opLoc, clang::FPOptionsOverride FPFeatures)
- public static clang::BinaryOperator * CreateEmpty(const clang::ASTContext & C, bool hasFPFeatures)
- public clang::Stmt::child_range children()
- public clang::Stmt::const_child_range children() const
- public static bool classof(const clang::Stmt * S)
- public clang::SourceLocation getBeginLoc() const
- public clang::SourceLocation getEndLoc() const
- public clang::SourceLocation getExprLoc() const
- public clang::FPOptionsOverride getFPFeatures(const clang::LangOptions & LO) const
- public clang::FPOptions getFPFeaturesInEffect(const clang::LangOptions & LO) const
- public clang::Expr * getLHS() const
- public static clang::BinaryOperator::Opcode getOpForCompoundAssignment(clang::BinaryOperator::Opcode Opc)
- public clang::BinaryOperator::Opcode getOpcode() const
- public static llvm::StringRef getOpcodeStr(clang::BinaryOperator::Opcode Op)
- public llvm::StringRef getOpcodeStr() const
- public clang::SourceLocation getOperatorLoc() const
- public static clang::BinaryOperator::Opcode getOverloadedOpcode(clang::OverloadedOperatorKind OO)
- public static clang::OverloadedOperatorKind getOverloadedOperator(clang::BinaryOperator::Opcode Opc)
- public clang::Expr * getRHS() const
- public clang::FPOptionsOverride getStoredFPFeatures() const
- protected clang::FPOptionsOverride * getTrailingFPFeatures()
- protected const clang::FPOptionsOverride * getTrailingFPFeatures() const
- public bool hasStoredFPFeatures() const
- public static bool isAdditiveOp(clang::BinaryOperator::Opcode Opc)
- public bool isAdditiveOp() const
- public bool isAssignmentOp() const
- public static bool isAssignmentOp(clang::BinaryOperator::Opcode Opc)
- public bool isBitwiseOp() const
- public static bool isBitwiseOp(clang::BinaryOperator::Opcode Opc)
- public static bool isCommaOp(clang::BinaryOperator::Opcode Opc)
- public bool isCommaOp() const
- public static bool isComparisonOp(clang::BinaryOperator::Opcode Opc)
- public bool isComparisonOp() const
- public bool isCompoundAssignmentOp() const
- public static bool isCompoundAssignmentOp(clang::BinaryOperator::Opcode Opc)
- public static bool isEqualityOp(clang::BinaryOperator::Opcode Opc)
- public bool isEqualityOp() const
- public bool isFEnvAccessOn(const clang::LangOptions & LO) const
- public bool isFPContractableWithinStatement(const clang::LangOptions & LO) const
- public static bool isLogicalOp(clang::BinaryOperator::Opcode Opc)
- public bool isLogicalOp() const
- public bool isMultiplicativeOp() const
- public static bool isMultiplicativeOp(clang::BinaryOperator::Opcode Opc)
- public static bool isNullPointerArithmeticExtension(clang::ASTContext & Ctx, clang::BinaryOperator::Opcode Opc, clang::Expr * LHS, clang::Expr * RHS)
- public bool isPtrMemOp() const
- public static bool isPtrMemOp(clang::BinaryOperator::Opcode Opc)
- public bool isRelationalOp() const
- public static bool isRelationalOp(clang::BinaryOperator::Opcode Opc)
- public bool isShiftAssignOp() const
- public static bool isShiftAssignOp(clang::BinaryOperator::Opcode Opc)
- public bool isShiftOp() const
- public static bool isShiftOp(clang::BinaryOperator::Opcode Opc)
- public static clang::BinaryOperator::Opcode negateComparisonOp(clang::BinaryOperator::Opcode Opc)
- protected size_t offsetOfTrailingStorage() const
- public static clang::BinaryOperator::Opcode reverseComparisonOp(clang::BinaryOperator::Opcode Opc)
- public void setHasStoredFPFeatures(bool B)
- public void setLHS(clang::Expr * E)
- public void setOpcode(clang::BinaryOperator::Opcode Opc)
- public void setOperatorLoc(clang::SourceLocation L)
- public void setRHS(clang::Expr * E)
- public void setStoredFPFeatures(clang::FPOptionsOverride F)
- protected static unsigned int sizeOfTrailingObjects(bool HasFPFeatures)
Inherited from Expr:
- public Classify
- public ClassifyLValue
- public ClassifyModifiable
- public EvaluateAsBooleanCondition
- public EvaluateAsConstantExpr
- public EvaluateAsFixedPoint
- public EvaluateAsFloat
- public EvaluateAsInitializer
- public EvaluateAsInt
- public EvaluateAsLValue
- public EvaluateAsRValue
- public EvaluateForOverflow
- public EvaluateKnownConstInt
- public EvaluateKnownConstIntCheckOverflow
- public EvaluateWithSubstitution
- public HasSideEffects
- public IgnoreCasts
- public IgnoreCasts
- public IgnoreConversionOperatorSingleStep
- public IgnoreConversionOperatorSingleStep
- public IgnoreImpCasts
- public IgnoreImpCasts
- public IgnoreImplicit
- public IgnoreImplicit
- public IgnoreImplicitAsWritten
- public IgnoreImplicitAsWritten
- public IgnoreParenBaseCasts
- public IgnoreParenBaseCasts
- public IgnoreParenCasts
- public IgnoreParenCasts
- public IgnoreParenImpCasts
- public IgnoreParenImpCasts
- public IgnoreParenLValueCasts
- public IgnoreParenLValueCasts
- public IgnoreParenNoopCasts
- public IgnoreParenNoopCasts
- public IgnoreParens
- public IgnoreParens
- public IgnoreUnlessSpelledInSource
- public IgnoreUnlessSpelledInSource
- public classof
- public containsErrors
- public containsUnexpandedParameterPack
- public findBoundMemberType
- public getAsBuiltinConstantDeclRef
- public getBestDynamicClassType
- public getBestDynamicClassTypeExpr
- public getDependence
- public getExprLoc
- public getFPFeaturesInEffect
- public getIntegerConstantExpr
- public getObjCProperty
- public getObjectKind
- public getReferencedDeclOfCallee
- public getReferencedDeclOfCallee
- public getSourceBitField
- public getSourceBitField
- public getType
- public getValueKind
- public getValueKindForType
- public hasAnyTypeDependentArguments
- public hasNonTrivialCall
- public hasPlaceholderType
- public hasPlaceholderType
- public isBoundMemberFunction
- public isCXX11ConstantExpr
- public isCXX98IntegralConstantExpr
- public isConstantInitializer
- public isDefaultArgument
- public isEvaluatable
- public isGLValue
- public isImplicitCXXThis
- public isInstantiationDependent
- public isIntegerConstantExpr
- public isKnownToHaveBooleanValue
- public isLValue
- public isModifiableLvalue
- public isNullPointerConstant
- public isOBJCGCCandidate
- public isObjCSelfExpr
- public isOrdinaryOrBitFieldObject
- public isPRValue
- public isPotentialConstantExpr
- public isPotentialConstantExprUnevaluated
- public isReadIfDiscardedInCPlusPlus11
- public isSameComparisonOperand
- public isTemporaryObject
- public isTypeDependent
- public isUnusedResultAWarning
- public isValueDependent
- public isXValue
- public refersToBitField
- public refersToGlobalRegisterVar
- public refersToMatrixElement
- public refersToVectorElement
- protected setDependence
- public setObjectKind
- public setType
- public setValueKind
- public skipRValueSubobjectAdjustments
- public skipRValueSubobjectAdjustments
- public tryEvaluateObjectSize
- public tryEvaluateStrLen
Inherited from ValueStmt:
Inherited from Stmt:
- public EnableStatistics
- public IgnoreContainers
- public IgnoreContainers
- public PrintStats
- public ProcessODRHash
- public Profile
- public addStmtClass
- public child_begin
- public child_begin
- public child_end
- public child_end
- public children
- public children
- public determineLikelihoodConflict
- public dump
- public dump
- public dumpColor
- public dumpPretty
- public getBeginLoc
- public getEndLoc
- public getID
- public getLikelihood
- public getLikelihood
- public getLikelihood
- public getLikelihoodAttr
- public getSourceRange
- public getStmtClass
- public getStmtClassName
- public printJson
- public printPretty
- public printPrettyControlled
- public stripLabelLikeStatements
- public stripLabelLikeStatements
- public viewAST
Methods
¶BinaryOperator(
const clang::ASTContext& Ctx,
clang::Expr* lhs,
clang::Expr* rhs,
clang::BinaryOperator::Opcode opc,
clang::QualType ResTy,
clang::ExprValueKind VK,
clang::ExprObjectKind OK,
clang::SourceLocation opLoc,
clang::FPOptionsOverride FPFeatures)
BinaryOperator(
const clang::ASTContext& Ctx,
clang::Expr* lhs,
clang::Expr* rhs,
clang::BinaryOperator::Opcode opc,
clang::QualType ResTy,
clang::ExprValueKind VK,
clang::ExprObjectKind OK,
clang::SourceLocation opLoc,
clang::FPOptionsOverride FPFeatures)
Description
Build a binary operator, assuming that appropriate storage has been allocated for the trailing objects when needed.
Declared at: clang/include/clang/AST/Expr.h:3831
Parameters
- const clang::ASTContext& Ctx
- clang::Expr* lhs
- clang::Expr* rhs
- clang::BinaryOperator::Opcode opc
- clang::QualType ResTy
- clang::ExprValueKind VK
- clang::ExprObjectKind OK
- clang::SourceLocation opLoc
- clang::FPOptionsOverride FPFeatures
¶BinaryOperator(clang::Stmt::EmptyShell Empty)
BinaryOperator(clang::Stmt::EmptyShell Empty)
Description
Construct an empty binary operator.
Declared at: clang/include/clang/AST/Expr.h:3836
Parameters
- clang::Stmt::EmptyShell Empty
¶BinaryOperator(clang::Stmt::StmtClass SC,
clang::Stmt::EmptyShell Empty)
BinaryOperator(clang::Stmt::StmtClass SC,
clang::Stmt::EmptyShell Empty)
Description
Construct an empty BinaryOperator, SC is CompoundAssignOperator.
Declared at: clang/include/clang/AST/Expr.h:4037
Parameters
- clang::Stmt::StmtClass SC
- clang::Stmt::EmptyShell Empty
¶BinaryOperator(
const clang::ASTContext& Ctx,
clang::Expr* lhs,
clang::Expr* rhs,
clang::BinaryOperator::Opcode opc,
clang::QualType ResTy,
clang::ExprValueKind VK,
clang::ExprObjectKind OK,
clang::SourceLocation opLoc,
clang::FPOptionsOverride FPFeatures,
bool dead2)
BinaryOperator(
const clang::ASTContext& Ctx,
clang::Expr* lhs,
clang::Expr* rhs,
clang::BinaryOperator::Opcode opc,
clang::QualType ResTy,
clang::ExprValueKind VK,
clang::ExprObjectKind OK,
clang::SourceLocation opLoc,
clang::FPOptionsOverride FPFeatures,
bool dead2)
Declared at: clang/include/clang/AST/Expr.h:4031
Parameters
- const clang::ASTContext& Ctx
- clang::Expr* lhs
- clang::Expr* rhs
- clang::BinaryOperator::Opcode opc
- clang::QualType ResTy
- clang::ExprValueKind VK
- clang::ExprObjectKind OK
- clang::SourceLocation opLoc
- clang::FPOptionsOverride FPFeatures
- bool dead2
¶static clang::BinaryOperator* Create(
const clang::ASTContext& C,
clang::Expr* lhs,
clang::Expr* rhs,
clang::BinaryOperator::Opcode opc,
clang::QualType ResTy,
clang::ExprValueKind VK,
clang::ExprObjectKind OK,
clang::SourceLocation opLoc,
clang::FPOptionsOverride FPFeatures)
static clang::BinaryOperator* Create(
const clang::ASTContext& C,
clang::Expr* lhs,
clang::Expr* rhs,
clang::BinaryOperator::Opcode opc,
clang::QualType ResTy,
clang::ExprValueKind VK,
clang::ExprObjectKind OK,
clang::SourceLocation opLoc,
clang::FPOptionsOverride FPFeatures)
Declared at: clang/include/clang/AST/Expr.h:3843
Parameters
- const clang::ASTContext& C
- clang::Expr* lhs
- clang::Expr* rhs
- clang::BinaryOperator::Opcode opc
- clang::QualType ResTy
- clang::ExprValueKind VK
- clang::ExprObjectKind OK
- clang::SourceLocation opLoc
- clang::FPOptionsOverride FPFeatures
¶static clang::BinaryOperator* CreateEmpty(
const clang::ASTContext& C,
bool hasFPFeatures)
static clang::BinaryOperator* CreateEmpty(
const clang::ASTContext& C,
bool hasFPFeatures)
Declared at: clang/include/clang/AST/Expr.h:3841
Parameters
- const clang::ASTContext& C
- bool hasFPFeatures
¶clang::Stmt::child_range children()
clang::Stmt::child_range children()
Declared at: clang/include/clang/AST/Expr.h:3980
¶clang::Stmt::const_child_range children() const
clang::Stmt::const_child_range children() const
Declared at: clang/include/clang/AST/Expr.h:3983
¶static bool classof(const clang::Stmt* S)
static bool classof(const clang::Stmt* S)
Declared at: clang/include/clang/AST/Expr.h:3974
Parameters
- const clang::Stmt* S
¶clang::SourceLocation getBeginLoc() const
clang::SourceLocation getBeginLoc() const
Declared at: clang/include/clang/AST/Expr.h:3861
¶clang::SourceLocation getEndLoc() const
clang::SourceLocation getEndLoc() const
Declared at: clang/include/clang/AST/Expr.h:3864
¶clang::SourceLocation getExprLoc() const
clang::SourceLocation getExprLoc() const
Declared at: clang/include/clang/AST/Expr.h:3847
¶clang::FPOptionsOverride getFPFeatures(
const clang::LangOptions& LO) const
clang::FPOptionsOverride getFPFeatures(
const clang::LangOptions& LO) const
Declared at: clang/include/clang/AST/Expr.h:4012
Parameters
- const clang::LangOptions& LO
¶clang::FPOptions getFPFeaturesInEffect(
const clang::LangOptions& LO) const
clang::FPOptions getFPFeaturesInEffect(
const clang::LangOptions& LO) const
Declared at: clang/include/clang/AST/Expr.h:4005
Parameters
- const clang::LangOptions& LO
¶clang::Expr* getLHS() const
clang::Expr* getLHS() const
Declared at: clang/include/clang/AST/Expr.h:3856
¶static clang::BinaryOperator::Opcode
getOpForCompoundAssignment(
clang::BinaryOperator::Opcode Opc)
static clang::BinaryOperator::Opcode
getOpForCompoundAssignment(
clang::BinaryOperator::Opcode Opc)
Declared at: clang/include/clang/AST/Expr.h:3953
Parameters
- clang::BinaryOperator::Opcode Opc
¶clang::BinaryOperator::Opcode getOpcode() const
clang::BinaryOperator::Opcode getOpcode() const
Declared at: clang/include/clang/AST/Expr.h:3851
¶static llvm::StringRef getOpcodeStr(
clang::BinaryOperator::Opcode Op)
static llvm::StringRef getOpcodeStr(
clang::BinaryOperator::Opcode Op)
Description
getOpcodeStr - Turn an Opcode enum value into the punctuation char it corresponds to, e.g. "<<=".
Declared at: clang/include/clang/AST/Expr.h:3870
Parameters
- clang::BinaryOperator::Opcode Op
¶llvm::StringRef getOpcodeStr() const
llvm::StringRef getOpcodeStr() const
Declared at: clang/include/clang/AST/Expr.h:3872
¶clang::SourceLocation getOperatorLoc() const
clang::SourceLocation getOperatorLoc() const
Declared at: clang/include/clang/AST/Expr.h:3848
¶static clang::BinaryOperator::Opcode
getOverloadedOpcode(
clang::OverloadedOperatorKind OO)
static clang::BinaryOperator::Opcode
getOverloadedOpcode(
clang::OverloadedOperatorKind OO)
Description
Retrieve the binary opcode that corresponds to the given overloaded operator.
Declared at: clang/include/clang/AST/Expr.h:3876
Parameters
- clang::OverloadedOperatorKind OO
¶static clang::OverloadedOperatorKind
getOverloadedOperator(
clang::BinaryOperator::Opcode Opc)
static clang::OverloadedOperatorKind
getOverloadedOperator(
clang::BinaryOperator::Opcode Opc)
Description
Retrieve the overloaded operator kind that corresponds to the given binary opcode.
Declared at: clang/include/clang/AST/Expr.h:3880
Parameters
- clang::BinaryOperator::Opcode Opc
¶clang::Expr* getRHS() const
clang::Expr* getRHS() const
Declared at: clang/include/clang/AST/Expr.h:3858
¶clang::FPOptionsOverride getStoredFPFeatures()
const
clang::FPOptionsOverride getStoredFPFeatures()
const
Description
Get FPFeatures from trailing storage
Declared at: clang/include/clang/AST/Expr.h:3993
¶clang::FPOptionsOverride* getTrailingFPFeatures()
clang::FPOptionsOverride* getTrailingFPFeatures()
Description
Return a pointer to the trailing FPOptions
Declared at: clang/include/clang/AST/Expr.h:3818
¶const clang::FPOptionsOverride*
getTrailingFPFeatures() const
const clang::FPOptionsOverride*
getTrailingFPFeatures() const
Declared at: clang/include/clang/AST/Expr.h:3823
¶bool hasStoredFPFeatures() const
bool hasStoredFPFeatures() const
Declared at: clang/include/clang/AST/Expr.h:3990
¶static bool isAdditiveOp(
clang::BinaryOperator::Opcode Opc)
static bool isAdditiveOp(
clang::BinaryOperator::Opcode Opc)
Declared at: clang/include/clang/AST/Expr.h:3892
Parameters
- clang::BinaryOperator::Opcode Opc
¶bool isAdditiveOp() const
bool isAdditiveOp() const
Declared at: clang/include/clang/AST/Expr.h:3893
¶bool isAssignmentOp() const
bool isAssignmentOp() const
Declared at: clang/include/clang/AST/Expr.h:3945
¶static bool isAssignmentOp(
clang::BinaryOperator::Opcode Opc)
static bool isAssignmentOp(
clang::BinaryOperator::Opcode Opc)
Declared at: clang/include/clang/AST/Expr.h:3942
Parameters
- clang::BinaryOperator::Opcode Opc
¶bool isBitwiseOp() const
bool isBitwiseOp() const
Declared at: clang/include/clang/AST/Expr.h:3898
¶static bool isBitwiseOp(
clang::BinaryOperator::Opcode Opc)
static bool isBitwiseOp(
clang::BinaryOperator::Opcode Opc)
Declared at: clang/include/clang/AST/Expr.h:3897
Parameters
- clang::BinaryOperator::Opcode Opc
¶static bool isCommaOp(
clang::BinaryOperator::Opcode Opc)
static bool isCommaOp(
clang::BinaryOperator::Opcode Opc)
Declared at: clang/include/clang/AST/Expr.h:3909
Parameters
- clang::BinaryOperator::Opcode Opc
¶bool isCommaOp() const
bool isCommaOp() const
Declared at: clang/include/clang/AST/Expr.h:3910
¶static bool isComparisonOp(
clang::BinaryOperator::Opcode Opc)
static bool isComparisonOp(
clang::BinaryOperator::Opcode Opc)
Declared at: clang/include/clang/AST/Expr.h:3906
Parameters
- clang::BinaryOperator::Opcode Opc
¶bool isComparisonOp() const
bool isComparisonOp() const
Declared at: clang/include/clang/AST/Expr.h:3907
¶bool isCompoundAssignmentOp() const
bool isCompoundAssignmentOp() const
Declared at: clang/include/clang/AST/Expr.h:3950
¶static bool isCompoundAssignmentOp(
clang::BinaryOperator::Opcode Opc)
static bool isCompoundAssignmentOp(
clang::BinaryOperator::Opcode Opc)
Declared at: clang/include/clang/AST/Expr.h:3947
Parameters
- clang::BinaryOperator::Opcode Opc
¶static bool isEqualityOp(
clang::BinaryOperator::Opcode Opc)
static bool isEqualityOp(
clang::BinaryOperator::Opcode Opc)
Declared at: clang/include/clang/AST/Expr.h:3903
Parameters
- clang::BinaryOperator::Opcode Opc
¶bool isEqualityOp() const
bool isEqualityOp() const
Declared at: clang/include/clang/AST/Expr.h:3904
¶bool isFEnvAccessOn(
const clang::LangOptions& LO) const
bool isFEnvAccessOn(
const clang::LangOptions& LO) const
Declared at: clang/include/clang/AST/Expr.h:4026
Parameters
- const clang::LangOptions& LO
¶bool isFPContractableWithinStatement(
const clang::LangOptions& LO) const
bool isFPContractableWithinStatement(
const clang::LangOptions& LO) const
Declared at: clang/include/clang/AST/Expr.h:4020
Parameters
- const clang::LangOptions& LO
¶static bool isLogicalOp(
clang::BinaryOperator::Opcode Opc)
static bool isLogicalOp(
clang::BinaryOperator::Opcode Opc)
Declared at: clang/include/clang/AST/Expr.h:3939
Parameters
- clang::BinaryOperator::Opcode Opc
¶bool isLogicalOp() const
bool isLogicalOp() const
Declared at: clang/include/clang/AST/Expr.h:3940
¶bool isMultiplicativeOp() const
bool isMultiplicativeOp() const
Declared at: clang/include/clang/AST/Expr.h:3891
¶static bool isMultiplicativeOp(
clang::BinaryOperator::Opcode Opc)
static bool isMultiplicativeOp(
clang::BinaryOperator::Opcode Opc)
Declared at: clang/include/clang/AST/Expr.h:3888
Parameters
- clang::BinaryOperator::Opcode Opc
¶static bool isNullPointerArithmeticExtension(
clang::ASTContext& Ctx,
clang::BinaryOperator::Opcode Opc,
clang::Expr* LHS,
clang::Expr* RHS)
static bool isNullPointerArithmeticExtension(
clang::ASTContext& Ctx,
clang::BinaryOperator::Opcode Opc,
clang::Expr* LHS,
clang::Expr* RHS)
Declared at: clang/include/clang/AST/Expr.h:3971
Parameters
- clang::ASTContext& Ctx
- clang::BinaryOperator::Opcode Opc
- clang::Expr* LHS
- clang::Expr* RHS
¶bool isPtrMemOp() const
bool isPtrMemOp() const
Declared at: clang/include/clang/AST/Expr.h:3886
¶static bool isPtrMemOp(
clang::BinaryOperator::Opcode Opc)
static bool isPtrMemOp(
clang::BinaryOperator::Opcode Opc)
Description
predicates to categorize the respective opcodes.
Declared at: clang/include/clang/AST/Expr.h:3883
Parameters
- clang::BinaryOperator::Opcode Opc
¶bool isRelationalOp() const
bool isRelationalOp() const
Declared at: clang/include/clang/AST/Expr.h:3901
¶static bool isRelationalOp(
clang::BinaryOperator::Opcode Opc)
static bool isRelationalOp(
clang::BinaryOperator::Opcode Opc)
Declared at: clang/include/clang/AST/Expr.h:3900
Parameters
- clang::BinaryOperator::Opcode Opc
¶bool isShiftAssignOp() const
bool isShiftAssignOp() const
Declared at: clang/include/clang/AST/Expr.h:3964
¶static bool isShiftAssignOp(
clang::BinaryOperator::Opcode Opc)
static bool isShiftAssignOp(
clang::BinaryOperator::Opcode Opc)
Declared at: clang/include/clang/AST/Expr.h:3961
Parameters
- clang::BinaryOperator::Opcode Opc
¶bool isShiftOp() const
bool isShiftOp() const
Declared at: clang/include/clang/AST/Expr.h:3895
¶static bool isShiftOp(
clang::BinaryOperator::Opcode Opc)
static bool isShiftOp(
clang::BinaryOperator::Opcode Opc)
Declared at: clang/include/clang/AST/Expr.h:3894
Parameters
- clang::BinaryOperator::Opcode Opc
¶static clang::BinaryOperator::Opcode
negateComparisonOp(
clang::BinaryOperator::Opcode Opc)
static clang::BinaryOperator::Opcode
negateComparisonOp(
clang::BinaryOperator::Opcode Opc)
Declared at: clang/include/clang/AST/Expr.h:3912
Parameters
- clang::BinaryOperator::Opcode Opc
¶size_t offsetOfTrailingStorage() const
size_t offsetOfTrailingStorage() const
Declared at: clang/include/clang/AST/Expr.h:3815
¶static clang::BinaryOperator::Opcode
reverseComparisonOp(
clang::BinaryOperator::Opcode Opc)
static clang::BinaryOperator::Opcode
reverseComparisonOp(
clang::BinaryOperator::Opcode Opc)
Declared at: clang/include/clang/AST/Expr.h:3925
Parameters
- clang::BinaryOperator::Opcode Opc
¶void setHasStoredFPFeatures(bool B)
void setHasStoredFPFeatures(bool B)
Description
Set and fetch the bit that shows whether FPFeatures needs to be allocated in Trailing Storage
Declared at: clang/include/clang/AST/Expr.h:3989
Parameters
- bool B
¶void setLHS(clang::Expr* E)
void setLHS(clang::Expr* E)
Declared at: clang/include/clang/AST/Expr.h:3857
Parameters
- clang::Expr* E
¶void setOpcode(clang::BinaryOperator::Opcode Opc)
void setOpcode(clang::BinaryOperator::Opcode Opc)
Declared at: clang/include/clang/AST/Expr.h:3854
Parameters
- clang::BinaryOperator::Opcode Opc
¶void setOperatorLoc(clang::SourceLocation L)
void setOperatorLoc(clang::SourceLocation L)
Declared at: clang/include/clang/AST/Expr.h:3849
Parameters
¶void setRHS(clang::Expr* E)
void setRHS(clang::Expr* E)
Declared at: clang/include/clang/AST/Expr.h:3859
Parameters
- clang::Expr* E
¶void setStoredFPFeatures(
clang::FPOptionsOverride F)
void setStoredFPFeatures(
clang::FPOptionsOverride F)
Description
Set FPFeatures in trailing storage, used only by Serialization
Declared at: clang/include/clang/AST/Expr.h:3998
Parameters
¶static unsigned int sizeOfTrailingObjects(
bool HasFPFeatures)
static unsigned int sizeOfTrailingObjects(
bool HasFPFeatures)
Description
Return the size in bytes needed for the trailing objects. Used to allocate the right amount of storage.
Declared at: clang/include/clang/AST/Expr.h:4043
Parameters
- bool HasFPFeatures