Home
last modified time | relevance | path

Searched refs:ParmVarDecl (Results 1 – 25 of 104) sorted by relevance

12345

/external/clang/include/clang/AST/
DSelectorLocationsKind.h24 class ParmVarDecl; variable
66 ArrayRef<ParmVarDecl *> Args,
78 ArrayRef<ParmVarDecl *> Args,
DDecl.h43 class ParmVarDecl; variable
766 friend class ParmVarDecl; variable
1188 return isa<ParmVarDecl>(this) ? false : NonParmVarDeclBits.ExceptionVar; in isExceptionVariable()
1191 assert(!isa<ParmVarDecl>(this)); in setExceptionVariable()
1206 return isa<ParmVarDecl>(this) ? false : NonParmVarDeclBits.NRVOVariable; in isNRVOVariable()
1209 assert(!isa<ParmVarDecl>(this)); in setNRVOVariable()
1216 return isa<ParmVarDecl>(this) ? false : NonParmVarDeclBits.CXXForRangeDecl; in isCXXForRangeDecl()
1219 assert(!isa<ParmVarDecl>(this)); in setCXXForRangeDecl()
1228 return isa<ParmVarDecl>(this) ? false : NonParmVarDeclBits.ARCPseudoStrong; in isARCPseudoStrong()
1231 assert(!isa<ParmVarDecl>(this)); in setARCPseudoStrong()
[all …]
DCommentSema.h223 ArrayRef<const ParmVarDecl *> getParamVars();
231 ArrayRef<const ParmVarDecl *> ParamVars);
236 ArrayRef<const ParmVarDecl *> ParamVars);
DDeclObjC.h207 ParmVarDecl **getParams() { in getParams()
208 return reinterpret_cast<ParmVarDecl **>(ParamsAndSelLocs); in getParams()
210 const ParmVarDecl *const *getParams() const { in getParams()
211 return reinterpret_cast<const ParmVarDecl *const *>(ParamsAndSelLocs); in getParams()
223 ArrayRef<ParmVarDecl*> Params,
349 typedef const ParmVarDecl *const *param_const_iterator;
350 typedef ParmVarDecl *const *param_iterator;
376 ArrayRef<ParmVarDecl*> parameters() const { in parameters()
377 return llvm::makeArrayRef(const_cast<ParmVarDecl**>(getParams()), in parameters()
385 ArrayRef<ParmVarDecl*> Params,
[all …]
DTypeLoc.h26 class ParmVarDecl; variable
1292 ArrayRef<ParmVarDecl *> getParams() const { in getParams()
1297 ParmVarDecl **getParmArray() const { in getParmArray()
1298 return (ParmVarDecl**) getExtraLocalData(); in getParmArray()
1306 ParmVarDecl *getParam(unsigned i) const { return getParmArray()[i]; } in getParam()
1307 void setParam(unsigned i, ParmVarDecl *VD) { getParmArray()[i] = VD; } in setParam()
1329 return getNumParams() * sizeof(ParmVarDecl *); in getExtraLocalDataSize()
1333 return llvm::alignOf<ParmVarDecl*>(); in getExtraLocalDataAlignment()
DExprCXX.h939 llvm::PointerIntPair<ParmVarDecl *, 1, bool> Param;
944 CXXDefaultArgExpr(StmtClass SC, SourceLocation Loc, ParmVarDecl *param) in CXXDefaultArgExpr()
953 CXXDefaultArgExpr(StmtClass SC, SourceLocation Loc, ParmVarDecl *param, in CXXDefaultArgExpr()
968 ParmVarDecl *Param) { in Create()
975 ParmVarDecl *Param, Expr *SubExpr);
978 const ParmVarDecl *getParam() const { return Param.getPointer(); } in getParam()
979 ParmVarDecl *getParam() { return Param.getPointer(); } in getParam()
3841 ParmVarDecl *ParamPack;
3849 FunctionParmPackExpr(QualType T, ParmVarDecl *ParamPack,
3851 ParmVarDecl *const *Params);
[all …]
/external/clang/lib/AST/
DSelectorLocationsKind.cpp56 SourceLocation getArgLoc<ParmVarDecl>(ParmVarDecl *Arg) { in getArgLoc()
116 ArrayRef<ParmVarDecl *> Args, in hasStandardSelectorLocs()
124 ArrayRef<ParmVarDecl *> Args, in getStandardSelectorLoc()
DDecl.cpp1118 if (isa<ParmVarDecl>(ContextDecl)) in getLVForClosure()
1532 if (isa<ParmVarDecl>(this)) in declarationReplaces()
2286 ParmVarDecl *ParmVarDecl::Create(ASTContext &C, DeclContext *DC, in Create()
2291 return new (C, DC) ParmVarDecl(ParmVar, C, DC, StartLoc, IdLoc, Id, T, TInfo, in Create()
2295 QualType ParmVarDecl::getOriginalType() const { in getOriginalType()
2303 ParmVarDecl *ParmVarDecl::CreateDeserialized(ASTContext &C, unsigned ID) { in CreateDeserialized()
2305 ParmVarDecl(ParmVar, C, nullptr, SourceLocation(), SourceLocation(), in CreateDeserialized()
2309 SourceRange ParmVarDecl::getSourceRange() const { in getSourceRange()
2324 Expr *ParmVarDecl::getDefaultArg() { in getDefaultArg()
2336 SourceRange ParmVarDecl::getDefaultArgRange() const { in getDefaultArgRange()
[all …]
DCommentSema.cpp726 ArrayRef<const ParmVarDecl *> ParamVars = getParamVars(); in resolveParamCommandIndexes()
761 SmallVector<const ParmVarDecl *, 8> OrphanedParamDecls; in resolveParamCommandIndexes()
793 const ParmVarDecl *CorrectedPVD = OrphanedParamDecls[CorrectedParamIndex]; in resolveParamCommandIndexes()
931 ArrayRef<const ParmVarDecl *> Sema::getParamVars() { in getParamVars()
942 ArrayRef<const ParmVarDecl *> ParamVars) { in resolveParmVarReference()
1009 ArrayRef<const ParmVarDecl *> ParamVars) { in correctTypoInParmVarReference()
DExprCXX.cpp766 ParmVarDecl *Param, Expr *SubExpr) { in Create()
1468 FunctionParmPackExpr::FunctionParmPackExpr(QualType T, ParmVarDecl *ParamPack, in FunctionParmPackExpr()
1471 ParmVarDecl *const *Params) in FunctionParmPackExpr()
1477 reinterpret_cast<ParmVarDecl **>(this + 1)); in FunctionParmPackExpr()
1482 ParmVarDecl *ParamPack, SourceLocation NameLoc, in Create()
1483 ArrayRef<ParmVarDecl *> Params) { in Create()
1485 sizeof(ParmVarDecl*) * Params.size())) in Create()
1493 sizeof(ParmVarDecl*) * NumParams)) in CreateEmpty()
/external/clang/test/Misc/
Dast-dump-decl.m32 // CHECK-NEXT: ParmVarDecl{{.*}} i 'int'
43 // CHECK-NEXT: ParmVarDecl{{.*}} i 'int'
108 // CHECK-NEXT: ParmVarDecl{{.*}} foo
111 // CHECK-NEXT: ParmVarDecl{{.*}} bar
133 // CHECK-NEXT: ParmVarDecl{{.*}} y 'int'
/external/clang/lib/Sema/
DSemaTemplateInstantiate.cpp290 Sema &SemaRef, SourceLocation PointOfInstantiation, ParmVarDecl *Param, in InstantiatingTemplate()
497 ParmVarDecl *Param = cast<ParmVarDecl>(Active->Entity); in PrintInstantiationStack()
673 void ExpandingFunctionParameterPack(ParmVarDecl *Pack) { in ExpandingFunctionParameterPack()
780 ExprResult RebuildParmVarDeclRefExpr(ParmVarDecl *PD, SourceLocation Loc);
784 ParmVarDecl *PD);
804 ParmVarDecl *TransformFunctionTypeParam(ParmVarDecl *OldParm,
1203 TemplateInstantiator::RebuildParmVarDeclRefExpr(ParmVarDecl *PD, in RebuildParmVarDeclRefExpr()
1213 ParmVarDecl *D = E->getExpansion(getSema().ArgumentPackSubstitutionIndex); in TransformFunctionParmPackExpr()
1217 return RebuildParmVarDeclRefExpr(cast<ParmVarDecl>(VD), E->getExprLoc()); in TransformFunctionParmPackExpr()
1226 SmallVector<ParmVarDecl *, 8> Parms; in TransformFunctionParmPackExpr()
[all …]
DSemaLambda.cpp294 if (ParmVarDecl *Param = dyn_cast<ParmVarDecl>(ManglingContextDecl)) { in getCurrentMangleNumberContext()
317 !(ManglingContextDecl && isa<ParmVarDecl>(ManglingContextDecl))) || in getCurrentMangleNumberContext()
357 ArrayRef<ParmVarDecl *> Params) { in startLambdaDefinition()
416 CheckParmsForFunctionDef(const_cast<ParmVarDecl **>(Params.begin()), in startLambdaDefinition()
417 const_cast<ParmVarDecl **>(Params.end()), in startLambdaDefinition()
478 ParmVarDecl *Param = CallOperator->getParamDecl(p); in addLambdaParameters()
828 SmallVector<ParmVarDecl *, 8> Params; in ActOnStartOfLambdaDefinition()
873 Params.push_back(cast<ParmVarDecl>(FTI.Params[i].Param)); in ActOnStartOfLambdaDefinition()
1147 std::mem_fn(&ParmVarDecl::hasAttr<PassObjectSizeAttr>))) in addFunctionPointerConversion()
1232 SmallVector<ParmVarDecl *, 4> InvokerParams; in addFunctionPointerConversion()
[all …]
DSemaExprObjC.cpp297 ParmVarDecl *value = ParmVarDecl::Create(S.Context, Method, in getNSNumberFactoryMethod()
351 ParmVarDecl *ParamDecl = Method->parameters()[0]; in BuildObjCNumericLiteral()
549 ParmVarDecl *value = in BuildObjCBoxedExpr()
550 ParmVarDecl::Create(Context, M, in BuildObjCBoxedExpr()
661 SmallVector<ParmVarDecl *, 2> Params; in BuildObjCBoxedExpr()
663 ParmVarDecl *bytes = in BuildObjCBoxedExpr()
664 ParmVarDecl::Create(Context, M, in BuildObjCBoxedExpr()
673 ParmVarDecl *type = in BuildObjCBoxedExpr()
674 ParmVarDecl::Create(Context, M, in BuildObjCBoxedExpr()
718 ParmVarDecl *ParamDecl = BoxingMethod->parameters()[0]; in BuildObjCBoxedExpr()
[all …]
DSemaTemplateVariadic.cpp144 if ((D && isa<ParmVarDecl>(D)) || InLambda) in TraverseDecl()
563 if (isa<ParmVarDecl>(ND)) in CheckParameterPacksForExpansion()
664 if (isa<ParmVarDecl>(ND)) { in getNumArgumentsInExpansion()
764 ParmVarDecl *Param = cast<ParmVarDecl>(Chunk.Fun.Params[i].Param); in containsUnexpandedParameterPacks()
/external/clang/lib/Analysis/
DBodyFarm.cpp177 const ParmVarDecl *Predicate = D->getParamDecl(0); in create_dispatch_once()
187 const ParmVarDecl *Block = D->getParamDecl(1); in create_dispatch_once()
253 const ParmVarDecl *PV = D->getParamDecl(1); in create_dispatch_sync()
295 const ParmVarDecl *OldValue = D->getParamDecl(0); in create_OSAtomicCompareAndSwap()
298 const ParmVarDecl *NewValue = D->getParamDecl(1); in create_OSAtomicCompareAndSwap()
303 const ParmVarDecl *TheValue = D->getParamDecl(2); in create_OSAtomicCompareAndSwap()
DConsumed.cpp502 void VisitParmVarDecl(const ParmVarDecl *Param);
620 const ParmVarDecl *Param = FunD->getParamDecl(Index - Offset); in handleCall()
867 void ConsumedStmtVisitor::VisitParmVarDecl(const ParmVarDecl *Param) { in VisitParmVarDecl()
1119 if (isa<ParmVarDecl>(DM.first)) { in checkParamsForReturnTypestate()
1120 const ParmVarDecl *Param = cast<ParmVarDecl>(DM.first); in checkParamsForReturnTypestate()
/external/clang/include/clang/StaticAnalyzer/Core/PathSensitive/
DCallEvent.h352 typedef std::const_mem_fun_t<QualType, ParmVarDecl> get_type_fun;
360 virtual ArrayRef<ParmVarDecl*> parameters() const = 0;
362 typedef llvm::mapped_iterator<ArrayRef<ParmVarDecl*>::iterator, get_type_fun>
372 get_type_fun(&ParmVarDecl::getType)); in param_type_begin()
377 get_type_fun(&ParmVarDecl::getType)); in param_type_end()
425 ArrayRef<ParmVarDecl *> parameters() const override;
567 ArrayRef<ParmVarDecl*> parameters() const override;
939 ArrayRef<ParmVarDecl*> parameters() const override;
/external/clang/unittests/AST/
DSourceLocationTest.cpp80 TEST(ParmVarDecl, KNRLocation) { in TEST() argument
81 LocationVerifier<ParmVarDecl> Verifier; in TEST()
86 TEST(ParmVarDecl, KNRRange) { in TEST() argument
87 RangeVerifier<ParmVarDecl> Verifier; in TEST()
/external/clang/lib/StaticAnalyzer/Core/
DCallEvent.cpp307 ArrayRef<ParmVarDecl*> parameters) { in addParameterValuesToBindings()
314 ArrayRef<ParmVarDecl*>::iterator I = parameters.begin(), E = parameters.end(); in addParameterValuesToBindings()
316 const ParmVarDecl *ParamDecl = *I; in addParameterValuesToBindings()
329 ArrayRef<ParmVarDecl*> AnyFunctionCall::parameters() const { in parameters()
585 ArrayRef<ParmVarDecl*> BlockCall::parameters() const { in parameters()
602 ArrayRef<ParmVarDecl*> Params; in getInitialStackFrameContents()
664 ArrayRef<ParmVarDecl*> ObjCMethodCall::parameters() const { in parameters()
/external/clang/lib/StaticAnalyzer/Checkers/
DCallAndMessageChecker.cpp77 const ParmVarDecl *ParamDecl) const;
94 const ParmVarDecl *ParamDecl, const char *BD) const;
144 const ParmVarDecl *ParamDecl, in uninitRefOrPointer()
195 const ParmVarDecl *ParamDecl in PreVisitProcessArg()
429 const ParmVarDecl *ParamDecl = nullptr; in checkPreCall()
/external/clang/include/clang/Sema/
DTemplate.h181 typedef SmallVector<ParmVarDecl *, 4> DeclArgumentPack;
335 void InstantiatedLocalPackArg(const Decl *D, ParmVarDecl *Inst);
489 SmallVectorImpl<ParmVarDecl *> &Params);
DSemaInternal.h33 cast<ParmVarDecl>(FTI.Params[0].Param)->getType()->isVoidType(); in FTIHasSingleVoidParameter()
46 return !isa<ParmVarDecl>(Var) && in IsVariableAConstantExpression()
/external/clang/unittests/Tooling/
DRecursiveASTVisitorTestDeclVisitor.cpp39 bool VisitParmVarDecl(ParmVarDecl *ParamVar) { in VisitParmVarDecl()
/external/clang/tools/libclang/
DIndexDecl.cpp42 if (const ParmVarDecl *Parm = dyn_cast<ParmVarDecl>(D)) { in handleDeclarator()

12345