Home
last modified time | relevance | path

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

123

/llvm-project/clang-tools-extra/clang-tidy/readability/
H A DContainerSizeEmptyCheck.cpp264 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 DSimplifyBooleanExprCheck.cpp57 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 DUseStdMinMaxCheck.cpp173 const clang::BinaryOperatorKind BinaryOpcode = BinaryOp->getOpcode(); in check()
H A DOperatorsRepresentationCheck.cpp40 BinaryOperatorKind, Kind, llvm::StringRef, in AST_MATCHER_P2() argument
/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()
/llvm-project/clang-tools-extra/clang-tidy/misc/
H A DRedundantExpressionCheck.cpp160 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 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.cpp
H A DInvalidatedIteratorChecker.cpp87 BinaryOperatorKind OK = BO->getOpcode(); in checkPreStmt()
H A DIteratorModeling.cpp162 bool isSimpleComparisonOperator(BinaryOperatorKind OK);
266 const BinaryOperatorKind OK = BO->getOpcode(); in checkPostStmt()
769 bool isSimpleComparisonOperator(BinaryOperatorKind OK) { in isSimpleComparisonOperator()
H A DArrayBoundCheckerV2.cpp174 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 DPointerArithChecker.cpp313 BinaryOperatorKind OpKind = BOp->getOpcode(); in checkPreStmt()
H A DIteratorRangeChecker.cpp164 BinaryOperatorKind OK = BO->getOpcode(); in checkPreStmt()
/llvm-project/clang/include/clang/AST/
H A DOperationKinds.h25 enum BinaryOperatorKind { enum
/llvm-project/clang/include/clang/Sema/
H A DSemaPseudoObject.h33 BinaryOperatorKind Opcode, Expr *LHS, Expr *RHS);
/llvm-project/clang-tools-extra/clangd/refactor/tweaks/
H A DExtractVariable.cpp290 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 DSemaPseudoObject.cpp216 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 DSemaTemplateVariadic.cpp1467 BinaryOperatorKind Opc = ConvertTokenKindToBinaryOpcode(Operator);
1492 BinaryOperatorKind Operator,
1502 BinaryOperatorKind Operator) {
/llvm-project/clang-tools-extra/clang-tidy/utils/
H A DASTUtils.cpp55 if (BO->getOpcode() == BinaryOperatorKind::BO_Or) in exprHasBitFlagWithSpelling()
/llvm-project/clang-tools-extra/clang-tidy/bugprone/
H A DStringIntegerAssignmentCheck.cpp76 bool handleBinaryOp(clang::BinaryOperatorKind Opcode, const Expr *const LHS, in handleBinaryOp()
/llvm-project/clang/lib/StaticAnalyzer/Core/
H A DCheckerContext.cpp140 static bool evalComparison(SVal LHSVal, BinaryOperatorKind ComparisonOp, in evalComparison()
H A DCheckerHelpers.cpp154 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 RO in getRangeForComparisonSymbol()
[all...]
/llvm-project/clang/unittests/AST/
H A DTypePrinterTest.cpp213 Ctx, LHSInt, RHSInt, BinaryOperatorKind::BO_Add, Ctx.UnsignedIntTy, in TEST()

123