Home
last modified time | relevance | path

Searched refs:parmVarDecl (Results 1 – 25 of 47) sorted by relevance

12

/llvm-project-15.0.7/clang/unittests/AST/
H A DTypePrinterTest.cpp56 auto Matcher = parmVarDecl(hasType(qualType().bind("id"))); in TEST()
72 auto Matcher = parmVarDecl(hasType(qualType().bind("id"))); in TEST()
114 has(parmVarDecl(hasType(qualType().bind("id"))))))); in TEST()
/llvm-project-15.0.7/clang-tools-extra/clang-tidy/bugprone/
H A DFoldInitTypeCheck.cpp34 const auto IteratorParam = parmVarDecl( in registerMatchers()
36 const auto Iterator2Param = parmVarDecl( in registerMatchers()
38 const auto InitParam = parmVarDecl(hasType(BuiltinTypeWithId("InitType"))); in registerMatchers()
H A DForwardingReferenceOverloadCheck.cpp64 parmVarDecl( in registerMatchers()
76 parmVarDecl(hasType(isEnableIf())))), in registerMatchers()
H A DStringviewNullptrCheck.cpp185 parmVarDecl(HasBasicStringViewType, in StringviewNullptrCheckImpl()
193 makeRule(parmVarDecl(HasBasicStringViewType, in StringviewNullptrCheckImpl()
H A DUnhandledSelfAssignmentCheck.cpp39 cxxMethodDecl(hasParameter(0, parmVarDecl(hasType(referenceType())))); in registerMatchers()
H A DMoveForwardingReferenceCheck.cpp73 parmVarDecl( in registerMatchers()
/llvm-project-15.0.7/clang-tools-extra/clang-tidy/utils/
H A DDeclRefExprUtils.cpp68 DeclRefToVar, parmVarDecl(hasType(ConstReferenceOrValueOrReplaced))); in constReferenceDeclRefExprs()
125 parmVarDecl(hasType(matchers::isReferenceToConst()))); in isCopyConstructorArgument()
139 parmVarDecl(hasType(matchers::isReferenceToConst()))); in isCopyAssignmentArgument()
/llvm-project-15.0.7/clang-tools-extra/clang-tidy/misc/
H A DUnconventionalAssignOperatorCheck.cpp34 cxxMethodDecl(IsAssign, hasParameter(0, parmVarDecl(hasType(IsSelf)))) in registerMatchers()
47 hasParameter(0, parmVarDecl(hasType(BadSelf)))) in registerMatchers()
H A DNonCopyableObjects.cpp48 Finder->addMatcher(parmVarDecl(BadPOSIXType).bind("decl"), this); in registerMatchers()
/llvm-project-15.0.7/clang-tools-extra/clang-tidy/readability/
H A DIdentifierLengthCheck.cpp83 Finder->addMatcher(parmVarDecl().bind("paramVar"), this); in registerMatchers()
88 hasParent(cxxCatchStmt()), parmVarDecl()))) in registerMatchers()
H A DAvoidConstParamsInDecls.cpp32 parmVarDecl(hasType(qualType(isConstQualified()))).bind("param"); in registerMatchers()
/llvm-project-15.0.7/clang-tools-extra/clang-tidy/performance/
H A DTypePromotionInMathFnCheck.cpp105 hasParameter(1, parmVarDecl(hasType(pointerType( in registerMatchers()
128 hasParameter(2, parmVarDecl(hasType(pointerType( in registerMatchers()
/llvm-project-15.0.7/clang/lib/StaticAnalyzer/Checkers/
H A DObjCAutoreleaseWriteChecker.cpp175 parmVarDecl(hasType(hasCanonicalType(pointerType( in checkASTCodeBody()
180 declRefExpr(to(parmVarDecl(DoublePointerParamM))).bind(CapturedBind); in checkASTCodeBody()
/llvm-project-15.0.7/clang-tools-extra/clang-tidy/google/
H A DDefaultArgumentsCheck.cpp22 hasAnyParameter(parmVarDecl(hasInitializer(expr())))) in registerMatchers()
/llvm-project-15.0.7/clang-tools-extra/clang-tidy/fuchsia/
H A DDefaultArgumentsDeclarationsCheck.cpp20 Finder->addMatcher(parmVarDecl(hasDefaultArgument()).bind("decl"), this); in registerMatchers()
/llvm-project-15.0.7/clang-tools-extra/clang-tidy/cppcoreguidelines/
H A DOwningMemoryCheck.cpp138 parmVarDecl(IsOwnerType))), in registerMatchers()
145 parmVarDecl(unless(IsOwnerType)) in registerMatchers()
H A DProTypeVarargCheck.cpp143 varDecl(unless(parmVarDecl()), in registerMatchers()
/llvm-project-15.0.7/clang-tools-extra/clang-tidy/modernize/
H A DAvoidCArraysCheck.cpp48 unless(anyOf(hasParent(parmVarDecl(isArgvOfMain())), in registerMatchers()
H A DUseNoexceptCheck.cpp46 parmVarDecl(anyOf(hasType(pointerType(pointee(parenType(innerType( in registerMatchers()
H A DUseNodiscardCheck.cpp104 parmVarDecl(anyOf(hasType(FunctionObj), in registerMatchers()
/llvm-project-15.0.7/clang-tools-extra/clang-tidy/llvm/
H A DTwineLocalCheck.cpp24 varDecl(unless(parmVarDecl()), hasType(TwineType)).bind("variable"), in registerMatchers()
/llvm-project-15.0.7/clang/unittests/ASTMatchers/
H A DASTMatchersNarrowingTest.cpp896 parmVarDecl(hasName("i"))))))); in TEST_P()
906 parmVarDecl(hasName("i"))))))); in TEST_P()
3791 matches("void x(int val = 0) {}", parmVarDecl(hasDefaultArgument()))); in TEST_P()
3793 notMatches("void x(int val) {}", parmVarDecl(hasDefaultArgument()))); in TEST_P()
3804 EXPECT_TRUE(matches("void x(int a);", parmVarDecl(isAtPosition(0)))); in TEST_P()
3807 EXPECT_TRUE(notMatches("void x(int val);", parmVarDecl(isAtPosition(1)))); in TEST_P()
3818 parmVarDecl(isAtPosition(0)))); in TEST_P()
3820 parmVarDecl(isAtPosition(1)))); in TEST_P()
3828 parmVarDecl(isAtPosition(0)))); in TEST_P()
3832 parmVarDecl(isAtPosition(1)))); in TEST_P()
[all …]
H A DASTMatchersTraversalTest.cpp174 parmVarDecl(hasType(namedDecl(hasName("I")))))); in TEST()
181 parmVarDecl(hasType(pointsTo(objcInterfaceDecl(hasName("Foo"))))))); in TEST()
184 parmVarDecl(hasType(templateTypeParmType())))); in TEST()
187 parmVarDecl(hasType(namedDecl(hasName("T")))))); in TEST()
192 parmVarDecl(hasType(injectedClassNameType())))); in TEST()
196 parmVarDecl(hasType(injectedClassNameType())))); in TEST()
201 parmVarDecl(hasType(namedDecl(hasName("S")))))); in TEST()
238 parmVarDecl(hasType(qualType(hasDeclaration(cxxRecordDecl())))))); in TEST()
3818 has(parmVarDecl(hasName("d"))))), in TEST()
6077 parmVarDecl(hasName("r"), hasTypeLoc(referenceTypeLoc( in TEST()
[all …]
/llvm-project-15.0.7/clang-tools-extra/clang-tidy/cert/
H A DMutatingCopyCheck.cpp54 0, parmVarDecl(hasType(lValueReferenceType())).bind(SourceDeclName)), in registerMatchers()
/llvm-project-15.0.7/clang-tools-extra/clang-tidy/abseil/
H A DStringFindStrContainsCheck.cpp57 0, parmVarDecl(anyOf(hasType(StringType), hasType(CharStarType), in makeRewriteRule()

12