Home
last modified time | relevance | path

Searched refs:Parm (Results 1 – 25 of 51) sorted by relevance

123

/external/llvm-project/clang-tools-extra/clang-tidy/readability/
DNamedParameterCheck.cpp46 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 …]
DNonConstParameterCheck.cpp42 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()
DNonConstParameterCheck.h44 void addParm(const ParmVarDecl *Parm);
/external/llvm-project/clang/test/Index/
Dctor-init-source-loc.cpp31 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/
DConfigCompileTests.cpp39 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/
DExprMutationAnalyzer.cpp561 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/
DExprMutationAnalyzer.h83 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/
DIndexDecl.cpp93 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/
DIndexDecl.cpp57 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/
DInitialization.h205 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()
DAttributeList.h254 IdentifierLoc *Parm, const AvailabilityChange &introduced, in AttributeList() argument
267 ArgsUnion PVal(Parm); in AttributeList()
/external/llvm-project/clang-tools-extra/clang-tidy/portability/
DSIMDIntrinsicsCheck.cpp30 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/
DInitialization.h253 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()
DParsedAttr.h300 IdentifierLoc *Parm, const AvailabilityChange &introduced, in ParsedAttr() argument
312 ArgsUnion PVal(Parm); in ParsedAttr()
/external/llvm-project/clang/lib/AST/
DMicrosoftMangle.cpp76 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 …]
DStmtProfile.cpp102 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/
DASTContext.h193 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);
DDeclTemplate.h263 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/
DASTContext.h303 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);
DDeclTemplate.h325 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/
DASTTraverserTest.cpp271 const auto *Parm = Func->getParamDecl(0); in TEST() local
272 const auto TL = Parm->getTypeSourceInfo()->getTypeLoc(); in TEST()
/external/llvm-project/clang/lib/Sema/
DSemaTemplateVariadic.cpp424 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/
DStmtProfile.cpp1648 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()
DMicrosoftMangle.cpp360 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()
DItaniumMangle.cpp1475 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()

123