/llvm-project/clang-tools-extra/clang-tidy/readability/ |
H A D | ContainerSizeEmptyCheck.cpp | 264 if (BinCmpTempl->getOpcode() == BinaryOperatorKind::BO_NE) { in check() 270 if (BinCmpRewritten->getOpcode() == BinaryOperatorKind::BO_NE) { in check() 297 if (Value == 1 && (OpCode == BinaryOperatorKind::BO_EQ || in check() 298 OpCode == BinaryOperatorKind::BO_NE)) in check() 303 if ((OpCode == BinaryOperatorKind::BO_GT && !ContainerIsLHS) || in check() 304 (OpCode == BinaryOperatorKind::BO_LT && ContainerIsLHS) || in check() 305 (OpCode == BinaryOperatorKind::BO_LE && !ContainerIsLHS) || in check() 306 (OpCode == BinaryOperatorKind::BO_GE && ContainerIsLHS)) in check() 312 if ((OpCode == BinaryOperatorKind::BO_GT && ContainerIsLHS) || in check() 313 (OpCode == BinaryOperatorKind::BO_LT && !ContainerIsLHS)) in check() [all …]
|
H A D | SimplifyBooleanExprCheck.cpp | 57 static std::pair<BinaryOperatorKind, BinaryOperatorKind> Opposites[] = { 61 const BinaryOperatorKind Opcode = BinOp->getOpcode(); in negatedOperator() 823 static BinaryOperatorKind getDemorganFlippedOperator(BinaryOperatorKind BO) { in getDemorganFlippedOperator() 830 std::optional<BinaryOperatorKind> OuterBO); 838 std::optional<BinaryOperatorKind> OuterBO, in flipDemorganBinaryOperator() 916 std::optional<BinaryOperatorKind> OuterBO) { in flipDemorganSide() 941 BinaryOperatorKind NewOuterBinary, in shouldRemoveParens()
|
H A D | UseStdMinMaxCheck.cpp | 173 const clang::BinaryOperatorKind BinaryOpcode = BinaryOp->getOpcode(); in check()
|
H A D | OperatorsRepresentationCheck.cpp | 40 BinaryOperatorKind, Kind, llvm::StringRef, in AST_MATCHER_P2() argument
|
/llvm-project/clang/include/clang/StaticAnalyzer/Core/PathSensitive/ |
H A D | CheckerHelpers.h | 78 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()
|
/llvm-project/clang-tools-extra/clang-tidy/misc/ |
H A D | RedundantExpressionCheck.cpp | 160 static bool areEquivalentRanges(BinaryOperatorKind OpcodeLHS, in areEquivalentRanges() 162 BinaryOperatorKind OpcodeRHS, in areEquivalentRanges() 180 static bool areExclusiveRanges(BinaryOperatorKind OpcodeLHS, in areExclusiveRanges() 182 BinaryOperatorKind OpcodeRHS, in areExclusiveRanges() 224 static bool rangesFullyCoverDomain(BinaryOperatorKind OpcodeLHS, in rangesFullyCoverDomain() 226 BinaryOperatorKind OpcodeRHS, in rangesFullyCoverDomain() 271 static bool rangeSubsumesRange(BinaryOperatorKind OpcodeLHS, in rangeSubsumesRange() 273 BinaryOperatorKind OpcodeRHS, in rangeSubsumesRange() 306 static void transformSubToCanonicalAddExpr(BinaryOperatorKind &Opcode, in transformSubToCanonicalAddExpr() 559 StringRef Id, BinaryOperatorKind in retrieveBinOpIntegerConstantExpr() [all...] |
/llvm-project/clang/lib/StaticAnalyzer/Checkers/ |
H A D | Iterator.h | 152 bool isAccessOperator(BinaryOperatorKind OK); 155 bool isDereferenceOperator(BinaryOperatorKind OK); 161 bool isRandomIncrOrDecrOperator(BinaryOperatorKind OK);
|
H A D | Iterator.cpp | 136 bool isAccessOperator(BinaryOperatorKind OK) { in isAccessOperator() 149 bool isDereferenceOperator(BinaryOperatorKind OK) { in isDereferenceOperator() 174 bool isRandomIncrOrDecrOperator(BinaryOperatorKind OK) { in isRandomIncrOrDecrOperator()
|
H A D | MallocOverflowSecurityChecker.cpp |
|
H A D | InvalidatedIteratorChecker.cpp | 87 BinaryOperatorKind OK = BO->getOpcode(); in checkPreStmt()
|
H A D | IteratorModeling.cpp | 162 bool isSimpleComparisonOperator(BinaryOperatorKind OK); 266 const BinaryOperatorKind OK = BO->getOpcode(); in checkPostStmt() 769 bool isSimpleComparisonOperator(BinaryOperatorKind OK) { in isSimpleComparisonOperator()
|
H A D | ArrayBoundCheckerV2.cpp | 174 auto EvalBinOp = [&SVB, State, T](BinaryOperatorKind Op, NonLoc L, NonLoc R) { in computeOffset() 328 const BinaryOperatorKind OpKind = CheckEquality ? BO_EQ : BO_LT; in compareValueToThreshold()
|
H A D | PointerArithChecker.cpp | 313 BinaryOperatorKind OpKind = BOp->getOpcode(); in checkPreStmt()
|
H A D | IteratorRangeChecker.cpp | 164 BinaryOperatorKind OK = BO->getOpcode(); in checkPreStmt()
|
/llvm-project/clang/include/clang/AST/ |
H A D | OperationKinds.h | 25 enum BinaryOperatorKind { enum
|
/llvm-project/clang/include/clang/Sema/ |
H A D | SemaPseudoObject.h | 33 BinaryOperatorKind Opcode, Expr *LHS, Expr *RHS);
|
/llvm-project/clang-tools-extra/clangd/refactor/tweaks/ |
H A D | ExtractVariable.cpp | 290 BinaryOperatorKind Kind; 370 BinaryOperatorKind OuterOp = Op.Kind; in getBinaryOperatorRange() 558 if (BinOpExpr->getOpcode() == BinaryOperatorKind::BO_Assign) in computeExtractedExpr()
|
/llvm-project/clang/lib/Sema/ |
H A D | SemaPseudoObject.cpp | 216 BinaryOperatorKind opcode, 289 BinaryOperatorKind opcode, 328 BinaryOperatorKind opcode, 430 BinaryOperatorKind opcode, 464 BinaryOperatorKind nonCompound = in buildAssignmentOperation() 892 BinaryOperatorKind opcode, in buildAssignmentOperation() 1000 BinaryOperatorKind opcode, in buildAssignmentOperation() 1504 BinaryOperatorKind opcode,
|
H A D | SemaTemplateVariadic.cpp | 1467 BinaryOperatorKind Opc = ConvertTokenKindToBinaryOpcode(Operator); 1492 BinaryOperatorKind Operator, 1502 BinaryOperatorKind Operator) {
|
/llvm-project/clang-tools-extra/clang-tidy/utils/ |
H A D | ASTUtils.cpp | 55 if (BO->getOpcode() == BinaryOperatorKind::BO_Or) in exprHasBitFlagWithSpelling()
|
/llvm-project/clang-tools-extra/clang-tidy/bugprone/ |
H A D | StringIntegerAssignmentCheck.cpp | 76 bool handleBinaryOp(clang::BinaryOperatorKind Opcode, const Expr *const LHS, in handleBinaryOp()
|
/llvm-project/clang/lib/StaticAnalyzer/Core/ |
H A D | CheckerContext.cpp | 140 static bool evalComparison(SVal LHSVal, BinaryOperatorKind ComparisonOp, in evalComparison()
|
H A D | CheckerHelpers.cpp | 154 llvm::StringMap<BinaryOperatorKind> BinOps{ in operationKindFromOverloadedOperator()
|
H A D | RangeConstraintManager.cpp | 87 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 RO in getRangeForComparisonSymbol() [all...] |
/llvm-project/clang/unittests/AST/ |
H A D | TypePrinterTest.cpp | 213 Ctx, LHSInt, RHSInt, BinaryOperatorKind::BO_Add, Ctx.UnsignedIntTy, in TEST()
|