Home
last modified time | relevance | path

Searched refs:hasRHS (Results 1 – 25 of 45) sorted by relevance

12

/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 DMisplacedArrayIndexCheck.cpp24 hasRHS(hasType(isAnyPointer()))) in registerMatchers()
H A DImplicitBoolConversionCheck.cpp278 hasRHS(ImplicitCastFromBool)); in registerMatchers()
303 hasRHS(ImplicitCastFromBool)); in registerMatchers()
H A DContainerDataPointerCheck.cpp76 arraySubscriptExpr(hasLHS(ContainerExpr), hasRHS(Zero)))))) in registerMatchers()
/llvm-project-15.0.7/clang-tools-extra/clang-tidy/bugprone/
H A DPosixReturnCheck.cpp38 hasRHS(integerLiteral(equals(0)))) in registerMatchers()
47 hasRHS(integerLiteral(equals(0)))) in registerMatchers()
56 hasRHS(unaryOperator(hasOperatorName("-"), in registerMatchers()
H A DTooSmallLoopVariableCheck.cpp84 hasRHS(LoopBoundMatcher)), in registerMatchers()
87 hasRHS(LoopBoundMatcher)), in registerMatchers()
89 hasRHS(LoopVarConversionMatcher)), in registerMatchers()
91 hasRHS(LoopVarConversionMatcher)))), in registerMatchers()
H A DMisplacedPointerArithmeticInAllocCheck.cpp41 hasRHS(IntExpr)) in registerMatchers()
49 hasRHS(IntExpr)) in registerMatchers()
57 hasRHS(IntExpr)) in registerMatchers()
H A DIncorrectRoundingsCheck.cpp48 auto OneSideHalf = anyOf(allOf(hasLHS(FloatOrCastHalf), hasRHS(FloatType)), in registerMatchers()
49 allOf(hasRHS(FloatOrCastHalf), hasLHS(FloatType))); in registerMatchers()
H A DSignedCharMisuseCheck.cpp83 hasRHS(SignedCharCastExpr))); in registerMatchers()
98 hasRHS(UnSignedCharCastExpr)), in registerMatchers()
100 hasRHS(SignedCharCastExpr))))) in registerMatchers()
H A DSizeofExpressionCheck.cpp89 binaryOperator(hasLHS(IntegerExpr), hasRHS(IntegerExpr)))); in registerMatchers()
213 hasRHS(ignoringParenImpCasts(sizeOfExpr( in registerMatchers()
221 hasRHS(ignoringParenImpCasts(SizeOfExpr))) in registerMatchers()
248 hasRHS(hasType(hasUnqualifiedDesugaredType(pointerType(pointee( in registerMatchers()
265 hasRHS(ignoringParenImpCasts(SizeOfExpr))) in registerMatchers()
H A DSuspiciousEnumUsageCheck.cpp127 hasRHS(hasType(enumDecl(unless(equalsBoundNode("enumDecl"))) in registerMatchers()
135 hasRHS(expr(hasType(enumDecl(equalsBoundNode("enumDecl")))) in registerMatchers()
147 hasRHS(EnumExpr("enumExpr", "enumDecl"))), in registerMatchers()
H A DMisplacedOperatorInStrlenInAllocCheck.cpp32 hasRHS(ignoringParenImpCasts(integerLiteral(equals(1))))) in registerMatchers()
39 hasRHS(ignoringParenImpCasts(integerLiteral(equals(1)))))), in registerMatchers()
H A DSizeofContainerCheck.cpp33 hasRHS(ignoringParenCasts(equalsBoundNode("sizeof"))))))), in registerMatchers()
H A DIntegerDivisionCheck.cpp36 hasRHS(expr(IntType)), in registerMatchers()
/llvm-project-15.0.7/clang-tools-extra/clang-tidy/hicpp/
H A DSignedBitwiseCheck.cpp53 unless(allOf(hasLHS(IsStdBitmask), hasRHS(IsStdBitmask))), in registerMatchers()
56 hasLHS(hasType(isInteger())), hasRHS(hasType(isInteger()))) in registerMatchers()
65 hasLHS(hasType(isInteger())), hasRHS(hasType(isInteger()))) in registerMatchers()
/llvm-project-15.0.7/clang-tools-extra/clang-tidy/misc/
H A DRedundantExpressionCheck.cpp548 hasRHS(matchIntegerConstantExpr(Id))))) in matchBinOpIntegerConstantExpr()
579 hasRHS(matchIntegerConstantExpr(Id))), in matchRelationalIntegerConstantExpr()
581 hasRHS(matchSymbolicExpr(Id)), expr().bind(SwapId))))); in matchRelationalIntegerConstantExpr()
608 hasRHS(ignoringParenImpCasts(integerLiteral().bind(ConstId))))) in matchRelationalIntegerConstantExpr()
938 hasRHS(integerLiteral()))))) in registerMatchers()
949 hasRHS(ignoringParenImpCasts( in registerMatchers()
979 anyOf(allOf(hasLHS(BinOpCstLeft), hasRHS(SymRight)), in registerMatchers()
980 allOf(hasLHS(SymRight), hasRHS(BinOpCstLeft)))) in registerMatchers()
988 hasRHS(BinOpCstRight), in registerMatchers()
1004 hasLHS(ComparisonLeft), hasRHS(ComparisonRight), in registerMatchers()
/llvm-project-15.0.7/clang/lib/StaticAnalyzer/Checkers/
H A DGCDAntipatternChecker.cpp101 hasRHS(SemaphoreCreateM)))); in findGCDAntiPatternWithSemaphore()
143 hasRHS(DispatchGroupCreateM)))); in findGCDAntiPatternWithGroup()
/llvm-project-15.0.7/clang-tools-extra/clang-tidy/cppcoreguidelines/
H A DOwningMemoryCheck.cpp89 hasRHS(unless(ConsideredOwner))) in registerMatchers()
121 hasRHS(CreatesOwner)) in registerMatchers()
H A DNarrowingConversionsCheck.cpp159 hasRHS(expr(hasType(hasUnqualifiedDesugaredType(builtinType())))), in registerMatchers()
160 unless(hasRHS(IsCeilFloorCallExpr)), in registerMatchers()
166 : binaryOperator(unless(hasRHS(IsIgnoredTypeTwoLevelsDeep))), in registerMatchers()
/llvm-project-15.0.7/clang-tools-extra/clang-tidy/objc/
H A DAssertEquals.cpp37 hasRHS(hasType(qualType( in registerMatchers()
/llvm-project-15.0.7/clang-tools-extra/clang-tidy/altera/
H A DIdDependentBackwardBranchCheck.cpp37 isAssignmentOperator(), hasRHS(ThreadID), in registerMatchers()
56 allOf(isAssignmentOperator(), hasRHS(RefVarOrField), in registerMatchers()
/llvm-project-15.0.7/clang-tools-extra/clang-tidy/android/
H A DComparisonInTempFailureRetryCheck.cpp50 hasRHS(ignoringParenCasts( in registerMatchers()
/llvm-project-15.0.7/clang/unittests/ASTMatchers/
H A DASTMatchersTraversalTest.cpp1530 hasRHS(cxxBoolLiteral(equals(false)))); in TEST()
1582 hasRHS(s2Expr))))); in TEST()
1604 hasRHS(s2Expr))))); in TEST()
3995 hasRHS(ignoringImplicit( in TEST()
4103 hasRHS(integerLiteral(equals(0)))); in TEST()
4154 hasRHS(ignoringImplicit( in TEST()
4185 hasRHS(ignoringImplicit( in TEST()
4216 hasRHS(ignoringImplicit( in TEST()
4247 hasRHS(ignoringImplicit( in TEST()
4278 hasRHS(ignoringImplicit( in TEST()
[all …]
/llvm-project-15.0.7/clang-tools-extra/clang-tidy/llvm/
H A DPreferIsaOrDynCastInConditionalsCheck.cpp64 hasRHS(anyOf(implicitCastExpr(has(CallExpression)), in registerMatchers()
/llvm-project-15.0.7/clang-tools-extra/clang-tidy/abseil/
H A DTimeSubtractionCheck.cpp124 binaryOperator(hasOperatorName("-"), hasRHS(TimeInverseMatcher)) in registerMatchers()

12