Home
last modified time | relevance | path

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

12

/freebsd-14.2/contrib/llvm-project/clang/include/clang/StaticAnalyzer/Core/PathSensitive/
H A DCheckerHelpers.h76 BinaryOperatorKind Bin;
82 explicit OperatorKind(BinaryOperatorKind Bin) : Op{Bin}, IsBinary{true} {} in OperatorKind()
86 BinaryOperatorKind GetBinaryOpUnsafe() const { in GetBinaryOpUnsafe()
91 std::optional<BinaryOperatorKind> GetBinaryOp() const { in GetBinaryOp()
/freebsd-14.2/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 DMallocOverflowSecurityChecker.cpp63 static inline bool EvaluatesToZero(APSInt &Val, BinaryOperatorKind op) { in EvaluatesToZero()
84 BinaryOperatorKind opc = binop->getOpcode(); in CheckMallocArgument()
H A DInvalidatedIteratorChecker.cpp87 BinaryOperatorKind OK = BO->getOpcode(); in checkPreStmt()
H A DArrayBoundCheckerV2.cpp88 auto EvalBinOp = [&SVB, State, T](BinaryOperatorKind Op, NonLoc L, NonLoc R) { in computeOffset()
199 const BinaryOperatorKind OpKind = CheckEquality ? BO_EQ : BO_LT; in compareValueToThreshold()
H A DIteratorModeling.cpp161 bool isSimpleComparisonOperator(BinaryOperatorKind OK);
265 const BinaryOperatorKind OK = BO->getOpcode(); in checkPostStmt()
768 bool isSimpleComparisonOperator(BinaryOperatorKind OK) { in isSimpleComparisonOperator()
H A DPointerArithChecker.cpp313 BinaryOperatorKind OpKind = BOp->getOpcode(); in checkPreStmt()
H A DIteratorRangeChecker.cpp159 BinaryOperatorKind OK = BO->getOpcode(); in checkPreStmt()
H A DDeadStoresChecker.cpp110 BinaryOperatorKind Op = BO->getOpcode(); in LookThroughTransitiveAssignmentsAndCommaOperators()
H A DIvarInvalidationChecker.cpp659 BinaryOperatorKind Opcode = BO->getOpcode(); in VisitBinaryOperator()
/freebsd-14.2/contrib/llvm-project/clang/include/clang/AST/
H A DOperationKinds.h25 enum BinaryOperatorKind { enum
H A DExprCXX.h306 BinaryOperatorKind Opcode;
321 BinaryOperatorKind getOperator() const { return getDecomposedForm().Opcode; } in getOperator()
322 BinaryOperatorKind getOpcode() const { return getOperator(); } in getOpcode()
323 static StringRef getOpcodeStr(BinaryOperatorKind Op) { in getOpcodeStr()
4705 BinaryOperatorKind Opcode;
4709 SourceLocation LParenLoc, Expr *LHS, BinaryOperatorKind Opcode, in CXXFoldExpr()
4746 BinaryOperatorKind getOperator() const { return Opcode; } in getOperator()
/freebsd-14.2/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()
891 BinaryOperatorKind opcode, in buildAssignmentOperation()
999 BinaryOperatorKind opcode, in buildAssignmentOperation()
1589 BinaryOperatorKind opcode, in checkPseudoObjectAssignment()
H A DSemaTemplateVariadic.cpp1239 BinaryOperatorKind Opc = ConvertTokenKindToBinaryOpcode(Operator); in ActOnCXXFoldExpr()
1264 BinaryOperatorKind Operator, in BuildCXXFoldExpr()
1274 BinaryOperatorKind Operator) { in BuildEmptyCXXFoldExpr()
H A DSemaExpr.cpp9529 static bool IsArithmeticOp(BinaryOperatorKind Opc) { in IsArithmeticOp()
9613 BinaryOperatorKind CondOpcode; in DiagnoseConditionalPrecedence()
13061 BinaryOperatorKind Opc) { in CheckCompareOperands()
13612 BinaryOperatorKind Opc) { in CheckVectorCompareOperands()
13942 static bool isLegalBoolVectorBinaryOp(BinaryOperatorKind Opc) { in isLegalBoolVectorBinaryOp()
14570 BinaryOperatorKind Opc) { in CheckAssignmentOperands()
15316 BinaryOperatorKind Opc; in ConvertTokenKindToBinaryOpcode()
15594 BinaryOperatorKind Opc, in CreateBuiltinBinOp()
16064 BinaryOperatorKind Opc = ConvertTokenKindToBinaryOpcode(Kind); in ActOnBinOp()
16089 BinaryOperatorKind Opc, in BuildOverloadedBinOp()
[all …]
/freebsd-14.2/contrib/llvm-project/clang/lib/StaticAnalyzer/Core/
H A DCheckerContext.cpp127 static bool evalComparison(SVal LHSVal, BinaryOperatorKind ComparisonOp, in evalComparison()
H A DCheckerHelpers.cpp153 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()
1499 const BinaryOperatorKind CurrentOP = SSE->getOpcode(); in getRangeForComparisonSymbol()
1518 BinaryOperatorKind LastQueriedOpToUnknown = CurrentOP; in getRangeForComparisonSymbol()
1525 BinaryOperatorKind QueriedOP = OperatorRelationsTable::getOpFromIndex(i); in getRangeForComparisonSymbol()
1532 const BinaryOperatorKind ROP = in getRangeForComparisonSymbol()
H A DExplodedGraph.cpp361 BinaryOperatorKind Op = cast<BinaryOperator>(S)->getOpcode(); in getNextStmtForDiagnostics()
H A DSValBuilder.cpp505 if (op == BinaryOperatorKind::BO_Cmp) { in evalBinOp()
521 const auto IsCommutative = [](BinaryOperatorKind Op) { in evalBinOp()
/freebsd-14.2/contrib/llvm-project/clang/lib/AST/Interp/
H A DByteCodeExprGen.cpp491 BinaryOperatorKind Op = E->getOpcode(); in VisitPointerArithBinOp()
540 BinaryOperatorKind Op = E->getOpcode(); in VisitLogicalBinOp()
636 BinaryOperatorKind Op = E->getOpcode(); in VisitComplexBinOp()
1296 BinaryOperatorKind Op = E->getOpcode(); in VisitPointerCompoundAssignOperator()
/freebsd-14.2/contrib/llvm-project/clang/include/clang/Sema/
H A DSema.h4300 BinaryOperatorKind Opc,
6767 BinaryOperatorKind Operator,
6772 BinaryOperatorKind Operator);
12950 BinaryOperatorKind Opc, QualType* CompLHSTy = nullptr);
12956 BinaryOperatorKind Opc, bool IsCompAssign = false);
12960 BinaryOperatorKind Opc);
12963 BinaryOperatorKind Opc);
12966 BinaryOperatorKind Opc);
12972 BinaryOperatorKind Opc);
13027 BinaryOperatorKind Opc);
[all …]
/freebsd-14.2/contrib/llvm-project/clang/lib/Analysis/
H A DCFG.cpp117 static std::tuple<const Expr *, BinaryOperatorKind, const Expr *>
119 BinaryOperatorKind Op = B->getOpcode(); in tryNormalizeBinaryOperator()
948 BinaryOperatorKind Bok = B->getOpcode(); in checkIncorrectRelationalOperator()
1055 TryResult analyzeLogicOperatorCondition(BinaryOperatorKind Relation, in analyzeLogicOperatorCondition()
1120 BinaryOperatorKind BO1; in checkIncorrectLogicOperator()
1128 BinaryOperatorKind BO2; in checkIncorrectLogicOperator()
/freebsd-14.2/contrib/llvm-project/clang/include/clang/ASTMatchers/
H A DASTMatchersInternal.h1976 inline std::optional<BinaryOperatorKind>
1982 inline std::optional<BinaryOperatorKind>

12