| /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 | ContainerDataPointerCheck.cpp | 50 hasOperatorName("*"), in registerMatchers() 54 unaryOperator(hasOperatorName("&"), in registerMatchers() 69 unless(isExpansionInSystemHeader()), hasOperatorName("&"), in registerMatchers()
|
| H A D | RedundantSmartptrGetCheck.cpp | 71 unaryOperator(hasOperatorName("*"), hasUnaryOperand(callToGet(Smartptr))), in registerMatchersForGetArrowStart() 78 unaryOperator(hasOperatorName("!"), hasUnaryOperand(CallToGetAsBool)), in registerMatchersForGetArrowStart()
|
| H A D | RedundantFunctionPtrDereferenceCheck.cpp | 21 traverse(TK_AsIs, unaryOperator(hasOperatorName("*"), in registerMatchers()
|
| /llvm-project-15.0.7/clang-tools-extra/clang-tidy/bugprone/ |
| H A D | SuspiciousStringCompareCheck.cpp | 87 const auto ComparisonUnaryOperator = unaryOperator(hasOperatorName("!")); in registerMatchers() 124 Finder->addMatcher(unaryOperator(hasOperatorName("!"), in registerMatchers() 141 binaryOperator(unless(anyOf(isComparisonOperator(), hasOperatorName("&&"), in registerMatchers() 142 hasOperatorName("||"), hasOperatorName("="))), in registerMatchers() 151 hasOperatorName("-"), in registerMatchers()
|
| H A D | SizeofExpressionCheck.cpp | 141 unaryOperator(hasUnaryOperand(ArrayExpr), unless(hasOperatorName("*"))), in registerMatchers() 148 hasOperatorName("&"), hasUnaryOperand(ignoringParenImpCasts( in registerMatchers() 167 hasOperatorName("/"), hasLHS(ignoringParenImpCasts(sizeOfExpr( in registerMatchers() 192 binaryOperator(hasOperatorName(","))))) in registerMatchers() 209 hasOperatorName("/"), in registerMatchers() 219 Finder->addMatcher(binaryOperator(hasOperatorName("*"), in registerMatchers() 226 binaryOperator(hasOperatorName("*"), in registerMatchers() 229 hasOperatorName("*"), in registerMatchers() 245 hasOperatorName("-"), in registerMatchers() 257 hasOperatorName("*"), in registerMatchers() [all …]
|
| H A D | PosixReturnCheck.cpp | 34 hasOperatorName("<"), in registerMatchers() 43 hasOperatorName(">="), in registerMatchers() 56 hasRHS(unaryOperator(hasOperatorName("-"), 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 | BoolPointerImplicitConversionCheck.cpp | 25 unless(hasParent(unaryOperator(hasOperatorName("!")))), in registerMatchers() 49 if (!match(findAll(unaryOperator(hasOperatorName("*"), in checkImpl()
|
| H A D | MisplacedOperatorInStrlenInAllocCheck.cpp | 31 hasOperatorName("+"), in registerMatchers() 38 hasOperatorName("+"), hasLHS(BadUse), in registerMatchers()
|
| H A D | AssertSideEffectCheck.cpp | 106 unaryOperator(hasOperatorName("!"), in registerMatchers() 108 hasOperatorName("!"), in registerMatchers()
|
| H A D | MisplacedWideningCastCheck.cpp | 33 unaryOperator(hasOperatorName("~"))), in registerMatchers() 48 Finder->addMatcher(binaryOperator(hasOperatorName("="), hasRHS(Cast)), this); in registerMatchers()
|
| H A D | IntegerDivisionCheck.cpp | 35 hasOperatorName("/"), hasLHS(expr(IntType)), in registerMatchers()
|
| /llvm-project-15.0.7/clang-tools-extra/clang-tidy/abseil/ |
| H A D | DurationRewriter.h | 132 anyOf(hasOperatorName(">"), hasOperatorName(">="), hasOperatorName("=="), in AST_MATCHER_FUNCTION_P() 133 hasOperatorName("<="), hasOperatorName("<")), in AST_MATCHER_FUNCTION_P()
|
| H A D | StringFindStrContainsCheck.cpp | 66 binaryOperator(hasOperatorName("=="), in makeRewriteRule() 74 binaryOperator(hasOperatorName("!="), in makeRewriteRule()
|
| H A D | TimeSubtractionCheck.cpp | 114 hasArgument(0, binaryOperator(hasOperatorName("-"), in registerMatchers() 124 binaryOperator(hasOperatorName("-"), hasRHS(TimeInverseMatcher)) in registerMatchers()
|
| H A D | DurationFactoryScaleCheck.cpp | 125 binaryOperator(hasOperatorName("*"), in registerMatchers() 129 binaryOperator(hasOperatorName("/"), hasRHS(floatLiteral())) in registerMatchers()
|
| /llvm-project-15.0.7/clang/lib/StaticAnalyzer/Core/ |
| H A D | LoopUnrolling.cpp | 85 anyOf(hasOperatorName("<"), hasOperatorName(">"), in simpleCondition() 86 hasOperatorName("<="), hasOperatorName(">="), in simpleCondition() 87 hasOperatorName("!=")), in simpleCondition() 99 unaryOperator(anyOf(hasOperatorName("--"), hasOperatorName("++")), in changeIntBoundNode() 126 hasOperatorName("&"), in getAddrTo() 158 anyOf(hasOperatorName("++"), hasOperatorName("--")), in forLoopMatcher()
|
| /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() 295 hasOperatorName("<="), hasOperatorName("<")), in checkASTCodeBody() 310 unaryOperator(allOf(hasOperatorName("!"), in checkASTCodeBody()
|
| H A D | ObjCAutoreleaseWriteChecker.cpp | 185 hasOperatorName("*"), in checkASTCodeBody() 189 hasOperatorName("=") in checkASTCodeBody()
|
| /llvm-project-15.0.7/clang/unittests/ASTMatchers/ |
| H A D | ASTMatchersTraversalTest.cpp | 1650 binaryOperator(hasOperatorName("=")))); in TEST() 1675 binaryOperator(hasOperatorName("^=")))); in TEST() 3196 auto M = binaryOperator(hasOperatorName("!=")); in TEST() 3201 auto M = unaryOperator(hasOperatorName("++")); in TEST() 3922 hasOperatorName("!"), in TEST() 4078 unaryOperator(hasOperatorName("!"), in TEST() 4089 unaryOperator(hasOperatorName("!"), in TEST() 4100 hasOperatorName("<"), in TEST() 4410 binaryOperation(hasOperatorName("!="), in TEST() 4418 binaryOperation(hasOperatorName("=="), in TEST() [all …]
|
| /llvm-project-15.0.7/clang-tools-extra/clang-tidy/objc/ |
| H A D | AssertEquals.cpp | 33 binaryOperator(anyOf(hasOperatorName("!="), hasOperatorName("==")), in registerMatchers()
|
| /llvm-project-15.0.7/clang-tools-extra/clang-tidy/misc/ |
| H A D | UnconventionalAssignOperatorCheck.cpp | 56 anyOf(unaryOperator(hasOperatorName("*"), hasUnaryOperand(cxxThisExpr())), in registerMatchers() 63 0, unaryOperator(hasOperatorName("*"), in registerMatchers()
|
| /llvm-project-15.0.7/clang-tools-extra/clang-tidy/modernize/ |
| H A D | LoopConvertCheck.cpp | 89 anyOf(allOf(hasOperatorName("<"), hasLHS(integerComparisonMatcher()), in arrayConditionMatcher() 91 allOf(hasOperatorName(">"), hasLHS(LimitExpr), in arrayConditionMatcher() 93 allOf(hasOperatorName("!="), in arrayConditionMatcher() 117 unaryOperator(hasOperatorName("++"), in makeArrayLoopMatcher() 204 hasOperatorName("!="), hasOperands(IteratorComparisonMatcher, in makeIteratorLoopMatcher() 207 unaryOperator(hasOperatorName("++"), in makeIteratorLoopMatcher() 294 unaryOperator(hasOperatorName("++"), in makePseudoArrayLoopMatcher()
|
| /llvm-project-15.0.7/clang/docs/ |
| H A D | LibASTMatchersTutorial.rst | 197 binaryOperator(hasOperatorName("+"), hasLHS(integerLiteral(equals(0)))) 355 hasIncrement(unaryOperator(hasOperatorName("++"))) 366 hasOperatorName("++"), 375 hasOperatorName("++"), 384 hasOperatorName("++"), 402 hasCondition(binaryOperator(hasOperatorName("<"))) 410 hasOperatorName("<"), 447 hasOperatorName("<"), 491 hasOperatorName("++"), 495 hasOperatorName("<"),
|