Home
last modified time | relevance | path

Searched refs:hasArgument (Results 1 – 25 of 76) sorted by relevance

1234

/llvm-project-15.0.7/clang-tools-extra/clang-tidy/bugprone/
H A DStringConstructorCheck.cpp87 hasArgument(0, hasType(qualType(isInteger()))), in registerMatchers()
88 hasArgument(1, hasType(qualType(isInteger()))), in registerMatchers()
91 hasArgument(0, CharExpr.bind("swapped-parameter")), in registerMatchers()
93 hasArgument(0, ZeroExpr.bind("empty-string")), in registerMatchers()
95 hasArgument(0, NegativeExpr.bind("negative-length")), in registerMatchers()
107 hasArgument(0, hasType(CharPtrType)), in registerMatchers()
108 hasArgument(1, hasType(isInteger())), in registerMatchers()
111 hasArgument(1, ZeroExpr.bind("empty-string")), in registerMatchers()
118 hasArgument(1, ignoringParenImpCasts( in registerMatchers()
133 hasArgument(0, expr().bind("from-ptr")), in registerMatchers()
[all …]
H A DSuspiciousMemsetUsageCheck.cpp36 hasArgument(1, characterLiteral(equals(static_cast<unsigned>('0'))) in registerMatchers()
38 unless(hasArgument( in registerMatchers()
47 hasArgument(1, integerLiteral().bind("num-fill"))), in registerMatchers()
53 unless(hasArgument(1, anyOf(characterLiteral(equals( in registerMatchers()
H A DNoEscapeCheck.cpp22 hasArgument(1, blockExpr().bind("arg-block"))), in registerMatchers()
26 hasArgument(2, blockExpr().bind("arg-block"))), in registerMatchers()
H A DUndefinedMemoryManipulationCheck.cpp35 hasArgument(0, NotTriviallyCopyableObject)) in registerMatchers()
43 hasArgument(1, NotTriviallyCopyableObject)) in registerMatchers()
H A DStringLiteralWithEmbeddedNulCheck.cpp48 hasArgument(1, cxxDefaultArgExpr())))); in registerMatchers()
53 cxxConstructExpr(StringConstructorExpr, hasArgument(0, StrLitWithNul))), in registerMatchers()
H A DInaccurateEraseCheck.cpp24 hasArgument( in registerMatchers()
35 hasArgument(0, EndCall)) in registerMatchers()
/llvm-project-15.0.7/clang-tools-extra/clang-tidy/readability/
H A DRedundantStringCStrCheck.cpp87 hasArgument(1, cxxDefaultArgExpr())))); in registerMatchers()
104 StringConstructorExpr, hasArgument(0, StringCStrCallExpr), in registerMatchers()
113 anyOf(allOf(hasArgument(0, StringExpr), in registerMatchers()
114 hasArgument(1, StringCStrCallExpr)), in registerMatchers()
115 allOf(hasArgument(0, StringCStrCallExpr), in registerMatchers()
116 hasArgument(1, StringExpr)))), in registerMatchers()
123 hasArgument(0, StringExpr), in registerMatchers()
124 hasArgument(1, StringCStrCallExpr)), in registerMatchers()
131 argumentCountIs(1), hasArgument(0, StringCStrCallExpr)), in registerMatchers()
148 hasArgument(0, StringCStrCallExpr)), in registerMatchers()
[all …]
H A DContainerDataPointerCheck.cpp72 hasArgument(0, ContainerExpr), in registerMatchers()
73 hasArgument(1, Zero)), in registerMatchers()
75 argumentCountIs(1), hasArgument(0, Zero)), in registerMatchers()
H A DRedundantStringInitCheck.cpp79 hasArgument(1, cxxDefaultArgExpr())))); in registerMatchers()
84 hasArgument(0, ignoringParenImpCasts(stringLiteral(hasSize(0))))); in registerMatchers()
88 hasArgument(0, ignoringImplicit(EmptyStringCtorExpr))); in registerMatchers()
/llvm-project-15.0.7/clang-tools-extra/clang-tidy/abseil/
H A DDurationUnnecessaryConversionCheck.cpp35 hasArgument(0, ignoringImpCasts(integerLiteral(equals(1)))))); in registerMatchers()
41 hasArgument(0, expr().bind("arg"))); in registerMatchers()
46 hasOverloadedOperatorName("/"), hasArgument(0, expr().bind("arg")), in registerMatchers()
47 hasArgument(1, FactoryMatcher)); in registerMatchers()
53 hasArgument(0, expr().bind("arg")), hasArgument(1, FactoryMatcher)); in registerMatchers()
62 hasArgument(0, expr().bind("arg"))) in registerMatchers()
68 hasArgument(0, anyOf(InverseFunctionMatcher, in registerMatchers()
H A DUpgradeDurationConversionsCheck.cpp35 hasArgument( in registerMatchers()
37 hasArgument(1, expr().bind("arg")), in registerMatchers()
54 argumentCountIs(1), hasArgument(0, expr().bind("arg"))) in registerMatchers()
67 hasArgument(0, expr(hasType( in registerMatchers()
69 hasArgument(1, expr().bind("arg"))) in registerMatchers()
80 argumentCountIs(2), hasArgument(0, expr().bind("arg")), in registerMatchers()
81 hasArgument(1, expr(hasType( in registerMatchers()
111 hasArgument(0, expr().bind("arg"))))) in registerMatchers()
H A DStrCatAppendCheck.cpp50 hasArgument(0, ignoringImpCasts(declRefExpr(to(equalsBoundNode("LHS")), in registerMatchers()
65 hasArgument(0, declRefExpr(to(decl().bind("LHS")))), in registerMatchers()
66 hasArgument( in registerMatchers()
68 callExpr(callee(StrCat), hasArgument(0, AlphaNum), in registerMatchers()
H A DStringFindStartswithCheck.cpp46 hasArgument(0, expr().bind("needle")), in registerMatchers()
48 anyOf(hasArgument(1, ZeroLiteral), hasArgument(1, cxxDefaultArgExpr()))); in registerMatchers()
64 hasArgument(0, expr().bind("needle")), in registerMatchers()
66 hasArgument(1, ZeroLiteral)); in registerMatchers()
H A DFasterStrsplitDelimiterCheck.cpp68 hasArgument(0, ignoringParenImpCasts(SingleChar))))); in registerMatchers()
76 hasArgument(0, StringViewArg)))))))) in registerMatchers()
84 hasArgument(1, anyOf(ByAnyCharArg, SingleChar)), in registerMatchers()
95 hasArgument(0, anyOf(ByAnyCharArg, in registerMatchers()
H A DStringFindStrContainsCheck.cpp59 on(hasType(StringType)), hasArgument(0, expr().bind("parameter_to_find")), in makeRewriteRule()
60 anyOf(hasArgument(1, integerLiteral(equals(0))), in makeRewriteRule()
61 hasArgument(1, cxxDefaultArgExpr())), in makeRewriteRule()
H A DDurationDivisionCheck.cpp28 hasArgument(0, DurationExpr), in registerMatchers()
29 hasArgument(1, DurationExpr)) in registerMatchers()
/llvm-project-15.0.7/clang/lib/ASTMatchers/
H A DGtestMatchers.cpp126 callee(getComparisonDecl(Cmp)), hasArgument(2, Left), in gtestComparisonInternal()
127 hasArgument(3, Right)); in gtestComparisonInternal()
135 hasOverloadedOperatorName("()"), hasArgument(2, Actual), in gtestThatInternal()
136 hasArgument( in gtestThatInternal()
143 hasArgument(0, ignoringImplicit(Matcher))))))); in gtestThatInternal()
175 hasArgument(0, ignoringImplicit(MockCall)))))); in gtestCallInternal()
/llvm-project-15.0.7/clang/unittests/Tooling/
H A DRangeSelectorTest.cpp260 auto Matcher = callExpr(hasArgument(0, expr().bind("a0")), in TEST()
261 hasArgument(1, expr().bind("a1"))); in TEST()
272 auto Matcher = callExpr(hasArgument(0, expr().bind("a0")), in TEST()
273 hasArgument(1, expr().bind("a1"))); in TEST()
286 auto Matcher = callExpr(hasArgument(0, expr().bind("a0")), in TEST()
287 hasArgument(1, expr().bind("a1"))); in TEST()
298 auto Matcher = callExpr(hasArgument(0, expr().bind("a0")), in TEST()
299 hasArgument(1, expr().bind("a1"))); in TEST()
310 auto Matcher = callExpr(hasArgument(0, expr().bind("a0")), in TEST()
311 hasArgument(1, expr().bind("a1"))); in TEST()
[all …]
/llvm-project-15.0.7/clang-tools-extra/clang-tidy/modernize/
H A DReplaceRandomShuffleCheck.cpp31 const auto Begin = hasArgument(0, expr()); in registerMatchers()
32 const auto End = hasArgument(1, expr()); in registerMatchers()
33 const auto RandomFunc = hasArgument(2, expr().bind("randomFunc")); in registerMatchers()
H A DShrinkToFitCheck.cpp33 hasArgument( in registerMatchers()
35 on(cxxConstructExpr(hasArgument( in registerMatchers()
/llvm-project-15.0.7/clang/lib/Analysis/FlowSensitive/Models/
H A DUncheckedOptionalAccessModel.cpp72 Ignorable ? callExpr(unless(hasArgument(0, *Ignorable))) : callExpr()); in isOptionalOperatorCallWithName()
94 hasArgument(0, hasNulloptType())); in isOptionalNulloptConstructor()
99 hasArgument(0, hasType(inPlaceClass()))); in isOptionalInPlaceConstructor()
107 argumentCountIs(1), hasArgument(0, unless(hasNulloptType()))); in isOptionalValueOrConversionConstructor()
116 argumentCountIs(2), hasArgument(1, unless(hasNulloptType()))); in isOptionalValueOrConversionAssignment()
123 hasArgument(1, hasNulloptType())); in isOptionalNulloptAssignment()
128 argumentCountIs(2), hasArgument(0, hasOptionalType()), in isStdSwapCall()
129 hasArgument(1, hasOptionalType())); in isStdSwapCall()
142 hasArgument(0, stringLiteral(hasSize(0)))) in isValueOrStringEmptyCall()
153 hasArgument(0, Arg)) in isValueOrNotEqX()
[all …]
/llvm-project-15.0.7/clang-tools-extra/clang-tidy/cert/
H A DNonTrivialTypesLibcMemoryCallsCheck.cpp85 hasArgument(0, IsStructPointer(RecordConstraint, true)), in registerMatchers()
86 hasArgument(1, SecondArg), hasArgument(2, IsRecordSizeOf)); in registerMatchers()
/llvm-project-15.0.7/clang-tools-extra/clang-tidy/performance/
H A DInefficientAlgorithmCheck.cpp41 hasArgument( in registerMatchers()
50 hasArgument( in registerMatchers()
54 hasArgument(2, expr().bind("AlgParam"))) in registerMatchers()
H A DInefficientStringConcatenationCheck.cpp48 hasArgument(0, declRefExpr(BasicStringType, in registerMatchers()
51 hasArgument(1, stmt(hasDescendant(declRefExpr( in registerMatchers()
/llvm-project-15.0.7/clang-tools-extra/clang-tidy/cppcoreguidelines/
H A DSlicingCheck.cpp53 hasArgument(1, HasTypeDerivedFromBaseDecl)); in registerMatchers()
60 hasArgument(0, HasTypeDerivedFromBaseDecl), in registerMatchers()

1234