Home
last modified time | relevance | path

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

12

/freebsd-13.1/contrib/llvm-project/clang/lib/StaticAnalyzer/Checkers/
H A DUndefResultChecker.cpp119 if ((B->getOpcode() == BinaryOperatorKind::BO_Shl || in checkPostStmt()
120 B->getOpcode() == BinaryOperatorKind::BO_Shr) && in checkPostStmt()
123 << ((B->getOpcode() == BinaryOperatorKind::BO_Shl) ? "left" in checkPostStmt()
127 } else if ((B->getOpcode() == BinaryOperatorKind::BO_Shl || in checkPostStmt()
128 B->getOpcode() == BinaryOperatorKind::BO_Shr) && in checkPostStmt()
132 << ((B->getOpcode() == BinaryOperatorKind::BO_Shl) ? "left" in checkPostStmt()
149 } else if (B->getOpcode() == BinaryOperatorKind::BO_Shl && in checkPostStmt()
154 } else if (B->getOpcode() == BinaryOperatorKind::BO_Shl && in checkPostStmt()
H A DIterator.h156 bool isAccessOperator(BinaryOperatorKind OK);
159 bool isDereferenceOperator(BinaryOperatorKind OK);
165 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.cpp60 static inline bool EvaluatesToZero(APSInt &Val, BinaryOperatorKind op) { in EvaluatesToZero()
82 BinaryOperatorKind opc = binop->getOpcode(); in CheckMallocArgument()
H A DInvalidatedIteratorChecker.cpp92 BinaryOperatorKind OK = BO->getOpcode(); in checkPreStmt()
H A DIteratorModeling.cpp162 bool isSimpleComparisonOperator(BinaryOperatorKind OK);
266 const BinaryOperatorKind OK = BO->getOpcode(); in checkPostStmt()
774 bool isSimpleComparisonOperator(BinaryOperatorKind OK) { in isSimpleComparisonOperator()
H A DPointerArithChecker.cpp319 BinaryOperatorKind OpKind = BOp->getOpcode(); in checkPreStmt()
H A DIteratorRangeChecker.cpp165 BinaryOperatorKind OK = BO->getOpcode(); in checkPreStmt()
H A DIvarInvalidationChecker.cpp673 BinaryOperatorKind Opcode = BO->getOpcode(); in VisitBinaryOperator()
H A DSmartPtrModeling.cpp496 BinaryOperatorKind BOK = in handleComparisionOp()
/freebsd-13.1/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 Optional<BinaryOperatorKind> GetBinaryOp() const { in GetBinaryOp()
/freebsd-13.1/contrib/llvm-project/clang/include/clang/AST/
H A DOperationKinds.h25 enum BinaryOperatorKind { enum
H A DExprCXX.h307 BinaryOperatorKind Opcode;
322 BinaryOperatorKind getOperator() const { return getDecomposedForm().Opcode; } in getOperator()
323 BinaryOperatorKind getOpcode() const { return getOperator(); } in getOpcode()
324 static StringRef getOpcodeStr(BinaryOperatorKind Op) { in getOpcodeStr()
4587 BinaryOperatorKind Opcode;
4591 SourceLocation LParenLoc, Expr *LHS, BinaryOperatorKind Opcode, in CXXFoldExpr()
4628 BinaryOperatorKind getOperator() const { return Opcode; } in getOperator()
/freebsd-13.1/contrib/llvm-project/clang/lib/Sema/
H A DSemaPseudoObject.cpp211 BinaryOperatorKind opcode,
284 BinaryOperatorKind opcode,
323 BinaryOperatorKind opcode,
425 BinaryOperatorKind opcode, in buildAssignmentOperation()
459 BinaryOperatorKind nonCompound = in buildAssignmentOperation()
886 BinaryOperatorKind opcode, in buildAssignmentOperation()
994 BinaryOperatorKind opcode, in buildAssignmentOperation()
1583 BinaryOperatorKind opcode, in checkPseudoObjectAssignment()
H A DSemaTemplateVariadic.cpp1227 BinaryOperatorKind Opc = ConvertTokenKindToBinaryOpcode(Operator); in ActOnCXXFoldExpr()
1252 BinaryOperatorKind Operator, in BuildCXXFoldExpr()
1262 BinaryOperatorKind Operator) { in BuildEmptyCXXFoldExpr()
H A DSemaExpr.cpp8603 static bool IsArithmeticOp(BinaryOperatorKind Opc) { in IsArithmeticOp()
8690 BinaryOperatorKind CondOpcode; in DiagnoseConditionalPrecedence()
11364 BinaryOperatorKind Opc) { in diagnoseLogicalNotOnLHSofCheck()
11420 BinaryOperatorKind Opc) { in diagnoseTautologicalComparison()
11763 BinaryOperatorKind Opc) { in CheckCompareOperands()
12264 BinaryOperatorKind Opc) { in CheckVectorCompareOperands()
13839 BinaryOperatorKind Opc; in ConvertTokenKindToBinaryOpcode()
14077 BinaryOperatorKind Opc, in CreateBuiltinBinOp()
14557 BinaryOperatorKind Opc = ConvertTokenKindToBinaryOpcode(Kind); in ActOnBinOp()
14582 BinaryOperatorKind Opc, in BuildOverloadedBinOp()
[all …]
/freebsd-13.1/contrib/llvm-project/clang/lib/StaticAnalyzer/Core/
H A DCheckerContext.cpp105 static bool evalComparison(SVal LHSVal, BinaryOperatorKind ComparisonOp, in evalComparison()
H A DCheckerHelpers.cpp153 llvm::StringMap<BinaryOperatorKind> BinOps{ in operationKindFromOverloadedOperator()
H A DRangeConstraintManager.cpp86 static size_t getIndexFromOp(BinaryOperatorKind OP) { in getIndexFromOp()
93 static BinaryOperatorKind getOpFromIndex(size_t Index) { in getOpFromIndex()
94 return static_cast<BinaryOperatorKind>(Index + BO_LT); in getOpFromIndex()
97 TriStateKind getCmpOpState(BinaryOperatorKind CurrentOP, in getCmpOpState()
98 BinaryOperatorKind QueriedOP) const { in getCmpOpState()
102 TriStateKind getCmpOpStateForUnknownX2(BinaryOperatorKind CurrentOP) const { in getCmpOpStateForUnknownX2()
1115 BinaryOperatorKind CurrentOP = SSE->getOpcode(); in getRangeForComparisonSymbol()
1136 BinaryOperatorKind QueriedOP = OperatorRelationsTable::getOpFromIndex(i); in getRangeForComparisonSymbol()
1143 const BinaryOperatorKind ROP = in getRangeForComparisonSymbol()
H A DExplodedGraph.cpp363 BinaryOperatorKind Op = cast<BinaryOperator>(S)->getOpcode(); in getNextStmtForDiagnostics()
H A DSValBuilder.cpp440 if (op == BinaryOperatorKind::BO_Cmp) { in evalBinOp()
/freebsd-13.1/contrib/llvm-project/clang/include/clang/Sema/
H A DSema.h3872 BinaryOperatorKind Opc,
5502 void LookupBinOp(Scope *S, SourceLocation OpLoc, BinaryOperatorKind Opc,
6170 BinaryOperatorKind Operator,
6175 BinaryOperatorKind Operator);
11662 BinaryOperatorKind Opc, QualType* CompLHSTy = nullptr);
11668 BinaryOperatorKind Opc, bool IsCompAssign = false);
11672 BinaryOperatorKind Opc);
11675 BinaryOperatorKind Opc);
11678 BinaryOperatorKind Opc);
11688 BinaryOperatorKind Opcode,
[all …]
/freebsd-13.1/contrib/llvm-project/clang/lib/Analysis/
H A DCFG.cpp113 static std::tuple<const Expr *, BinaryOperatorKind, const Expr *>
115 BinaryOperatorKind Op = B->getOpcode(); in tryNormalizeBinaryOperator()
943 BinaryOperatorKind Bok = B->getOpcode(); in checkIncorrectRelationalOperator()
1008 TryResult analyzeLogicOperatorCondition(BinaryOperatorKind Relation, in analyzeLogicOperatorCondition()
1048 BinaryOperatorKind BO1; in checkIncorrectLogicOperator()
1056 BinaryOperatorKind BO2; in checkIncorrectLogicOperator()
/freebsd-13.1/contrib/llvm-project/clang/include/clang/ASTMatchers/
H A DASTMatchersInternal.h2004 inline Optional<BinaryOperatorKind>
2010 inline Optional<BinaryOperatorKind>
/freebsd-13.1/contrib/llvm-project/clang/lib/AST/
H A DStmtProfile.cpp1547 BinaryOperatorKind &BinaryOp) { in DecodeOperatorCall()
1759 BinaryOperatorKind BinaryOp = BO_Comma; in VisitCXXOperatorCallExpr()

12