Home
last modified time | relevance | path

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

1234

/external/llvm-project/clang-tools-extra/clang-tidy/bugprone/
DStringConstructorCheck.cpp85 hasArgument(0, hasType(qualType(isInteger()))), in registerMatchers()
86 hasArgument(1, hasType(qualType(isInteger()))), in registerMatchers()
89 hasArgument(0, CharExpr.bind("swapped-parameter")), in registerMatchers()
91 hasArgument(0, ZeroExpr.bind("empty-string")), in registerMatchers()
93 hasArgument(0, NegativeExpr.bind("negative-length")), in registerMatchers()
95 hasArgument(0, LargeLengthExpr.bind("large-length")))) in registerMatchers()
105 hasArgument(0, hasType(CharPtrType)), in registerMatchers()
106 hasArgument(1, hasType(isInteger())), in registerMatchers()
109 hasArgument(1, ZeroExpr.bind("empty-string")), in registerMatchers()
111 hasArgument(1, NegativeExpr.bind("negative-length")), in registerMatchers()
[all …]
DSuspiciousMemsetUsageCheck.cpp36 hasArgument(1, characterLiteral(equals(static_cast<unsigned>('0'))) in registerMatchers()
39 eachOf(hasArgument(0, anyOf(hasType(pointsTo(isAnyCharacter())), in registerMatchers()
48 hasArgument(1, integerLiteral().bind("num-fill")), in registerMatchers()
55 unless(hasArgument(1, anyOf(characterLiteral(equals( in registerMatchers()
DNoEscapeCheck.cpp22 hasArgument(1, blockExpr().bind("arg-block"))), in registerMatchers()
26 hasArgument(2, blockExpr().bind("arg-block"))), in registerMatchers()
DUndefinedMemoryManipulationCheck.cpp35 hasArgument(0, NotTriviallyCopyableObject)) in registerMatchers()
43 hasArgument(1, NotTriviallyCopyableObject)) in registerMatchers()
DStringLiteralWithEmbeddedNulCheck.cpp48 hasArgument(1, cxxDefaultArgExpr())))); in registerMatchers()
53 cxxConstructExpr(StringConstructorExpr, hasArgument(0, StrLitWithNul))), in registerMatchers()
DInaccurateEraseCheck.cpp24 hasArgument( in registerMatchers()
40 hasArgument(0, has(ignoringImplicit(anyOf( in registerMatchers()
/external/llvm-project/clang-tools-extra/clang-tidy/readability/
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()
138 argumentCountIs(3), hasArgument(2, StringCStrCallExpr)), in registerMatchers()
[all …]
DContainerSizeEmptyCheck.cpp91 anyOf(allOf(hasArgument(0, WrongComparend), hasArgument(1, STLArg)), in registerMatchers()
92 allOf(hasArgument(0, STLArg), hasArgument(1, WrongComparend))), in registerMatchers()
DRedundantStringInitCheck.cpp87 hasArgument(1, cxxDefaultArgExpr())))); in registerMatchers()
92 hasArgument(0, ignoringParenImpCasts(stringLiteral(hasSize(0))))); in registerMatchers()
96 hasArgument(0, ignoringImplicit(EmptyStringCtorExpr))); in registerMatchers()
/external/llvm-project/clang-tools-extra/clang-tidy/abseil/
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, factory_matcher)); in registerMatchers()
53 hasArgument(0, expr().bind("arg")), hasArgument(1, factory_matcher)); in registerMatchers()
62 hasArgument(0, expr().bind("arg"))) in registerMatchers()
68 hasArgument(0, anyOf(inverse_function_matcher, in registerMatchers()
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()
112 hasArgument(0, expr().bind("arg"))))) in registerMatchers()
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()
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()
DStringFindStrContainsCheck.cpp72 on(hasType(StringType)), hasArgument(0, expr().bind("parameter_to_find")), in MakeRule()
73 anyOf(hasArgument(1, integerLiteral(equals(0))), in MakeRule()
74 hasArgument(1, cxxDefaultArgExpr())), in MakeRule()
DStringFindStartswithCheck.cpp46 hasArgument(0, expr().bind("needle")), in registerMatchers()
48 anyOf(hasArgument(1, ZeroLiteral), hasArgument(1, cxxDefaultArgExpr()))); in registerMatchers()
DDurationDivisionCheck.cpp28 hasArgument(0, DurationExpr), in registerMatchers()
29 hasArgument(1, DurationExpr)) in registerMatchers()
/external/icu/icu4j/tools/misc/src/com/ibm/icu/dev/tool/
DUOption.java54 int hasArgument) { in create() argument
55 return new UOption(aLongName, aShortName, hasArgument); in create()
64 int hasArgument) { in DEF() argument
65 return create(aLongName, aShortName, hasArgument); in DEF()
265 int hasArgument) { in UOption() argument
268 hasArg = hasArgument; in UOption()
/external/llvm-project/clang/lib/ASTMatchers/
DGtestMatchers.cpp93 hasArgument(2, Left), hasArgument(3, Right)); in gtestAssert()
100 hasArgument(2, Left), hasArgument(3, Right)); in gtestExpect()
/external/llvm-project/clang-tools-extra/clang-tidy/modernize/
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()
DUseEqualsDefaultCheck.cpp87 hasArgument(0, declRefExpr(to(varDecl( in isCopyConstructorAndCanBeDefaulted()
110 hasArgument(0, AccessToFieldInParam)))))))), in isCopyConstructorAndCanBeDefaulted()
170 hasArgument(0, declRefExpr(to(varDecl( in isCopyAssignmentAndCanBeDefaulted()
193 hasArgument(0, LHS), hasArgument(1, RHS)))))))), in isCopyAssignmentAndCanBeDefaulted()
/external/llvm-project/clang/unittests/Tooling/
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 …]
/external/llvm-project/clang-tools-extra/clang-tidy/cert/
DNonTrivialTypesLibcMemoryCallsCheck.cpp102 hasArgument(0, IsStructPointer(RecordConstraint, true)), in registerMatchers()
103 hasArgument(1, SecondArg), hasArgument(2, IsRecordSizeOf)); in registerMatchers()
DMutatingCopyCheck.cpp37 hasArgument(0, IsPartOfSource)) in registerMatchers()
48 hasArgument(0, IsPartOfSelf)))); in registerMatchers()
/external/llvm-project/clang-tools-extra/clang-tidy/performance/
DInefficientAlgorithmCheck.cpp42 hasArgument( in registerMatchers()
51 hasArgument( in registerMatchers()
56 hasArgument(2, expr().bind("AlgParam")), in registerMatchers()
DInefficientStringConcatenationCheck.cpp48 hasArgument(0, declRefExpr(BasicStringType, in registerMatchers()
51 hasArgument(1, stmt(hasDescendant(declRefExpr( in registerMatchers()

1234