| /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() 302 hasLHS(ImplicitCastFromBool), in registerMatchers() 305 hasLHS(expr(hasType(booleanType())))); in registerMatchers() 307 hasLHS(memberExpr(hasDeclaration(fieldDecl(hasBitWidth(1)))))); in registerMatchers()
|
| H A D | MisplacedArrayIndexCheck.cpp | 23 traverse(TK_AsIs, arraySubscriptExpr(hasLHS(hasType(isInteger())), in registerMatchers()
|
| /llvm-project-15.0.7/clang-tools-extra/clang-tidy/bugprone/ |
| H A D | PosixReturnCheck.cpp | 35 hasLHS(callExpr(callee(functionDecl( in registerMatchers() 44 hasLHS(callExpr(callee(functionDecl( in registerMatchers() 53 hasLHS(callExpr(callee(functionDecl( in registerMatchers()
|
| H A D | TooSmallLoopVariableCheck.cpp | 83 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 D | MisplacedPointerArithmeticInAllocCheck.cpp | 40 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 D | SizeofExpressionCheck.cpp | 89 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 D | IncorrectRoundingsCheck.cpp | 48 auto OneSideHalf = anyOf(allOf(hasLHS(FloatOrCastHalf), hasRHS(FloatType)), in registerMatchers() 49 allOf(hasRHS(FloatOrCastHalf), hasLHS(FloatType))); in registerMatchers()
|
| H A D | SignedCharMisuseCheck.cpp | 82 expr(binaryOperator(hasOperatorName("="), hasLHS(hasType(IntegerType)), in registerMatchers() 97 anyOf(allOf(hasLHS(SignedCharCastExpr), in registerMatchers() 99 allOf(hasLHS(UnSignedCharCastExpr), in registerMatchers()
|
| H A D | SuspiciousEnumUsageCheck.cpp | 126 hasOperatorName("|"), hasLHS(hasType(enumDecl().bind("enumDecl"))), in registerMatchers() 134 hasLHS(EnumExpr("lhsExpr", "enumDecl")), in registerMatchers()
|
| H A D | SizeofContainerCheck.cpp | 32 hasLHS(ignoringParenCasts(sizeOfExpr(expr()))), in registerMatchers()
|
| H A D | IntegerDivisionCheck.cpp | 35 hasOperatorName("/"), hasLHS(expr(IntType)), in registerMatchers()
|
| H A D | MisplacedOperatorInStrlenInAllocCheck.cpp | 38 hasOperatorName("+"), hasLHS(BadUse), in registerMatchers()
|
| /llvm-project-15.0.7/clang-tools-extra/clang-tidy/hicpp/ |
| H A D | SignedBitwiseCheck.cpp | 53 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 D | MutatingCopyCheck.cpp | 33 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 D | RedundantExpressionCheck.cpp | 547 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 D | ProBoundsPointerArithmeticCheck.cpp | 33 unless(hasLHS(ignoringImpCasts(declRefExpr(to(isImplicit())))))) in registerMatchers()
|
| H A D | OwningMemoryCheck.cpp | 88 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 D | DurationSubtractionCheck.cpp | 25 hasLHS(callExpr(callee(functionDecl(DurationConversionFunction()) in registerMatchers()
|
| /llvm-project-15.0.7/clang-tools-extra/clang-tidy/objc/ |
| H A D | AssertEquals.cpp | 35 anyOf(hasLHS(hasType(qualType( in registerMatchers()
|
| /llvm-project-15.0.7/clang/unittests/Analysis/FlowSensitive/ |
| H A D | SingleVarConstantPropagationTest.cpp | 131 binaryOperator(hasOperatorName("="), hasLHS(refToVar()), in transfer() 134 binaryOperator(isAssignmentOperator(), hasLHS(refToVar())) in transfer()
|
| H A D | MultiVarConstantPropagationTest.cpp | 143 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 D | IdDependentBackwardBranchCheck.cpp | 38 hasLHS(anyOf( in registerMatchers() 57 hasLHS(anyOf( in registerMatchers()
|
| /llvm-project-15.0.7/clang/unittests/ASTMatchers/ |
| H A D | ASTMatchersTraversalTest.cpp | 1529 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 D | LoopUnrolling.cpp | 103 hasLHS(ignoringParenImpCasts( in changeIntBoundNode() 151 binaryOperator(hasLHS(declRefExpr(to(varDecl( in forLoopMatcher()
|