Home
last modified time | relevance | path

Searched refs:hasOperatorName (Results 1 – 25 of 64) sorted by relevance

123

/llvm-project-15.0.7/clang-tools-extra/clang-tidy/readability/
H A DContainerContainsCheck.cpp57 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 DContainerDataPointerCheck.cpp50 hasOperatorName("*"), in registerMatchers()
54 unaryOperator(hasOperatorName("&"), in registerMatchers()
69 unless(isExpansionInSystemHeader()), hasOperatorName("&"), in registerMatchers()
H A DRedundantSmartptrGetCheck.cpp71 unaryOperator(hasOperatorName("*"), hasUnaryOperand(callToGet(Smartptr))), in registerMatchersForGetArrowStart()
78 unaryOperator(hasOperatorName("!"), hasUnaryOperand(CallToGetAsBool)), in registerMatchersForGetArrowStart()
H A DRedundantFunctionPtrDereferenceCheck.cpp21 traverse(TK_AsIs, unaryOperator(hasOperatorName("*"), in registerMatchers()
/llvm-project-15.0.7/clang-tools-extra/clang-tidy/bugprone/
H A DSuspiciousStringCompareCheck.cpp87 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 DSizeofExpressionCheck.cpp141 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 DPosixReturnCheck.cpp34 hasOperatorName("<"), in registerMatchers()
43 hasOperatorName(">="), in registerMatchers()
56 hasRHS(unaryOperator(hasOperatorName("-"), in registerMatchers()
H A DTooSmallLoopVariableCheck.cpp82 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 DBoolPointerImplicitConversionCheck.cpp25 unless(hasParent(unaryOperator(hasOperatorName("!")))), in registerMatchers()
49 if (!match(findAll(unaryOperator(hasOperatorName("*"), in checkImpl()
H A DMisplacedOperatorInStrlenInAllocCheck.cpp31 hasOperatorName("+"), in registerMatchers()
38 hasOperatorName("+"), hasLHS(BadUse), in registerMatchers()
H A DAssertSideEffectCheck.cpp106 unaryOperator(hasOperatorName("!"), in registerMatchers()
108 hasOperatorName("!"), in registerMatchers()
H A DMisplacedWideningCastCheck.cpp33 unaryOperator(hasOperatorName("~"))), in registerMatchers()
48 Finder->addMatcher(binaryOperator(hasOperatorName("="), hasRHS(Cast)), this); in registerMatchers()
H A DIntegerDivisionCheck.cpp35 hasOperatorName("/"), hasLHS(expr(IntType)), in registerMatchers()
/llvm-project-15.0.7/clang-tools-extra/clang-tidy/abseil/
H A DDurationRewriter.h132 anyOf(hasOperatorName(">"), hasOperatorName(">="), hasOperatorName("=="), in AST_MATCHER_FUNCTION_P()
133 hasOperatorName("<="), hasOperatorName("<")), in AST_MATCHER_FUNCTION_P()
H A DStringFindStrContainsCheck.cpp66 binaryOperator(hasOperatorName("=="), in makeRewriteRule()
74 binaryOperator(hasOperatorName("!="), in makeRewriteRule()
H A DTimeSubtractionCheck.cpp114 hasArgument(0, binaryOperator(hasOperatorName("-"), in registerMatchers()
124 binaryOperator(hasOperatorName("-"), hasRHS(TimeInverseMatcher)) in registerMatchers()
H A DDurationFactoryScaleCheck.cpp125 binaryOperator(hasOperatorName("*"), in registerMatchers()
129 binaryOperator(hasOperatorName("/"), hasRHS(floatLiteral())) in registerMatchers()
/llvm-project-15.0.7/clang/lib/StaticAnalyzer/Core/
H A DLoopUnrolling.cpp85 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 DNumberObjectConversionChecker.cpp268 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 DObjCAutoreleaseWriteChecker.cpp185 hasOperatorName("*"), in checkASTCodeBody()
189 hasOperatorName("=") in checkASTCodeBody()
/llvm-project-15.0.7/clang/unittests/ASTMatchers/
H A DASTMatchersTraversalTest.cpp1650 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 DAssertEquals.cpp33 binaryOperator(anyOf(hasOperatorName("!="), hasOperatorName("==")), in registerMatchers()
/llvm-project-15.0.7/clang-tools-extra/clang-tidy/misc/
H A DUnconventionalAssignOperatorCheck.cpp56 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 DLoopConvertCheck.cpp89 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 DLibASTMatchersTutorial.rst197 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("<"),

123