Home
last modified time | relevance | path

Searched refs:CompoundAssignOperator (Results 1 – 25 of 29) sorted by relevance

12

/llvm-project-15.0.7/clang/include/clang/AST/
H A DStmtVisitor.h73 case BO_MulAssign: DISPATCH(BinMulAssign, CompoundAssignOperator); in Visit()
74 case BO_DivAssign: DISPATCH(BinDivAssign, CompoundAssignOperator); in Visit()
75 case BO_RemAssign: DISPATCH(BinRemAssign, CompoundAssignOperator); in Visit()
76 case BO_AddAssign: DISPATCH(BinAddAssign, CompoundAssignOperator); in Visit()
77 case BO_SubAssign: DISPATCH(BinSubAssign, CompoundAssignOperator); in Visit()
78 case BO_ShlAssign: DISPATCH(BinShlAssign, CompoundAssignOperator); in Visit()
79 case BO_ShrAssign: DISPATCH(BinShrAssign, CompoundAssignOperator); in Visit()
80 case BO_AndAssign: DISPATCH(BinAndAssign, CompoundAssignOperator); in Visit()
81 case BO_OrAssign: DISPATCH(BinOrAssign, CompoundAssignOperator); in Visit()
82 case BO_XorAssign: DISPATCH(BinXorAssign, CompoundAssignOperator); in Visit()
[all …]
H A DTextNodeDumper.h270 void VisitCompoundAssignOperator(const CompoundAssignOperator *Node);
H A DJSONNodeDumper.h273 void VisitCompoundAssignOperator(const CompoundAssignOperator *CAO);
H A DExpr.h4054 class CompoundAssignOperator : public BinaryOperator {
4059 explicit CompoundAssignOperator(const ASTContext &C, EmptyShell Empty, in CompoundAssignOperator() function
4064 CompoundAssignOperator(const ASTContext &C, Expr *lhs, Expr *rhs, Opcode opc, in CompoundAssignOperator() function
4076 static CompoundAssignOperator *CreateEmpty(const ASTContext &C,
4079 static CompoundAssignOperator *
4101 return isa<CompoundAssignOperator>(this) ? sizeof(CompoundAssignOperator) in offsetOfTrailingStorage()
H A DRecursiveASTVisitor.h2849 DEF_TRAVERSE_STMT(CompoundAssignOperator, {})
/llvm-project-15.0.7/clang/unittests/Tooling/RecursiveASTVisitorTests/
H A DCallbacksCompoundAssignOperator.cpp17 bool TraverseCompoundAssignOperator(CompoundAssignOperator *CAO) { in TEST()
72 bool TraverseCompoundAssignOperator(CompoundAssignOperator *CAO) { in TEST()
91 bool WalkUpFromCompoundAssignOperator(CompoundAssignOperator *CAO) { in TEST()
162 bool WalkUpFromCompoundAssignOperator(CompoundAssignOperator *CAO) { in TEST()
/llvm-project-15.0.7/clang/lib/CodeGen/
H A DCGExprComplex.cpp257 LValue EmitCompoundAssignLValue(const CompoundAssignOperator *E,
261 ComplexPairTy EmitCompoundAssign(const CompoundAssignOperator *E,
291 ComplexPairTy VisitBinAddAssign(const CompoundAssignOperator *E) { in VisitBinAddAssign()
294 ComplexPairTy VisitBinSubAssign(const CompoundAssignOperator *E) { in VisitBinSubAssign()
297 ComplexPairTy VisitBinMulAssign(const CompoundAssignOperator *E) { in VisitBinMulAssign()
300 ComplexPairTy VisitBinDivAssign(const CompoundAssignOperator *E) { in VisitBinDivAssign()
899 EmitCompoundAssignLValue(const CompoundAssignOperator *E, in EmitCompoundAssignLValue()
970 EmitCompoundAssign(const CompoundAssignOperator *E, in EmitCompoundAssign()
1175 EmitComplexCompoundAssignmentLValue(const CompoundAssignOperator *E) { in EmitComplexCompoundAssignmentLValue()
1182 EmitScalarCompoundAssignWithComplex(const CompoundAssignOperator *E, in EmitScalarCompoundAssignWithComplex()
H A DCGExprScalar.cpp795 LValue EmitCompoundAssignLValue(const CompoundAssignOperator *E,
799 Value *EmitCompoundAssign(const CompoundAssignOperator *E,
807 Value *VisitBin ## OP ## Assign(const CompoundAssignOperator *E) { \
3066 const CompoundAssignOperator *E, in EmitCompoundAssignLValue()
3196 Value *ScalarExprEmitter::EmitCompoundAssign(const CompoundAssignOperator *E, in EmitCompoundAssign()
3702 if (const auto *CAO = dyn_cast<CompoundAssignOperator>(BinOp)) { in EmitFixedPointBinOp()
4927 const CompoundAssignOperator *E) { in EmitCompoundAssignmentLValue()
H A DCodeGenFunction.h3895 LValue EmitComplexCompoundAssignmentLValue(const CompoundAssignOperator *E);
3896 LValue EmitScalarCompoundAssignWithComplex(const CompoundAssignOperator *E,
3901 LValue EmitCompoundAssignmentLValue(const CompoundAssignOperator *E);
H A DCGExpr.cpp1334 return EmitCompoundAssignmentLValue(cast<CompoundAssignOperator>(E)); in EmitLValue()
1335 return EmitComplexCompoundAssignmentLValue(cast<CompoundAssignOperator>(E)); in EmitLValue()
/llvm-project-15.0.7/clang/lib/Analysis/
H A DReachableCode.cpp563 const CompoundAssignOperator *CAO = cast<CompoundAssignOperator>(S); in GetUnreachableLoc()
/llvm-project-15.0.7/clang/lib/Sema/
H A DSemaPseudoObject.cpp464 syntactic = CompoundAssignOperator::Create( in buildAssignmentOperation()
1646 } else if (CompoundAssignOperator *cop in recreateSyntacticForm()
1647 = dyn_cast<CompoundAssignOperator>(syntax)) { in recreateSyntacticForm()
1650 return CompoundAssignOperator::Create( in recreateSyntacticForm()
H A DSemaChecking.cpp13249 assert(isa<CompoundAssignOperator>(E) && in AnalyzeCompoundAssignment()
13260 const auto *RBT = cast<CompoundAssignOperator>(E) in AnalyzeCompoundAssignment()
15010 if (O && isa<CompoundAssignOperator>(BO)) in VisitBinAssign()
15018 if (O && isa<CompoundAssignOperator>(BO)) in VisitBinAssign()
15040 void VisitCompoundAssignOperator(const CompoundAssignOperator *CAO) { in VisitCompoundAssignOperator()
/llvm-project-15.0.7/clang/lib/AST/
H A DExpr.cpp4557 CompoundAssignOperator *
4558 CompoundAssignOperator::CreateEmpty(const ASTContext &C, bool HasFPFeatures) { in CreateEmpty()
4560 void *Mem = C.Allocate(sizeof(CompoundAssignOperator) + Extra, in CreateEmpty()
4561 alignof(CompoundAssignOperator)); in CreateEmpty()
4562 return new (Mem) CompoundAssignOperator(C, EmptyShell(), HasFPFeatures); in CreateEmpty()
4565 CompoundAssignOperator *
4566 CompoundAssignOperator::Create(const ASTContext &C, Expr *lhs, Expr *rhs, in Create()
4573 void *Mem = C.Allocate(sizeof(CompoundAssignOperator) + Extra, in Create()
4574 alignof(CompoundAssignOperator)); in Create()
4576 CompoundAssignOperator(C, lhs, rhs, opc, ResTy, VK, OK, opLoc, FPFeatures, in Create()
H A DJSONNodeDumper.cpp1235 const CompoundAssignOperator *CAO) { in VisitCompoundAssignOperator()
H A DTextNodeDumper.cpp1165 const CompoundAssignOperator *Node) { in VisitCompoundAssignOperator()
H A DStmtProfile.cpp1437 StmtProfiler::VisitCompoundAssignOperator(const CompoundAssignOperator *S) { in VisitCompoundAssignOperator()
H A DStmtPrinter.cpp1626 void StmtPrinter::VisitCompoundAssignOperator(CompoundAssignOperator *Node) { in VisitCompoundAssignOperator()
H A DExprConstant.cpp2612 assert(isa<CastExpr>(E) || isa<CompoundAssignOperator>(E)); in HandleFloatToFloatCast()
4333 const CompoundAssignOperator *E;
4456 const CompoundAssignOperator *E, in handleCompoundAssignment()
8174 bool VisitCompoundAssignOperator(const CompoundAssignOperator *CAO);
8521 const CompoundAssignOperator *CAO) { in VisitCompoundAssignOperator()
H A DASTImporter.cpp650 ExpectedStmt VisitCompoundAssignOperator(CompoundAssignOperator *E);
7323 ASTNodeImporter::VisitCompoundAssignOperator(CompoundAssignOperator *E) { in VisitCompoundAssignOperator()
7335 return CompoundAssignOperator::Create( in VisitCompoundAssignOperator()
/llvm-project-15.0.7/clang/lib/Index/
H A DIndexBody.cpp91 } else if (auto CA = dyn_cast<CompoundAssignOperator>(Parent)) { in getRolesForRef()
/llvm-project-15.0.7/clang/lib/StaticAnalyzer/Core/
H A DExprEngineC.cpp144 cast<CompoundAssignOperator>(B)->getComputationResultType(); in VisitBinaryOperator()
148 cast<CompoundAssignOperator>(B)->getComputationLHSType(); in VisitBinaryOperator()
/llvm-project-15.0.7/clang/include/clang/Basic/
H A DStmtNodes.td80 def CompoundAssignOperator : StmtNode<BinaryOperator>;
/llvm-project-15.0.7/clang/lib/Serialization/
H A DASTReaderStmt.cpp1110 void ASTStmtReader::VisitCompoundAssignOperator(CompoundAssignOperator *E) { in VisitCompoundAssignOperator()
2992 S = CompoundAssignOperator::CreateEmpty( in ReadStmtFromStream()
H A DASTWriterStmt.cpp986 void ASTStmtWriter::VisitCompoundAssignOperator(CompoundAssignOperator *E) { in VisitCompoundAssignOperator()

12