reference, declarationdefinition
definition → references, declarations, derived classes, virtual overrides
reference to multiple definitions → definitions
unreferenced

Declarations

tools/clang/include/clang/ASTMatchers/ASTMatchers.h
  455     parmVarDecl;

References

tools/clang/lib/ASTMatchers/Dynamic/Registry.cpp
  461   REGISTER_MATCHER(parmVarDecl);
tools/clang/lib/Analysis/ExprMutationAnalyzer.cpp
  261       parmVarDecl(hasType(nonConstReferenceType())));
  387       parmVarDecl(hasType(nonConstReferenceType())).bind("parm"));
tools/clang/lib/StaticAnalyzer/Checkers/ObjCAutoreleaseWriteChecker.cpp
  154       parmVarDecl(hasType(hasCanonicalType(pointerType(
  159       declRefExpr(to(parmVarDecl(DoublePointerParamM))).bind(CapturedBind);
tools/clang/lib/StaticAnalyzer/Core/LoopUnrolling.cpp
  108       parmVarDecl(hasType(references(qualType(unless(isConstQualified())))))));
tools/clang/tools/extra/clang-include-fixer/find-all-symbols/FindAllSymbols.cpp
  156                       unless(parmVarDecl()));
tools/clang/tools/extra/clang-tidy/bugprone/DanglingHandleCheck.cpp
  123           unless(parmVarDecl()),
tools/clang/tools/extra/clang-tidy/bugprone/FoldInitTypeCheck.cpp
   34   const auto IteratorParam = parmVarDecl(
   36   const auto Iterator2Param = parmVarDecl(
   38   const auto InitParam = parmVarDecl(hasType(BuiltinTypeWithId("InitType")));
tools/clang/tools/extra/clang-tidy/bugprone/ForwardingReferenceOverloadCheck.cpp
   68       parmVarDecl(
   80               parmVarDecl(hasType(isEnableIf())))),
tools/clang/tools/extra/clang-tidy/bugprone/MoveForwardingReferenceCheck.cpp
   76       parmVarDecl(
tools/clang/tools/extra/clang-tidy/bugprone/UnhandledSelfAssignmentCheck.cpp
   42       cxxMethodDecl(hasParameter(0, parmVarDecl(hasType(referenceType()))));
tools/clang/tools/extra/clang-tidy/bugprone/UseAfterMoveCheck.cpp
  319                    unless(parmVarDecl(hasType(pointsTo(isConstQualified())))))),
  324                             unless(parmVarDecl(hasType(
tools/clang/tools/extra/clang-tidy/cppcoreguidelines/OwningMemoryCheck.cpp
  146           parmVarDecl(IsOwnerType))),
  153                          parmVarDecl(unless(IsOwnerType))
tools/clang/tools/extra/clang-tidy/fuchsia/DefaultArgumentsDeclarationsCheck.cpp
   19   Finder->addMatcher(parmVarDecl(hasDefaultArgument()).bind("decl"), this);
tools/clang/tools/extra/clang-tidy/google/DefaultArgumentsCheck.cpp
   22                     hasAnyParameter(parmVarDecl(hasInitializer(expr()))))
tools/clang/tools/extra/clang-tidy/google/NonConstReferences.cpp
   38       parmVarDecl(
tools/clang/tools/extra/clang-tidy/misc/NonCopyableObjects.cpp
   48   Finder->addMatcher(parmVarDecl(BadPOSIXType).bind("decl"), this);
tools/clang/tools/extra/clang-tidy/misc/UnconventionalAssignOperatorCheck.cpp
   38       cxxMethodDecl(IsAssign, hasParameter(0, parmVarDecl(hasType(IsSelf))))
   51                     hasParameter(0, parmVarDecl(hasType(BadSelf))))
tools/clang/tools/extra/clang-tidy/modernize/AvoidCArraysCheck.cpp
   52               unless(anyOf(hasParent(parmVarDecl(isArgvOfMain())),
tools/clang/tools/extra/clang-tidy/modernize/PassByValueCheck.cpp
  149                           parmVarDecl(
tools/clang/tools/extra/clang-tidy/modernize/UseNodiscardCheck.cpp
  109                         parmVarDecl(anyOf(hasType(FunctionObj),
tools/clang/tools/extra/clang-tidy/modernize/UseNoexceptCheck.cpp
   53       parmVarDecl(anyOf(hasType(pointerType(pointee(parenType(innerType(
tools/clang/tools/extra/clang-tidy/performance/MoveConstArgCheck.cpp
   54       MoveCallMatcher, parmVarDecl(hasType(references(isConstQualified()))));
tools/clang/tools/extra/clang-tidy/performance/TypePromotionInMathFnCheck.cpp
  107                    hasParameter(1, parmVarDecl(hasType(pointerType(
  130               hasParameter(2, parmVarDecl(hasType(pointerType(
tools/clang/tools/extra/clang-tidy/performance/UnnecessaryValueParamCheck.cpp
   80   const auto ExpensiveValueParamDecl = parmVarDecl(
tools/clang/tools/extra/clang-tidy/readability/AvoidConstParamsInDecls.cpp
   33       parmVarDecl(hasType(qualType(isConstQualified()))).bind("param");
tools/clang/tools/extra/clang-tidy/readability/NonConstParameterCheck.cpp
   21   Finder->addMatcher(parmVarDecl(unless(isInstantiated())).bind("Parm"), this);
tools/clang/tools/extra/clang-tidy/readability/RedundantStringInitCheck.cpp
   55           unless(parmVarDecl()))
tools/clang/tools/extra/clang-tidy/utils/DeclRefExprUtils.cpp
   64       DeclRefToVar, parmVarDecl(hasType(ConstReferenceOrValue)));
   96       DeclRefToVar, parmVarDecl(hasType(ConstReferenceOrValue)));
  144       parmVarDecl(hasType(matchers::isReferenceToConst())));
  158       parmVarDecl(hasType(matchers::isReferenceToConst())));
tools/clang/unittests/AST/SourceLocationTest.cpp
  729                               parmVarDecl(hasType(pointerType(pointee(
  734                               parmVarDecl(hasType(pointerType(pointee(
tools/clang/unittests/ASTMatchers/ASTMatchersNarrowingTest.cpp
 2416                       parmVarDecl(hasDefaultArgument())));
 2418                       parmVarDecl(hasDefaultArgument())));
tools/clang/unittests/ASTMatchers/ASTMatchersNodeTest.cpp
  570   EXPECT_TRUE(matches("void f(int x);", parmVarDecl()));
  571   EXPECT_TRUE(notMatches("void f();", parmVarDecl()));
tools/clang/unittests/ASTMatchers/ASTMatchersTraversalTest.cpp
  172                       parmVarDecl(hasType(namedDecl(hasName("I"))))));
  175                           parmVarDecl(hasType(objcObjectPointerType()))));
  179     parmVarDecl(hasType(pointsTo(objcInterfaceDecl(hasName("Foo")))))));
  182                       parmVarDecl(hasType(templateTypeParmType()))));
  185                       parmVarDecl(hasType(namedDecl(hasName("T"))))));
  190                       parmVarDecl(hasType(injectedClassNameType()))));
  194                          parmVarDecl(hasType(injectedClassNameType()))));
  199                       parmVarDecl(hasType(namedDecl(hasName("S"))))));
  214   EXPECT_TRUE(matches(Using, parmVarDecl(hasType(namedDecl(hasName("Foo"))))));
  236       parmVarDecl(hasType(qualType(hasDeclaration(cxxRecordDecl()))))));
  240       parmVarDecl(hasType(elaboratedType(hasDeclaration(cxxRecordDecl()))))));
  621   DeclarationMatcher IntParam = parmVarDecl(hasType(isInteger())).bind("param");
  634   DeclarationMatcher IntParam = parmVarDecl(hasType(isInteger())).bind("param");
  663   DeclarationMatcher IntParam = parmVarDecl(hasType(isInteger())).bind("param");
  687   DeclarationMatcher IntParam = parmVarDecl(hasType(isInteger())).bind("param");
  714         declRefExpr(to(decl(equalsBoundNode("v")))), parmVarDecl())))),
 2612                             hasParameter(0, parmVarDecl(hasName("p1"))))))));
 2615                             hasParameter(0, parmVarDecl(hasName("p2"))))))));
 2618                                hasParameter(0, parmVarDecl(hasName("p3"))))))));