| /freebsd/contrib/llvm-project/clang/include/clang/Analysis/Analyses/ |
| H A D | CalledOnceCheck.h | 24 class ParmVarDecl; variable 59 virtual void handleDoubleCall(const ParmVarDecl *Parameter, const Expr *Call, in handleDoubleCall() 66 virtual void handleNeverCalled(const ParmVarDecl *Parameter, in handleNeverCalled() 73 virtual void handleCapturedNeverCalled(const ParmVarDecl *Parameter, in handleCapturedNeverCalled() 89 virtual void handleNeverCalled(const ParmVarDecl *Parameter, in handleNeverCalled()
|
| H A D | ExprMutationAnalyzer.h | 136 bool isMutated(const ParmVarDecl *Parm) { in isMutated() 139 const Stmt *findMutation(const ParmVarDecl *Parm); 143 llvm::DenseMap<const ParmVarDecl *, const Stmt *> Results;
|
| /freebsd/contrib/llvm-project/clang/lib/AST/ |
| H A D | ExprConcepts.cpp | 116 ArrayRef<ParmVarDecl *> LocalParameters, in RequiresExpr() 128 for (ParmVarDecl *P : LocalParameters) { in RequiresExpr() 146 llvm::copy(LocalParameters, getTrailingObjects<ParmVarDecl *>()); in RequiresExpr() 168 SourceLocation LParenLoc, ArrayRef<ParmVarDecl *> LocalParameters, in Create() 172 C.Allocate(totalSizeToAlloc<ParmVarDecl *, concepts::Requirement *>( in Create() 184 C.Allocate(totalSizeToAlloc<ParmVarDecl *, concepts::Requirement *>( in Create()
|
| H A D | SelectorLocationsKind.cpp | 55 SourceLocation getArgLoc<ParmVarDecl>(ParmVarDecl *Arg) { in getArgLoc() 115 ArrayRef<ParmVarDecl *> Args, in hasStandardSelectorLocs() 123 ArrayRef<ParmVarDecl *> Args, in getStandardSelectorLoc()
|
| H A D | CommentSema.cpp | 718 ArrayRef<const ParmVarDecl *> ParamVars = getParamVars(); in resolveParamCommandIndexes() 753 SmallVector<const ParmVarDecl *, 8> OrphanedParamDecls; in resolveParamCommandIndexes() 785 const ParmVarDecl *CorrectedPVD = OrphanedParamDecls[CorrectedParamIndex]; in resolveParamCommandIndexes() 959 ArrayRef<const ParmVarDecl *> Sema::getParamVars() { in getParamVars() 970 ArrayRef<const ParmVarDecl *> ParamVars) { in resolveParmVarReference() 983 ArrayRef<const ParmVarDecl *> ParamVars) { in correctTypoInParmVarReference() 986 const ParmVarDecl *Param = ParamVars[i]; in correctTypoInParmVarReference()
|
| H A D | Decl.cpp | 1117 if (isa<ParmVarDecl>(VD)) in isPlaceholderVar() 1144 if (isa<ParmVarDecl>(this) || isTemplateParameter()) in isReserved() 1321 else if (isa<ParmVarDecl>(ContextDecl)) in getLVForClosure() 1871 if (isa<ParmVarDecl>(this)) in declarationReplaces() 2398 if (auto *P = dyn_cast<ParmVarDecl>(this)) in hasInit() 2494 if (isa<ParmVarDecl>(this)) in mightBeUsableInConstantExpressions() 2945 ParmVarDecl *ParmVarDecl::Create(ASTContext &C, DeclContext *DC, in Create() 2950 return new (C, DC) ParmVarDecl(ParmVar, C, DC, StartLoc, IdLoc, Id, T, TInfo, in Create() 2954 QualType ParmVarDecl::getOriginalType() const { in getOriginalType() 2962 ParmVarDecl *ParmVarDecl::CreateDeserialized(ASTContext &C, GlobalDeclID ID) { in CreateDeserialized() [all …]
|
| /freebsd/contrib/llvm-project/clang/lib/Analysis/ |
| H A D | CalledOnceCheck.cpp | 395 const ParmVarDecl * 400 return dyn_cast<ParmVarDecl>(DR->getDecl()); in findReferencedParmVarDecl() 645 if (const auto *P = dyn_cast<ParmVarDecl>(Capture.getVariable())) { in findCapturesToTrack() 773 const ParmVarDecl *Parameter = getParameter(IndexedStatus.index()); in checkEntry() 908 const ParmVarDecl *Parameter = getParameter(Index); in processCallFor() 949 const ParmVarDecl *Parameter = getParameter(Index); in findAndReportNotCalledBranches() 963 static bool isExplicitlyMarked(const ParmVarDecl *Parameter) { in isExplicitlyMarked() 1035 bool shouldBeCalledOnce(const ParmVarDecl *Parameter) const { in shouldBeCalledOnce() 1044 const ParmVarDecl *Param) { in shouldBeCalledOnce() 1087 const ParmVarDecl *Parameter = Method->getParamDecl(ParamIndex); in shouldBeCalledOnce() [all …]
|
| H A D | BodyFarm.cpp | 262 const ParmVarDecl *Callback, in create_call_once_funcptr_call() 288 const ParmVarDecl *Callback, in create_call_once_lambda_call() 355 const ParmVarDecl *Flag = D->getParamDecl(0); in create_call_once() 356 const ParmVarDecl *Callback = D->getParamDecl(1); in create_call_once() 439 const ParmVarDecl *PDecl = D->getParamDecl(ParamIdx); in create_call_once() 514 const ParmVarDecl *Predicate = D->getParamDecl(0); in create_dispatch_once() 524 const ParmVarDecl *Block = D->getParamDecl(1); in create_dispatch_once() 598 const ParmVarDecl *PV = D->getParamDecl(1); in create_dispatch_sync() 640 const ParmVarDecl *OldValue = D->getParamDecl(0); in create_OSAtomicCompareAndSwap() 643 const ParmVarDecl *NewValue = D->getParamDecl(1); in create_OSAtomicCompareAndSwap() [all …]
|
| /freebsd/contrib/llvm-project/clang/include/clang/AST/ |
| H A D | SelectorLocationsKind.h | 23 class ParmVarDecl; variable 65 ArrayRef<ParmVarDecl *> Args, 77 ArrayRef<ParmVarDecl *> Args,
|
| H A D | Decl.h | 71 class ParmVarDecl; variable 990 friend class ParmVarDecl; variable 1456 return isa<ParmVarDecl>(this) ? false : in isThisDeclarationADemotedDefinition() 1467 assert(!isa<ParmVarDecl>(this) && "Cannot demote ParmVarDecls!"); in demoteThisDefinitionToDeclaration() 1474 return isa<ParmVarDecl>(this) ? false : NonParmVarDeclBits.ExceptionVar; in isExceptionVariable() 1477 assert(!isa<ParmVarDecl>(this)); in setExceptionVariable() 1492 return isa<ParmVarDecl>(this) ? false : NonParmVarDeclBits.NRVOVariable; in isNRVOVariable() 1495 assert(!isa<ParmVarDecl>(this)); in setNRVOVariable() 1502 return isa<ParmVarDecl>(this) ? false : NonParmVarDeclBits.CXXForRangeDecl; in isCXXForRangeDecl() 1505 assert(!isa<ParmVarDecl>(this)); in setCXXForRangeDecl() [all …]
|
| H A D | ExprConcepts.h | 502 llvm::TrailingObjects<RequiresExpr, ParmVarDecl *, 514 unsigned numTrailingObjects(OverloadToken<ParmVarDecl *>) const { in numTrailingObjects() argument 520 ArrayRef<ParmVarDecl *> LocalParameters, 531 ArrayRef<ParmVarDecl *> LocalParameters, 539 ArrayRef<ParmVarDecl *> getLocalParameters() const { in getLocalParameters() 540 return getTrailingObjects<ParmVarDecl *>(NumLocalParameters); in getLocalParameters()
|
| H A D | CommentSema.h | 224 ArrayRef<const ParmVarDecl *> getParamVars(); 232 ArrayRef<const ParmVarDecl *> ParamVars); 237 ArrayRef<const ParmVarDecl *> ParamVars);
|
| H A D | ASTMutationListener.h | 35 class ParmVarDecl; variable 104 virtual void DefaultArgumentInstantiated(const ParmVarDecl *D) {} in DefaultArgumentInstantiated()
|
| /freebsd/contrib/llvm-project/clang/lib/StaticAnalyzer/Checkers/ |
| H A D | MIGChecker.cpp | 121 REGISTER_SET_WITH_PROGRAMSTATE(RefCountedParameters, const ParmVarDecl *) in REGISTER_TRAIT_WITH_PROGRAMSTATE() 123 static const ParmVarDecl *getOriginParam(SVal V, CheckerContext &C, in REGISTER_TRAIT_WITH_PROGRAMSTATE() 139 return cast<ParmVarDecl>(VR->getDecl()); in REGISTER_TRAIT_WITH_PROGRAMSTATE() 192 if (const ParmVarDecl *PVD = in checkPostCall() 211 const ParmVarDecl *PVD = getOriginParam(Arg, C); in checkPostCall()
|
| H A D | NonNullParamChecker.cpp | 77 for (const ParmVarDecl *Parameter : Call.parameters()) { in setBitsAccordingToParameterAttributes() 118 ArrayRef<ParmVarDecl *> parms = Call.parameters(); in checkPreCall() 253 for (const ParmVarDecl *Parameter : AbstractCall->parameters()) { in checkBeginFunction()
|
| /freebsd/contrib/llvm-project/lldb/source/Plugins/ExpressionParser/Clang/ |
| H A D | NameSearchContext.cpp | 95 SmallVector<ParmVarDecl *, 5> parm_var_decls; in AddFunDecl() 101 ParmVarDecl::Create(ast, const_cast<DeclContext *>(context), in AddFunDecl() 106 func_decl->setParams(ArrayRef<ParmVarDecl *>(parm_var_decls)); in AddFunDecl()
|
| /freebsd/contrib/llvm-project/clang/lib/Sema/ |
| H A D | SemaTemplateDeductionGuide.cpp | 210 ArrayRef<ParmVarDecl *> Params = 446 SmallVector<ParmVarDecl *, 8> Params; in transformConstructor() 524 SmallVector<ParmVarDecl *, 4> Params; in buildSimpleDeductionGuide() 533 ParmVarDecl *NewParam = in buildSimpleDeductionGuide() 534 ParmVarDecl::Create(SemaRef.Context, DC, Loc, Loc, nullptr, in buildSimpleDeductionGuide() 549 SmallVectorImpl<ParmVarDecl *> &Params, in transformFunctionProtoType() 557 ParmVarDecl *NewParam = OldParam; in transformFunctionProtoType() 621 ParmVarDecl *transformFunctionTypeParam( in transformFunctionTypeParam() 622 ParmVarDecl *OldParam, MultiLevelTemplateArgumentList &Args, in transformFunctionTypeParam() 672 ParmVarDecl *NewParam = ParmVarDecl::Create( in transformFunctionTypeParam() [all …]
|
| H A D | SemaLambda.cpp | 317 if (ParmVarDecl *Param = dyn_cast<ParmVarDecl>(ManglingContextDecl)) { in getCurrentMangleNumberContext() 352 !(ManglingContextDecl && isa<ParmVarDecl>(ManglingContextDecl))) || in getCurrentMangleNumberContext() 423 ParmVarDecl *Param = Method->getParamDecl(0); in DiagnoseInvalidExplicitObjectParameterInLambda() 1034 StorageClass SC, ArrayRef<ParmVarDecl *> Params, in CompleteLambdaCallOperator() 1120 return isa<ParmVarDecl>(D) && in ActOnLambdaExpressionAfterIntroducer() 1121 cast<ParmVarDecl>(D)->getType()->isTemplateTypeParmType(); in ActOnLambdaExpressionAfterIntroducer() 1393 auto *Param = cast<ParmVarDecl>(P.Param); in ActOnLambdaClosureParameters() 1422 SmallVector<ParmVarDecl *, 8> Params; in ActOnStartOfLambdaDefinition() 1450 auto *Param = cast<ParmVarDecl>(FTI.Params[I].Param); in ActOnStartOfLambdaDefinition() 1501 auto CheckRedefinition = [&](ParmVarDecl *Param) { in ActOnStartOfLambdaDefinition() [all …]
|
| H A D | SemaSYCL.cpp | 378 using ParmDeclMap = llvm::DenseMap<ParmVarDecl *, VarDecl *>; 389 const ParmVarDecl *PVD = dyn_cast<ParmVarDecl>(DRE->getDecl()); in TransformDeclRefExpr() 441 for (ParmVarDecl *PVD : FD->parameters()) { in BuildSYCLKernelCallStmt()
|
| H A D | SemaTemplateInstantiate.cpp | 713 Sema &SemaRef, SourceLocation PointOfInstantiation, ParmVarDecl *Param, in InstantiatingTemplate() 1056 ParmVarDecl *Param = cast<ParmVarDecl>(Active->Entity); in PrintInstantiationStack() 1401 bool maybeInstantiateFunctionParameterToScope(ParmVarDecl *OldParm); 1463 if (auto *PVD = dyn_cast_if_present<ParmVarDecl>(VD); in TryExpandParameterPacks() 1474 void ExpandingFunctionParameterPack(ParmVarDecl *Pack) { in ExpandingFunctionParameterPack() 1727 ParmVarDecl *TransformFunctionTypeParam(ParmVarDecl *OldParm, 1791 for (ParmVarDecl *PVD : MD->parameters()) { in RebuildLambdaExpr() 1895 RequiresExprBodyDecl *Body, ArrayRef<ParmVarDecl *> Params, 1897 SmallVectorImpl<ParmVarDecl *> &TransParams, 1955 if (ParmVarDecl *PVD = dyn_cast<ParmVarDecl>(D); in TransformDecl() [all …]
|
| H A D | SemaSwift.cpp | 226 const ParmVarDecl *HandlerParam = getFunctionOrMethodParam( in checkSwiftAsyncErrorBlock() 527 ArrayRef<ParmVarDecl *> Params; in DiagnoseName() 573 llvm::count_if(Params, [](const ParmVarDecl *Param) -> bool { in DiagnoseName() 699 const ParmVarDecl *CompletionBlock = in handleAsyncAttr() 727 QualType type = cast<ParmVarDecl>(D)->getType(); in AddParameterABIAttr()
|
| /freebsd/contrib/llvm-project/clang/lib/CodeGen/ |
| H A D | CGHLSLRuntime.h | 62 class ParmVarDecl; variable 136 llvm::Value *emitInputSemantic(llvm::IRBuilder<> &B, const ParmVarDecl &D,
|
| /freebsd/contrib/llvm-project/clang/include/clang/Analysis/ |
| H A D | AnyCall.h | 144 ArrayRef<ParmVarDecl *> parameters() const { in parameters() 159 using param_const_iterator = ArrayRef<ParmVarDecl *>::const_iterator;
|
| /freebsd/contrib/llvm-project/clang/lib/StaticAnalyzer/Checkers/WebKit/ |
| H A D | ForwardDeclChecker.cpp | 263 void visitCallArg(const Expr *Arg, const ParmVarDecl *Param, in visitCallArg() 280 if (isa<ParmVarDecl>(ValDecl)) in visitCallArg() 292 void reportUnknownArgType(const Expr *CA, const ParmVarDecl *Param, in reportUnknownArgType()
|
| /freebsd/contrib/llvm-project/clang/include/clang/StaticAnalyzer/Checkers/ |
| H A D | SValExplainer.h | 118 if (auto D = dyn_cast<ParmVarDecl>(V->getDecl())) in VisitSymbolRegionValue() 220 if (isa<ParmVarDecl>(VD)) in VisitNonParamVarRegion() 258 const ParmVarDecl *PVD = R->getDecl(); in VisitParamVarRegion()
|