Home
last modified time | relevance | path

Searched refs:BinaryOperatorKind (Results 1 – 25 of 57) sorted by relevance

123

/freebsd/contrib/llvm-project/clang/include/clang/StaticAnalyzer/Core/PathSensitive/
H A DCheckerHelpers.h78 BinaryOperatorKind Bin;
84 explicit OperatorKind(BinaryOperatorKind Bin) : Op{Bin}, IsBinary{true} {} in OperatorKind()
88 BinaryOperatorKind GetBinaryOpUnsafe() const { in GetBinaryOpUnsafe()
93 std::optional<BinaryOperatorKind> GetBinaryOp() const { in GetBinaryOp()
/freebsd/contrib/llvm-project/clang/lib/StaticAnalyzer/Checkers/
H A DIterator.h152 bool isAccessOperator(BinaryOperatorKind OK);
155 bool isDereferenceOperator(BinaryOperatorKind OK);
161 bool isRandomIncrOrDecrOperator(BinaryOperatorKind OK);
H A DIterator.cpp136 bool isAccessOperator(BinaryOperatorKind OK) { in isAccessOperator()
149 bool isDereferenceOperator(BinaryOperatorKind OK) { in isDereferenceOperator()
174 bool isRandomIncrOrDecrOperator(BinaryOperatorKind OK) { in isRandomIncrOrDecrOperator()
H A DInvalidatedIteratorChecker.cpp87 BinaryOperatorKind OK = BO->getOpcode(); in checkPreStmt()
H A DIteratorModeling.cpp163 bool isSimpleComparisonOperator(BinaryOperatorKind OK);
267 const BinaryOperatorKind OK = BO->getOpcode(); in checkPostStmt()
776 bool isSimpleComparisonOperator(BinaryOperatorKind OK) { in isSimpleComparisonOperator()
H A DArrayBoundChecker.cpp189 auto EvalBinOp = [&SVB, State, T](BinaryOperatorKind Op, NonLoc L, NonLoc R) { in computeOffset()
344 const BinaryOperatorKind OpKind = CheckEquality ? BO_EQ : BO_LT; in compareValueToThreshold()
H A DIteratorRangeChecker.cpp164 BinaryOperatorKind OK = BO->getOpcode(); in checkPreStmt()
H A DDeadStoresChecker.cpp109 BinaryOperatorKind Op = BO->getOpcode(); in LookThroughTransitiveAssignmentsAndCommaOperators()
H A DIvarInvalidationChecker.cpp658 BinaryOperatorKind Opcode = BO->getOpcode(); in VisitBinaryOperator()
/freebsd/contrib/llvm-project/clang/include/clang/AST/
H A DOperationKinds.h25 enum BinaryOperatorKind { enum
H A DExprCXX.h308 BinaryOperatorKind Opcode;
323 BinaryOperatorKind getOperator() const { return getDecomposedForm().Opcode; } in getOperator()
324 BinaryOperatorKind getOpcode() const { return getOperator(); } in getOpcode()
325 static StringRef getOpcodeStr(BinaryOperatorKind Op) { in getOpcodeStr()
4986 SourceLocation LParenLoc, Expr *LHS, BinaryOperatorKind Opcode,
5015 BinaryOperatorKind getOperator() const { return CXXFoldExprBits.Opcode; } in getOperator()
/freebsd/contrib/llvm-project/clang/include/clang/Sema/
H A DSemaPseudoObject.h33 BinaryOperatorKind Opcode, Expr *LHS, Expr *RHS);
H A DSemaHLSL.h141 void emitLogicalOperatorFixIt(Expr *LHS, Expr *RHS, BinaryOperatorKind Opc);
H A DSema.h2627 const Expr *RHS, BinaryOperatorKind Opcode);
7460 ExprResult BuildBinOp(Scope *S, SourceLocation OpLoc, BinaryOperatorKind Opc,
7467 ExprResult CreateBuiltinBinOp(SourceLocation OpLoc, BinaryOperatorKind Opc,
7470 void LookupBinOp(Scope *S, SourceLocation OpLoc, BinaryOperatorKind Opc,
7817 BinaryOperatorKind Opc);
7820 BinaryOperatorKind Opc);
7823 BinaryOperatorKind Opc);
8065 BinaryOperatorKind Opc, QualType *CompLHSTy = nullptr);
8071 BinaryOperatorKind Opc, bool IsCompAssign = false);
8075 BinaryOperatorKind Opc);
[all …]
/freebsd/contrib/llvm-project/clang/lib/Sema/
H A DSemaPseudoObject.cpp216 BinaryOperatorKind opcode,
289 BinaryOperatorKind opcode,
328 BinaryOperatorKind opcode,
430 BinaryOperatorKind opcode, in buildAssignmentOperation()
464 BinaryOperatorKind nonCompound = in buildAssignmentOperation()
892 BinaryOperatorKind opcode, in buildAssignmentOperation()
1000 BinaryOperatorKind opcode, in buildAssignmentOperation()
1504 BinaryOperatorKind opcode, in checkAssignment()
H A DSemaConcept.cpp398 bool Conjunction = FE->getOperator() == BinaryOperatorKind::BO_LAnd; in calculateConstraintSatisfaction()
485 (FE->getOperator() == BinaryOperatorKind::BO_LAnd || in calculateConstraintSatisfaction()
486 FE->getOperator() == BinaryOperatorKind::BO_LOr)) { in calculateConstraintSatisfaction()
1641 (FE->getOperator() == BinaryOperatorKind::BO_LAnd || in fromConstraintExpr()
1642 FE->getOperator() == BinaryOperatorKind::BO_LOr)) { in fromConstraintExpr()
1647 FE->getOperator() == BinaryOperatorKind::BO_LAnd in fromConstraintExpr()
1666 FE->getOperator() == BinaryOperatorKind::BO_LAnd ? CCK_Conjunction in fromConstraintExpr()
H A DSemaTemplateVariadic.cpp1429 BinaryOperatorKind Opc = ConvertTokenKindToBinaryOpcode(Operator); in ActOnCXXFoldExpr()
1454 BinaryOperatorKind Operator, in BuildCXXFoldExpr()
1464 BinaryOperatorKind Operator) { in BuildEmptyCXXFoldExpr()
H A DSemaExpr.cpp8707 static bool IsArithmeticOp(BinaryOperatorKind Opc) { in IsArithmeticOp()
8722 static bool IsArithmeticBinaryExpr(const Expr *E, BinaryOperatorKind *Opcode, in IsArithmeticBinaryExpr()
8753 BinaryOperatorKind OpKind = BinaryOperator::getOverloadedOpcode(OO); in IsArithmeticBinaryExpr()
8791 BinaryOperatorKind CondOpcode; in DiagnoseConditionalPrecedence()
11126 SourceLocation Loc, BinaryOperatorKind Opc, in CheckAdditionOperands()
11406 SourceLocation Loc, BinaryOperatorKind Opc, in DiagnoseBadShiftValues()
11697 SourceLocation Loc, BinaryOperatorKind Opc, in CheckShiftOperands()
11922 BinaryOperatorKind Opc) { in diagnoseLogicalNotOnLHSofCheck()
11980 BinaryOperatorKind Opc) { in isTautologicalBoundsCheck()
12023 BinaryOperatorKind Opc) { in diagnoseTautologicalComparison()
[all …]
/freebsd/contrib/llvm-project/clang/lib/StaticAnalyzer/Core/
H A DCheckerContext.cpp140 static bool evalComparison(SVal LHSVal, BinaryOperatorKind ComparisonOp, in evalComparison()
H A DCheckerHelpers.cpp162 llvm::StringMap<BinaryOperatorKind> BinOps{ in operationKindFromOverloadedOperator()
H A DRangeConstraintManager.cpp87 static size_t getIndexFromOp(BinaryOperatorKind OP) { in getIndexFromOp()
94 static BinaryOperatorKind getOpFromIndex(size_t Index) { in getOpFromIndex()
95 return static_cast<BinaryOperatorKind>(Index + BO_LT); in getOpFromIndex()
98 TriStateKind getCmpOpState(BinaryOperatorKind CurrentOP, in getCmpOpState()
99 BinaryOperatorKind QueriedOP) const { in getCmpOpState()
103 TriStateKind getCmpOpStateForUnknownX2(BinaryOperatorKind CurrentOP) const { in getCmpOpStateForUnknownX2()
1516 const BinaryOperatorKind CurrentOP = SSE->getOpcode(); in getRangeForComparisonSymbol()
1535 BinaryOperatorKind LastQueriedOpToUnknown = CurrentOP; in getRangeForComparisonSymbol()
1542 BinaryOperatorKind QueriedOP = OperatorRelationsTable::getOpFromIndex(i); in getRangeForComparisonSymbol()
1550 const BinaryOperatorKind ROP = in getRangeForComparisonSymbol()
H A DExplodedGraph.cpp361 BinaryOperatorKind Op = cast<BinaryOperator>(S)->getOpcode(); in getNextStmtForDiagnostics()
H A DSValBuilder.cpp506 if (op == BinaryOperatorKind::BO_Cmp) { in evalBinOp()
522 const auto IsCommutative = [](BinaryOperatorKind Op) { in evalBinOp()
/freebsd/contrib/llvm-project/clang/lib/Analysis/
H A DCFG.cpp116 static std::tuple<const Expr *, BinaryOperatorKind, const Expr *>
118 BinaryOperatorKind Op = B->getOpcode(); in tryNormalizeBinaryOperator()
976 BinaryOperatorKind Bok = B->getOpcode(); in checkIncorrectRelationalOperator()
1084 TryResult analyzeLogicOperatorCondition(BinaryOperatorKind Relation, in analyzeLogicOperatorCondition()
1148 BinaryOperatorKind BO1; in checkIncorrectLogicOperator()
1156 BinaryOperatorKind BO2; in checkIncorrectLogicOperator()
1188 const BinaryOperatorKind *BO1, in checkIncorrectLogicOperator()
1189 const BinaryOperatorKind *BO2) -> TryResult { in checkIncorrectLogicOperator()
/freebsd/contrib/llvm-project/clang/lib/CIR/CodeGen/
H A DCIRGenExprComplex.cpp101 e->getType(), e->getOpcode() == BinaryOperatorKind::BO_Div); \

123