Home
last modified time | relevance | path

Searched refs:hasLHS (Results 1 – 25 of 47) 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 DImplicitBoolConversionCheck.cpp277 binaryOperator(hasOperatorName("^"), hasLHS(ImplicitCastFromBool), in registerMatchers()
302 hasLHS(ImplicitCastFromBool), in registerMatchers()
305 hasLHS(expr(hasType(booleanType())))); in registerMatchers()
307 hasLHS(memberExpr(hasDeclaration(fieldDecl(hasBitWidth(1)))))); in registerMatchers()
H A DMisplacedArrayIndexCheck.cpp23 traverse(TK_AsIs, arraySubscriptExpr(hasLHS(hasType(isInteger())), in registerMatchers()
/llvm-project-15.0.7/clang-tools-extra/clang-tidy/bugprone/
H A DPosixReturnCheck.cpp35 hasLHS(callExpr(callee(functionDecl( in registerMatchers()
44 hasLHS(callExpr(callee(functionDecl( in registerMatchers()
53 hasLHS(callExpr(callee(functionDecl( in registerMatchers()
H A DTooSmallLoopVariableCheck.cpp83 hasLHS(LoopVarConversionMatcher), in registerMatchers()
86 hasLHS(LoopVarConversionMatcher), in registerMatchers()
88 binaryOperator(hasOperatorName(">"), hasLHS(LoopBoundMatcher), in registerMatchers()
90 binaryOperator(hasOperatorName(">="), hasLHS(LoopBoundMatcher), in registerMatchers()
H A DMisplacedPointerArithmeticInAllocCheck.cpp40 hasLHS(anyOf(AllocCall, castExpr(hasSourceExpression(AllocCall)))), in registerMatchers()
48 hasLHS(anyOf(New, castExpr(New))), in registerMatchers()
56 hasLHS(anyOf(ArrayNew, castExpr(ArrayNew))), in registerMatchers()
H A DSizeofExpressionCheck.cpp89 binaryOperator(hasLHS(IntegerExpr), hasRHS(IntegerExpr)))); in registerMatchers()
167 hasOperatorName("/"), hasLHS(ignoringParenImpCasts(sizeOfExpr( in registerMatchers()
210 hasLHS(ignoringParenImpCasts(sizeOfExpr(hasArgumentOfType( in registerMatchers()
220 hasLHS(ignoringParenImpCasts(SizeOfExpr)), in registerMatchers()
246 hasLHS(hasType(hasUnqualifiedDesugaredType(pointerType(pointee( in registerMatchers()
264 hasLHS(ignoringParenImpCasts(PtrDiffExpr)), 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.cpp82 expr(binaryOperator(hasOperatorName("="), hasLHS(hasType(IntegerType)), in registerMatchers()
97 anyOf(allOf(hasLHS(SignedCharCastExpr), in registerMatchers()
99 allOf(hasLHS(UnSignedCharCastExpr), in registerMatchers()
H A DSuspiciousEnumUsageCheck.cpp126 hasOperatorName("|"), hasLHS(hasType(enumDecl().bind("enumDecl"))), in registerMatchers()
134 hasLHS(EnumExpr("lhsExpr", "enumDecl")), in registerMatchers()
H A DSizeofContainerCheck.cpp32 hasLHS(ignoringParenCasts(sizeOfExpr(expr()))), in registerMatchers()
H A DIntegerDivisionCheck.cpp35 hasOperatorName("/"), hasLHS(expr(IntType)), in registerMatchers()
H A DMisplacedOperatorInStrlenInAllocCheck.cpp38 hasOperatorName("+"), hasLHS(BadUse), 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/cert/
H A DMutatingCopyCheck.cpp33 TK_AsIs, binaryOperation(hasOperatorName("="), hasLHS(IsPartOfSource)) in registerMatchers()
42 binaryOperation(isAssignmentOperator(), hasLHS(IsPartOfSelf)); in registerMatchers()
/llvm-project-15.0.7/clang-tools-extra/clang-tidy/misc/
H A DRedundantExpressionCheck.cpp547 hasLHS(matchSymbolicExpr(Id)), in matchBinOpIntegerConstantExpr()
578 anyOf(allOf(hasLHS(matchSymbolicExpr(Id)), in matchRelationalIntegerConstantExpr()
580 allOf(hasLHS(matchIntegerConstantExpr(Id)), in matchRelationalIntegerConstantExpr()
607 anyOf(hasLHS(ignoringParenImpCasts(integerLiteral().bind(ConstId))), in matchRelationalIntegerConstantExpr()
875 unless(hasLHS(AnyLiteralExpr)), in registerMatchers()
935 hasLHS(anyOf( in registerMatchers()
979 anyOf(allOf(hasLHS(BinOpCstLeft), hasRHS(SymRight)), in registerMatchers()
980 allOf(hasLHS(SymRight), hasRHS(BinOpCstLeft)))) in registerMatchers()
987 binaryOperator(isComparisonOperator(), hasLHS(BinOpCstLeft), in registerMatchers()
1004 hasLHS(ComparisonLeft), hasRHS(ComparisonRight), in registerMatchers()
/llvm-project-15.0.7/clang-tools-extra/clang-tidy/cppcoreguidelines/
H A DProBoundsPointerArithmeticCheck.cpp33 unless(hasLHS(ignoringImpCasts(declRefExpr(to(isImplicit())))))) in registerMatchers()
H A DOwningMemoryCheck.cpp88 binaryOperator(isAssignmentOperator(), hasLHS(IsOwnerType), in registerMatchers()
120 hasLHS(unless(IsOwnerType)), in registerMatchers()
/llvm-project-15.0.7/clang-tools-extra/clang-tidy/abseil/
H A DDurationSubtractionCheck.cpp25 hasLHS(callExpr(callee(functionDecl(DurationConversionFunction()) in registerMatchers()
/llvm-project-15.0.7/clang-tools-extra/clang-tidy/objc/
H A DAssertEquals.cpp35 anyOf(hasLHS(hasType(qualType( in registerMatchers()
/llvm-project-15.0.7/clang/unittests/Analysis/FlowSensitive/
H A DSingleVarConstantPropagationTest.cpp131 binaryOperator(hasOperatorName("="), hasLHS(refToVar()), in transfer()
134 binaryOperator(isAssignmentOperator(), hasLHS(refToVar())) in transfer()
H A DMultiVarConstantPropagationTest.cpp143 binaryOperator(hasOperatorName("="), hasLHS(refToVar()), in transfer()
146 binaryOperator(isAssignmentOperator(), hasLHS(refToVar())) in transfer()
/llvm-project-15.0.7/clang-tools-extra/clang-tidy/altera/
H A DIdDependentBackwardBranchCheck.cpp38 hasLHS(anyOf( in registerMatchers()
57 hasLHS(anyOf( in registerMatchers()
/llvm-project-15.0.7/clang/unittests/ASTMatchers/
H A DASTMatchersTraversalTest.cpp1529 binaryOperator(hasLHS(cxxBoolLiteral(equals(true))), in TEST()
1537 hasLHS(hasType(isInteger())), in TEST()
3978 hasLHS(expr(hasParent(cxxRewrittenBinaryOperator()))), in TEST()
3993 hasLHS(ignoringImplicit( in TEST()
4101 hasLHS(hasDescendant(cxxOperatorCallExpr( in TEST()
4152 hasLHS(ignoringImplicit( in TEST()
4183 hasLHS(ignoringImplicit( in TEST()
4214 hasLHS(ignoringImplicit( in TEST()
4245 hasLHS(ignoringImplicit( in TEST()
4276 hasLHS(ignoringImplicit( in TEST()
[all …]
/llvm-project-15.0.7/clang/lib/StaticAnalyzer/Core/
H A DLoopUnrolling.cpp103 hasLHS(ignoringParenImpCasts( in changeIntBoundNode()
151 binaryOperator(hasLHS(declRefExpr(to(varDecl( in forLoopMatcher()

12