/external/llvm-project/clang-tools-extra/clang-tidy/readability/ |
D | NamedParameterCheck.cpp | 46 const ParmVarDecl *Parm = Function->getParamDecl(I); in check() local 47 if (Parm->isImplicit()) in check() 50 if (!Parm->getName().empty()) in check() 56 Parm->getType()->isSpecificBuiltinType(BuiltinType::Int)) in check() 60 if (!Parm->getLocation().isValid() || Parm->getLocation().isMacroID() || in check() 61 !SM.isWrittenInSameFile(Parm->getBeginLoc(), Parm->getLocation())) in check() 65 if (auto Typedef = Parm->getType()->getAs<clang::TypedefType>()) in check() 70 if (Parm->getType().getCanonicalType()->isNullPtrType()) in check() 75 const char *Begin = SM.getCharacterData(Parm->getBeginLoc()); in check() 76 const char *End = SM.getCharacterData(Parm->getLocation()); in check() [all …]
|
D | NonConstParameterCheck.cpp | 42 if (const auto *Parm = Result.Nodes.getNodeAs<ParmVarDecl>("Parm")) { in check() local 43 if (const DeclContext *D = Parm->getParentFunctionOrMethod()) { in check() 49 addParm(Parm); in check() 52 for (const auto *Parm : Ctor->parameters()) in check() local 53 addParm(Parm); in check() 101 void NonConstParameterCheck::addParm(const ParmVarDecl *Parm) { in addParm() argument 103 const QualType T = Parm->getType(); in addParm() 109 if (Parameters.find(Parm) != Parameters.end()) in addParm() 115 Parameters[Parm] = PI; in addParm()
|
D | NonConstParameterCheck.h | 44 void addParm(const ParmVarDecl *Parm);
|
/external/llvm-project/clang/test/Index/ |
D | ctor-init-source-loc.cpp | 31 typedef Q Parm; typedef 36 struct Derived4: Outer::Inner<Q>::Parm 38 Derived4() : Outer::Inner<Q>::Parm() {} in Derived4() 45 struct Derived5: Outer::Inner<Q>::Parm::InnerIterator 47 Derived5() : Outer::Inner<Q>::Parm::InnerIterator() {} in Derived5() 64 struct Derived7: Outer::Inner<Base>::Parm 66 Derived7() : Outer::Inner<Base>::Parm() {} in Derived7() 86 typedef Q Parm; typedef 110 struct Derived11: Namespace::Outer::Inner<MyBase>::Parm 112 Derived11() : Namespace::Outer::Inner<MyBase>::Parm() {} in Derived11()
|
/external/llvm-project/clang-tools-extra/clangd/unittests/ |
D | ConfigCompileTests.cpp | 39 Params Parm; member in clang::clangd::config::__anon1dffab660111::ConfigCompileTests 45 return Compiled(Parm, Conf); in compileAndApply() 65 Parm.Path = "bar"; in TEST_F() 131 Parm.Path = BarPath; in TEST_F() 233 Parm.Path = BazPath; in TEST_F() 259 Parm.Path = BarPath; in TEST_F() 288 Parm.Path = ""; in TEST_F() 297 Parm.Path = BazPath; in TEST_F() 306 Parm.Path = BazPath; in TEST_F()
|
/external/llvm-project/clang/lib/Analysis/ |
D | ExprMutationAnalyzer.cpp | 561 const auto *Parm = Nodes.getNodeAs<ParmVarDecl>("parm"); in findFunctionArgMutation() local 565 AllParams[std::min<size_t>(Parm->getFunctionScopeIndex(), in findFunctionArgMutation() 580 if (Analyzer->findMutation(Parm)) in findFunctionArgMutation() 599 for (const ParmVarDecl *Parm : Ctor->parameters()) { in FunctionParmMutationAnalyzer() local 600 if (Results.find(Parm) != Results.end()) in FunctionParmMutationAnalyzer() 602 if (const Stmt *S = InitAnalyzer.findMutation(Parm)) in FunctionParmMutationAnalyzer() 603 Results[Parm] = S; in FunctionParmMutationAnalyzer() 610 FunctionParmMutationAnalyzer::findMutation(const ParmVarDecl *Parm) { in findMutation() argument 611 const auto Memoized = Results.find(Parm); in findMutation() 615 if (const Stmt *S = BodyAnalyzer.findMutation(Parm)) in findMutation() [all …]
|
/external/llvm-project/clang/include/clang/Analysis/Analyses/ |
D | ExprMutationAnalyzer.h | 83 bool isMutated(const ParmVarDecl *Parm) { in isMutated() argument 84 return findMutation(Parm) != nullptr; in isMutated() 86 const Stmt *findMutation(const ParmVarDecl *Parm);
|
/external/llvm-project/clang/lib/Index/ |
D | IndexDecl.cpp | 93 auto IndexDefaultParmeterArgument = [&](const ParmVarDecl *Parm, in handleDeclarator() 95 if (Parm->hasDefaultArg() && !Parm->hasUninstantiatedDefaultArg() && in handleDeclarator() 96 !Parm->hasUnparsedDefaultArg()) in handleDeclarator() 97 IndexCtx.indexBody(Parm->getDefaultArg(), Parent); in handleDeclarator() 100 if (const ParmVarDecl *Parm = dyn_cast<ParmVarDecl>(D)) { in handleDeclarator() argument 101 auto *DC = Parm->getDeclContext(); in handleDeclarator() 105 IndexCtx.handleDecl(Parm); in handleDeclarator() 108 IndexCtx.handleDecl(Parm); in handleDeclarator() 110 IndexCtx.handleDecl(Parm); in handleDeclarator()
|
/external/clang/lib/Index/ |
D | IndexDecl.cpp | 57 if (const ParmVarDecl *Parm = dyn_cast<ParmVarDecl>(D)) { in handleDeclarator() local 58 auto *DC = Parm->getDeclContext(); in handleDeclarator() 61 IndexCtx.handleDecl(Parm); in handleDeclarator() 64 IndexCtx.handleDecl(Parm); in handleDeclarator() 66 IndexCtx.handleDecl(Parm); in handleDeclarator()
|
/external/clang/include/clang/Sema/ |
D | Initialization.h | 205 ParmVarDecl *Parm) { in InitializeParameter() argument 206 return InitializeParameter(Context, Parm, Parm->getType()); in InitializeParameter() 212 ParmVarDecl *Parm, in InitializeParameter() argument 215 Parm->hasAttr<NSConsumedAttr>()); in InitializeParameter() 223 = (static_cast<uintptr_t>(Consumed) | reinterpret_cast<uintptr_t>(Parm)); in InitializeParameter()
|
D | AttributeList.h | 254 IdentifierLoc *Parm, const AvailabilityChange &introduced, in AttributeList() argument 267 ArgsUnion PVal(Parm); in AttributeList()
|
/external/llvm-project/clang-tools-extra/clang-tidy/portability/ |
D | SIMDIntrinsicsCheck.cpp | 30 for (const ParmVarDecl *Parm : Node.parameters()) { in AST_MATCHER() local 31 QualType Type = Parm->getType(); in AST_MATCHER()
|
/external/llvm-project/clang/include/clang/Sema/ |
D | Initialization.h | 253 const ParmVarDecl *Parm) { in InitializeParameter() argument 254 return InitializeParameter(Context, Parm, Parm->getType()); in InitializeParameter() 260 const ParmVarDecl *Parm, in InitializeParameter() argument 263 Parm->hasAttr<NSConsumedAttr>()); in InitializeParameter() 271 = (static_cast<uintptr_t>(Consumed) | reinterpret_cast<uintptr_t>(Parm)); in InitializeParameter()
|
D | ParsedAttr.h | 300 IdentifierLoc *Parm, const AvailabilityChange &introduced, in ParsedAttr() argument 312 ArgsUnion PVal(Parm); in ParsedAttr()
|
/external/llvm-project/clang/lib/AST/ |
D | MicrosoftMangle.cpp | 76 if (const auto *Parm = in getLambdaDefaultArgumentDeclContext() local 78 return Parm->getDeclContext(); in getLambdaDefaultArgumentDeclContext() 395 const NamedDecl *Parm); 980 const ParmVarDecl *Parm = in mangleUnqualifiedName() local 983 Parm ? dyn_cast<FunctionDecl>(Parm->getDeclContext()) : nullptr; in mangleUnqualifiedName() 987 Func->getNumParams() - Parm->getFunctionScopeIndex(); in mangleUnqualifiedName() 1471 const NamedDecl *Parm) { in mangleTemplateArg() argument 1521 cast<NonTypeTemplateParmDecl>(Parm), T); in mangleTemplateArg() 1546 cast<NonTypeTemplateParmDecl>(Parm), T); in mangleTemplateArg() 1552 cast<NonTypeTemplateParmDecl>(Parm), T); in mangleTemplateArg() [all …]
|
D | StmtProfile.cpp | 102 if (const ParmVarDecl *Parm = dyn_cast<ParmVarDecl>(D)) { in VisitDecl() local 110 VisitType(Parm->getType()); in VisitDecl() 111 ID.AddInteger(Parm->getFunctionScopeDepth()); in VisitDecl() 112 ID.AddInteger(Parm->getFunctionScopeIndex()); in VisitDecl()
|
/external/clang/include/clang/AST/ |
D | ASTContext.h | 193 TemplateTemplateParmDecl *Parm; variable 196 CanonicalTemplateTemplateParm(TemplateTemplateParmDecl *Parm) in CanonicalTemplateTemplateParm() argument 197 : Parm(Parm) { } in CanonicalTemplateTemplateParm() 199 TemplateTemplateParmDecl *getParam() const { return Parm; } in getParam() 201 void Profile(llvm::FoldingSetNodeID &ID) { Profile(ID, Parm); } in Profile() 204 TemplateTemplateParmDecl *Parm);
|
D | DeclTemplate.h | 263 static ParmDecl *getParmOwningDefaultArg(ParmDecl *Parm) { in getParmOwningDefaultArg() argument 264 const DefaultArgStorage &Storage = Parm->getDefaultArgStorage(); in getParmOwningDefaultArg() 266 Parm = Prev; in getParmOwningDefaultArg() 267 assert(!Parm->getDefaultArgStorage() in getParmOwningDefaultArg() 270 return Parm; in getParmOwningDefaultArg() 1237 NonTypeTemplateParmDecl *Parm) { 1238 DefaultArgument.setInherited(C, Parm);
|
/external/llvm-project/clang/include/clang/AST/ |
D | ASTContext.h | 303 TemplateTemplateParmDecl *Parm; variable 306 CanonicalTemplateTemplateParm(TemplateTemplateParmDecl *Parm) in CanonicalTemplateTemplateParm() argument 307 : Parm(Parm) {} in CanonicalTemplateTemplateParm() 309 TemplateTemplateParmDecl *getParam() const { return Parm; } in getParam() 312 Profile(ID, C, Parm); in Profile() 317 TemplateTemplateParmDecl *Parm);
|
D | DeclTemplate.h | 325 static ParmDecl *getParmOwningDefaultArg(ParmDecl *Parm) { in getParmOwningDefaultArg() argument 326 const DefaultArgStorage &Storage = Parm->getDefaultArgStorage(); in getParmOwningDefaultArg() 328 Parm = Prev; in getParmOwningDefaultArg() 329 assert(!Parm->getDefaultArgStorage() in getParmOwningDefaultArg() 332 return Parm; in getParmOwningDefaultArg() 1477 NonTypeTemplateParmDecl *Parm) { 1478 DefaultArgument.setInherited(C, Parm);
|
/external/llvm-project/clang/unittests/AST/ |
D | ASTTraverserTest.cpp | 271 const auto *Parm = Func->getParamDecl(0); in TEST() local 272 const auto TL = Parm->getTypeSourceInfo()->getTypeLoc(); in TEST()
|
/external/llvm-project/clang/lib/Sema/ |
D | SemaTemplateVariadic.cpp | 424 for (auto Parm : Unexpanded) in DiagnoseUnexpandedParameterPackInRequiresExpr() local 425 if (ParmSet.contains(Parm.first.dyn_cast<NamedDecl*>())) in DiagnoseUnexpandedParameterPackInRequiresExpr() 426 UnexpandedParms.push_back(Parm); in DiagnoseUnexpandedParameterPackInRequiresExpr()
|
/external/clang/lib/AST/ |
D | StmtProfile.cpp | 1648 if (const ParmVarDecl *Parm = dyn_cast<ParmVarDecl>(D)) { in VisitDecl() local 1656 VisitType(Parm->getType()); in VisitDecl() 1657 ID.AddInteger(Parm->getFunctionScopeDepth()); in VisitDecl() 1658 ID.AddInteger(Parm->getFunctionScopeIndex()); in VisitDecl()
|
D | MicrosoftMangle.cpp | 360 const NamedDecl *Parm); 1228 const NamedDecl *Parm) { in mangleTemplateArg() argument 1307 if (isa<TemplateTypeParmDecl>(Parm) || in mangleTemplateArg() 1308 isa<TemplateTemplateParmDecl>(Parm)) in mangleTemplateArg() 1315 else if (isa<NonTypeTemplateParmDecl>(Parm)) in mangleTemplateArg() 1321 mangleTemplateArg(TD, PA, Parm); in mangleTemplateArg()
|
D | ItaniumMangle.cpp | 1475 if (const ParmVarDecl *Parm in mangleLocalName() local 1478 = dyn_cast<FunctionDecl>(Parm->getDeclContext())) { in mangleLocalName() 1480 unsigned Num = Func->getNumParams() - Parm->getFunctionScopeIndex(); in mangleLocalName() 1504 if (const ParmVarDecl *Parm in mangleLocalName() local 1507 = dyn_cast<FunctionDecl>(Parm->getDeclContext())) { in mangleLocalName() 1509 unsigned Num = Func->getNumParams() - Parm->getFunctionScopeIndex(); in mangleLocalName()
|