| /llvm-project-15.0.7/clang-tools-extra/clang-tidy/readability/ |
| H A D | ContainerContainsCheck.cpp | 57 binaryOperator(hasLHS(CountCall), hasOperatorName("!="), hasRHS(Literal0)) in registerMatchers() 60 binaryOperator(hasLHS(Literal0), hasOperatorName("!="), hasRHS(CountCall)) in registerMatchers() 63 binaryOperator(hasLHS(CountCall), hasOperatorName(">"), hasRHS(Literal0)) in registerMatchers() 66 binaryOperator(hasLHS(Literal0), hasOperatorName("<"), hasRHS(CountCall)) in registerMatchers() 69 binaryOperator(hasLHS(CountCall), hasOperatorName(">="), hasRHS(Literal1)) in registerMatchers() 72 binaryOperator(hasLHS(Literal1), hasOperatorName("<="), hasRHS(CountCall)) in registerMatchers() 77 binaryOperator(hasLHS(CountCall), hasOperatorName("=="), hasRHS(Literal0)) in registerMatchers() 89 binaryOperator(hasLHS(CountCall), hasOperatorName("<"), hasRHS(Literal1)) in registerMatchers() 92 binaryOperator(hasLHS(Literal1), hasOperatorName(">"), hasRHS(CountCall)) in registerMatchers() 97 binaryOperator(hasLHS(FindCall), hasOperatorName("!="), hasRHS(EndCall)) in registerMatchers() [all …]
|
| H A D | ImplicitBoolConversionCheck.cpp | 277 binaryOperator(hasOperatorName("^"), hasLHS(ImplicitCastFromBool), in registerMatchers() 301 auto BoolComparison = binaryOperator(hasAnyOperatorName("==", "!="), in registerMatchers() 304 auto BoolOpAssignment = binaryOperator(hasAnyOperatorName("|=", "&="), in registerMatchers() 306 auto BitfieldAssignment = binaryOperator( in registerMatchers() 321 binaryOperator(anyOf(BoolComparison, BoolXor, in registerMatchers()
|
| /llvm-project-15.0.7/clang-tools-extra/clang-tidy/bugprone/ |
| H A D | SizeofExpressionCheck.cpp | 89 binaryOperator(hasLHS(IntegerExpr), hasRHS(IntegerExpr)))); in registerMatchers() 142 binaryOperator(hasEitherOperand(ArrayExpr)), in registerMatchers() 166 expr(hasParent(expr(ignoringParenImpCasts(binaryOperator( in registerMatchers() 182 binaryOperator(matchers::isRelationalOperator(), in registerMatchers() 208 binaryOperator( in registerMatchers() 219 Finder->addMatcher(binaryOperator(hasOperatorName("*"), in registerMatchers() 226 binaryOperator(hasOperatorName("*"), in registerMatchers() 244 const auto PtrDiffExpr = binaryOperator( in registerMatchers() 252 binaryOperator( in registerMatchers() 256 ignoringParenImpCasts(binaryOperator( in registerMatchers() [all …]
|
| H A D | MisplacedPointerArithmeticInAllocCheck.cpp | 31 const auto AdditiveOperator = binaryOperator(hasAnyOperatorName("+", "-")); in registerMatchers() 38 binaryOperator( in registerMatchers() 47 Finder->addMatcher(binaryOperator(AdditiveOperator, in registerMatchers() 55 Finder->addMatcher(binaryOperator(AdditiveOperator, in registerMatchers()
|
| H A D | SuspiciousStringCompareCheck.cpp | 88 const auto ComparisonBinaryOperator = binaryOperator(isComparisonOperator()); in registerMatchers() 115 binaryOperator(hasAnyOperatorName("&&", "||"), in registerMatchers() 141 binaryOperator(unless(anyOf(isComparisonOperator(), hasOperatorName("&&"), in registerMatchers() 156 binaryOperator(isComparisonOperator(), in registerMatchers()
|
| H A D | PosixReturnCheck.cpp | 33 binaryOperator( in registerMatchers() 42 binaryOperator( in registerMatchers() 51 binaryOperator( in registerMatchers()
|
| H A D | TooSmallLoopVariableCheck.cpp | 82 binaryOperator(hasOperatorName("<"), in registerMatchers() 85 binaryOperator(hasOperatorName("<="), in registerMatchers() 88 binaryOperator(hasOperatorName(">"), hasLHS(LoopBoundMatcher), in registerMatchers() 90 binaryOperator(hasOperatorName(">="), hasLHS(LoopBoundMatcher), in registerMatchers()
|
| H A D | SuspiciousEnumUsageCheck.cpp | 125 binaryOperator( in registerMatchers() 133 binaryOperator(hasAnyOperatorName("+", "|"), in registerMatchers() 140 binaryOperator( in registerMatchers() 146 Finder->addMatcher(binaryOperator(hasAnyOperatorName("|=", "+="), in registerMatchers()
|
| H A D | IntegerDivisionCheck.cpp | 22 const auto BinaryOperators = binaryOperator( in registerMatchers() 34 binaryOperator( in registerMatchers()
|
| H A D | MisplacedWideningCastCheck.cpp | 32 expr(anyOf(binaryOperator(hasAnyOperatorName("+", "-", "*", "<<")), in registerMatchers() 48 Finder->addMatcher(binaryOperator(hasOperatorName("="), hasRHS(Cast)), this); in registerMatchers() 50 binaryOperator(isComparisonOperator(), hasEitherOperand(Cast)), this); in registerMatchers()
|
| H A D | MisplacedOperatorInStrlenInAllocCheck.cpp | 30 binaryOperator( in registerMatchers() 37 allOf(unless(binaryOperator( in registerMatchers()
|
| H A D | SignedCharMisuseCheck.cpp | 82 expr(binaryOperator(hasOperatorName("="), hasLHS(hasType(IntegerType)), in registerMatchers() 96 expr(binaryOperator(hasAnyOperatorName("==", "!="), in registerMatchers()
|
| H A D | AssignmentInIfConditionCheck.cpp | 21 binaryOperator(isAssignmentOperator()) in registerMatchers()
|
| /llvm-project-15.0.7/clang-tools-extra/clang-tidy/android/ |
| H A D | ComparisonInTempFailureRetryCheck.cpp | 49 binaryOperator(hasOperatorName("="), in registerMatchers() 51 binaryOperator(isComparisonOperator()).bind("inner")))) in registerMatchers()
|
| /llvm-project-15.0.7/clang-tools-extra/clang-tidy/hicpp/ |
| H A D | SignedBitwiseCheck.cpp | 51 binaryOperator(hasAnyOperatorName("^", "|", "&", "^=", "|=", "&="), in registerMatchers() 63 binaryOperator(hasAnyOperatorName("<<", ">>", "<<=", ">>="), in registerMatchers()
|
| /llvm-project-15.0.7/clang/unittests/ASTMatchers/ |
| H A D | ASTMatchersTraversalTest.cpp | 1632 StatementMatcher HasOperands = binaryOperator( in TEST() 1650 binaryOperator(hasOperatorName("=")))); in TEST() 1675 binaryOperator(hasOperatorName("^=")))); in TEST() 1680 binaryOperator(hasOperatorName("%=")))); in TEST() 1740 binaryOperator())); in TEST() 3196 auto M = binaryOperator(hasOperatorName("!=")); in TEST() 4099 auto M = binaryOperator( in TEST() 4907 binaryOperator(forEach( in TEST() 4913 binaryOperator( in TEST() 5731 binaryOperator(forCallable(blockDecl())))); in TEST() [all …]
|
| H A D | ASTMatchersNarrowingTest.cpp | 588 mapAnyOf(binaryOperator, cxxOperatorCallExpr) in TEST_P() 597 mapAnyOf(binaryOperator, cxxOperatorCallExpr) in TEST_P() 606 mapAnyOf(binaryOperator, cxxOperatorCallExpr) in TEST_P() 614 mapAnyOf(binaryOperator, cxxOperatorCallExpr) in TEST_P() 624 mapAnyOf(binaryOperator, cxxOperatorCallExpr) in TEST_P() 634 mapAnyOf(binaryOperator, cxxOperatorCallExpr) in TEST_P() 646 mapAnyOf(binaryOperator, cxxOperatorCallExpr) in TEST_P() 658 mapAnyOf(binaryOperator, cxxOperatorCallExpr) in TEST_P() 670 mapAnyOf(binaryOperator, cxxOperatorCallExpr) in TEST_P() 680 mapAnyOf(binaryOperator, cxxOperatorCallExpr) in TEST_P() [all …]
|
| /llvm-project-15.0.7/clang-tools-extra/clang-tidy/misc/ |
| H A D | RedundantExpressionCheck.cpp | 543 expr(anyOf(binaryOperator(hasAnyOperatorName("+", "|", "&"), in matchBinOpIntegerConstantExpr() 546 binaryOperator(hasOperatorName("-"), in matchBinOpIntegerConstantExpr() 576 const auto RelationalExpr = ignoringParenImpCasts(binaryOperator( in matchRelationalIntegerConstantExpr() 865 binaryOperator( in registerMatchers() 883 binaryOperator(hasAnyOperatorName("|", "&", "||", "&&", "^"), in registerMatchers() 945 binaryOperator( in registerMatchers() 947 hasOperands(ignoringParenImpCasts(binaryOperator( in registerMatchers() 969 traverse(TK_AsIs, binaryOperator(isComparisonOperator(), in registerMatchers() 978 binaryOperator(isComparisonOperator(), in registerMatchers() 987 binaryOperator(isComparisonOperator(), hasLHS(BinOpCstLeft), in registerMatchers() [all …]
|
| H A D | StaticAssertCheck.cpp | 40 binaryOperator( in registerMatchers() 43 anyOf(binaryOperator(hasEitherOperand(IsAlwaysFalseWithCast)), in registerMatchers()
|
| /llvm-project-15.0.7/clang-tools-extra/clang-tidy/abseil/ |
| H A D | StringFindStrContainsCheck.cpp | 66 binaryOperator(hasOperatorName("=="), in makeRewriteRule() 74 binaryOperator(hasOperatorName("!="), in makeRewriteRule()
|
| H A D | StringFindStartswithCheck.cpp | 52 binaryOperator( in registerMatchers() 71 binaryOperator( in registerMatchers()
|
| H A D | TimeSubtractionCheck.cpp | 114 hasArgument(0, binaryOperator(hasOperatorName("-"), in registerMatchers() 124 binaryOperator(hasOperatorName("-"), hasRHS(TimeInverseMatcher)) in registerMatchers()
|
| /llvm-project-15.0.7/clang-tools-extra/clang-tidy/cppcoreguidelines/ |
| H A D | NarrowingConversionsCheck.cpp | 88 binaryOperator(hasOperands(IsConversionFromIgnoredType, in registerMatchers() 156 binaryOperator( in registerMatchers() 162 ? binaryOperator() in registerMatchers() 163 : binaryOperator(unless(isInTemplateInstantiation())), in registerMatchers() 165 ? binaryOperator() in registerMatchers() 166 : binaryOperator(unless(hasRHS(IsIgnoredTypeTwoLevelsDeep))), in registerMatchers()
|
| /llvm-project-15.0.7/clang/lib/StaticAnalyzer/Checkers/ |
| H A D | NumberObjectConversionChecker.cpp | 268 binaryOperator(allOf(hasOperatorName("="), in checkASTCodeBody() 287 binaryOperator(allOf(anyOf(hasOperatorName("=="), hasOperatorName("!=")), in checkASTCodeBody() 294 binaryOperator(allOf(anyOf(hasOperatorName(">="), hasOperatorName(">"), in checkASTCodeBody()
|
| H A D | GCDAntipatternChecker.cpp | 100 forEachDescendant(binaryOperator(bindAssignmentToDecl(SemaphoreBinding), in findGCDAntiPatternWithSemaphore() 142 forEachDescendant(binaryOperator(bindAssignmentToDecl(GroupBinding), in findGCDAntiPatternWithGroup()
|