/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 | 132 bool isMutated(const ParmVarDecl *Parm) { in isMutated() 135 const Stmt *findMutation(const ParmVarDecl *Parm); 139 llvm::DenseMap<const ParmVarDecl *, const Stmt *> Results;
|
/freebsd/contrib/llvm-project/clang/lib/Analysis/ |
H A D | CalledOnceCheck.cpp | 397 const ParmVarDecl * 402 return dyn_cast<ParmVarDecl>(DR->getDecl()); in findReferencedParmVarDecl() 647 if (const auto *P = dyn_cast<ParmVarDecl>(Capture.getVariable())) { in findCapturesToTrack() 775 const ParmVarDecl *Parameter = getParameter(IndexedStatus.index()); in checkEntry() 910 const ParmVarDecl *Parameter = getParameter(Index); in processCallFor() 951 const ParmVarDecl *Parameter = getParameter(Index); in findAndReportNotCalledBranches() 965 static bool isExplicitlyMarked(const ParmVarDecl *Parameter) { in isExplicitlyMarked() 1037 bool shouldBeCalledOnce(const ParmVarDecl *Parameter) const { in shouldBeCalledOnce() 1046 const ParmVarDecl *Param) { in shouldBeCalledOnce() 1089 const ParmVarDecl *Parameter = Method->getParamDecl(ParamIndex); in shouldBeCalledOnce() [all …]
|
H A D | ExprMutationAnalyzer.cpp | 641 const auto *Parm = Nodes.getNodeAs<ParmVarDecl>("parm"); in findFunctionArgMutation() 642 const ArrayRef<ParmVarDecl *> AllParams = in findFunctionArgMutation() 680 for (const ParmVarDecl *Parm : Ctor->parameters()) { in FunctionParmMutationAnalyzer() 691 FunctionParmMutationAnalyzer::findMutation(const ParmVarDecl *Parm) { in findMutation()
|
/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 | 68 class ParmVarDecl; variable 964 friend class ParmVarDecl; variable 1418 return isa<ParmVarDecl>(this) ? false : in isThisDeclarationADemotedDefinition() 1429 assert(!isa<ParmVarDecl>(this) && "Cannot demote ParmVarDecls!"); in demoteThisDefinitionToDeclaration() 1436 return isa<ParmVarDecl>(this) ? false : NonParmVarDeclBits.ExceptionVar; in isExceptionVariable() 1439 assert(!isa<ParmVarDecl>(this)); in setExceptionVariable() 1454 return isa<ParmVarDecl>(this) ? false : NonParmVarDeclBits.NRVOVariable; in isNRVOVariable() 1457 assert(!isa<ParmVarDecl>(this)); in setNRVOVariable() 1464 return isa<ParmVarDecl>(this) ? false : NonParmVarDeclBits.CXXForRangeDecl; in isCXXForRangeDecl() 1467 assert(!isa<ParmVarDecl>(this)); in setCXXForRangeDecl() [all …]
|
H A D | ASTMutationListener.h | 35 class ParmVarDecl; variable 104 virtual void DefaultArgumentInstantiated(const ParmVarDecl *D) {} in DefaultArgumentInstantiated()
|
H A D | DeclObjC.h | 201 ParmVarDecl **getParams() { in getParams() 202 return reinterpret_cast<ParmVarDecl **>(ParamsAndSelLocs); in getParams() 204 const ParmVarDecl *const *getParams() const { in getParams() 205 return reinterpret_cast<const ParmVarDecl *const *>(ParamsAndSelLocs); in getParams() 217 ArrayRef<ParmVarDecl*> Params, 349 using param_const_iterator = const ParmVarDecl *const *; 350 using param_iterator = ParmVarDecl *const *; 373 ArrayRef<ParmVarDecl*> parameters() const { in parameters() 374 return llvm::ArrayRef(const_cast<ParmVarDecl **>(getParams()), NumParams); in parameters() 377 ParmVarDecl *getParamDecl(unsigned Idx) { in getParamDecl() [all …]
|
/freebsd/contrib/llvm-project/clang/lib/AST/ |
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 | Decl.cpp | 1111 if (isa<ParmVarDecl>(VD)) in isPlaceholderVar() 1138 if (isa<ParmVarDecl>(this) || isTemplateParameter()) in isReserved() 1315 else if (isa<ParmVarDecl>(ContextDecl)) in getLVForClosure() 1854 if (isa<ParmVarDecl>(this)) in declarationReplaces() 2381 if (auto *P = dyn_cast<ParmVarDecl>(this)) in hasInit() 2460 if (isa<ParmVarDecl>(this)) in mightBeUsableInConstantExpressions() 2907 ParmVarDecl *ParmVarDecl::Create(ASTContext &C, DeclContext *DC, in Create() 2912 return new (C, DC) ParmVarDecl(ParmVar, C, DC, StartLoc, IdLoc, Id, T, TInfo, in Create() 2916 QualType ParmVarDecl::getOriginalType() const { in getOriginalType() 2924 ParmVarDecl *ParmVarDecl::CreateDeserialized(ASTContext &C, GlobalDeclID ID) { in CreateDeserialized() [all …]
|
/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()
|
/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 | 209 ArrayRef<ParmVarDecl *> Params = 424 SmallVector<ParmVarDecl *, 8> Params; in transformConstructor() 459 SmallVector<ParmVarDecl *, 4> Params; in buildSimpleDeductionGuide() 468 ParmVarDecl *NewParam = in buildSimpleDeductionGuide() 469 ParmVarDecl::Create(SemaRef.Context, DC, Loc, Loc, nullptr, in buildSimpleDeductionGuide() 503 SmallVectorImpl<ParmVarDecl *> &Params, in transformFunctionProtoType() 511 ParmVarDecl *NewParam = OldParam; in transformFunctionProtoType() 575 ParmVarDecl *transformFunctionTypeParam( in transformFunctionTypeParam() 576 ParmVarDecl *OldParam, MultiLevelTemplateArgumentList &Args, in transformFunctionTypeParam() 626 ParmVarDecl *NewParam = ParmVarDecl::Create( in transformFunctionTypeParam() [all …]
|
H A D | SemaLambda.cpp | 302 if (ParmVarDecl *Param = dyn_cast<ParmVarDecl>(ManglingContextDecl)) { in getCurrentMangleNumberContext() 332 !(ManglingContextDecl && isa<ParmVarDecl>(ManglingContextDecl))) || in getCurrentMangleNumberContext() 402 ParmVarDecl *Param = Method->getParamDecl(0); in DiagnoseInvalidExplicitObjectParameterInLambda() 1012 StorageClass SC, ArrayRef<ParmVarDecl *> Params, in CompleteLambdaCallOperator() 1096 return isa<ParmVarDecl>(D) && in ActOnLambdaExpressionAfterIntroducer() 1097 cast<ParmVarDecl>(D)->getType()->isTemplateTypeParmType(); in ActOnLambdaExpressionAfterIntroducer() 1366 auto *Param = cast<ParmVarDecl>(P.Param); in ActOnLambdaClosureParameters() 1395 SmallVector<ParmVarDecl *, 8> Params; in ActOnStartOfLambdaDefinition() 1423 auto *Param = cast<ParmVarDecl>(FTI.Params[I].Param); in ActOnStartOfLambdaDefinition() 1471 auto CheckRedefinition = [&](ParmVarDecl *Param) { in ActOnStartOfLambdaDefinition() [all …]
|
H A D | SemaSwift.cpp | 212 const ParmVarDecl *HandlerParam = getFunctionOrMethodParam( in checkSwiftAsyncErrorBlock() 513 ArrayRef<ParmVarDecl *> Params; in DiagnoseName() 559 llvm::count_if(Params, [](const ParmVarDecl *Param) -> bool { in DiagnoseName() 685 const ParmVarDecl *CompletionBlock = in handleAsyncAttr() 713 QualType type = cast<ParmVarDecl>(D)->getType(); in AddParameterABIAttr()
|
H A D | SemaTemplateInstantiate.cpp | 688 Sema &SemaRef, SourceLocation PointOfInstantiation, ParmVarDecl *Param, in InstantiatingTemplate() 1031 ParmVarDecl *Param = cast<ParmVarDecl>(Active->Entity); in PrintInstantiationStack() 1404 void ExpandingFunctionParameterPack(ParmVarDecl *Pack) { in ExpandingFunctionParameterPack() 1615 ParmVarDecl * 1616 TransformFunctionTypeParam(ParmVarDecl *OldParm, int indexAdjustment, 1667 for (ParmVarDecl *PVD : MD->parameters()) { in TransformLambdaExpr() 1775 RequiresExprBodyDecl *Body, ArrayRef<ParmVarDecl *> Params, 1777 SmallVectorImpl<ParmVarDecl *> &TransParams, 2417 ParmVarDecl *TemplateInstantiator::TransformFunctionTypeParam( in TransformFunctionTypeParam() 2418 ParmVarDecl *OldParm, int indexAdjustment, in TransformFunctionTypeParam() [all …]
|
/freebsd/contrib/llvm-project/clang/lib/CodeGen/ |
H A D | CGHLSLRuntime.h | 57 class ParmVarDecl; variable 107 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 | UncountedLocalVarsChecker.cpp | 234 if (isa<ParmVarDecl>(MaybeGuardian)) in visitVarDecl() 257 if (dyn_cast<ParmVarDecl>(V)) { in reportBug()
|
/freebsd/contrib/llvm-project/clang/lib/StaticAnalyzer/Core/ |
H A D | CallEvent.cpp | 401 const ParmVarDecl *Parameter, SValBuilder &SVB) { in processArgument() 457 const ParmVarDecl *Param = RTDecl->getParamDecl(ArgIdx); in castArgToParamTypeIfNeeded() 465 ArrayRef<ParmVarDecl*> parameters) { in addParameterValuesToBindings() 472 ArrayRef<ParmVarDecl*>::iterator I = parameters.begin(), E = parameters.end(); in addParameterValuesToBindings() 553 ArrayRef<ParmVarDecl*> AnyFunctionCall::parameters() const { in parameters() 883 ArrayRef<ParmVarDecl*> BlockCall::parameters() const { in parameters() 900 ArrayRef<ParmVarDecl*> Params; in getInitialStackFrameContents() 972 ArrayRef<ParmVarDecl*> ObjCMethodCall::parameters() const { in parameters()
|
/freebsd/contrib/llvm-project/clang/include/clang/Sema/ |
H A D | ScopeInfo.h | 54 class ParmVarDecl; variable 221 llvm::SmallMapVector<ParmVarDecl *, Stmt *, 4> CoroutineParameterMoves; 243 llvm::SmallPtrSet<const ParmVarDecl *, 8> ModifiedNonNullParams; 875 ParmVarDecl *ExplicitObjectParameter = nullptr;
|
/freebsd/contrib/llvm-project/clang/lib/StaticAnalyzer/Checkers/RetainCountChecker/ |
H A D | RetainCountDiagnostics.cpp | 290 const ParmVarDecl *PVD = (*CE)->parameters()[*Idx]; in generateDiagnosticsForCallLike() 386 ArrayRef<const ParmVarDecl *> Parameters = Call->parameters(); in annotateConsumedSummaryMismatch() 388 const ParmVarDecl *PVD = Parameters[I]; in annotateConsumedSummaryMismatch() 437 const auto *PVD = cast<ParmVarDecl>(VR->getDecl()); in annotateStartParameter() 862 if (isa_and_nonnull<ParmVarDecl>(PDecl)) { in deriveParamLocation()
|
/freebsd/contrib/llvm-project/lldb/source/Plugins/LanguageRuntime/ObjC/AppleObjCRuntime/ |
H A D | AppleObjCDeclVendor.cpp | 360 std::vector<clang::ParmVarDecl *> parm_vars; in BuildMethod() 372 parm_vars.push_back(clang::ParmVarDecl::Create( in BuildMethod() 378 llvm::ArrayRef<clang::ParmVarDecl *>(parm_vars), in BuildMethod()
|
/freebsd/contrib/llvm-project/clang/include/clang/StaticAnalyzer/Core/PathSensitive/ |
H A D | CallEvent.h | 465 QualType operator()(ParmVarDecl *PD) const { return PD->getType(); } in operator() 474 virtual ArrayRef<ParmVarDecl *> parameters() const = 0; 477 llvm::mapped_iterator<ArrayRef<ParmVarDecl *>::iterator, GetTypeFn>; 525 ArrayRef<ParmVarDecl *> parameters() const override; 667 ArrayRef<ParmVarDecl *> parameters() const override; 1339 ArrayRef<ParmVarDecl *> parameters() const override;
|
/freebsd/contrib/llvm-project/clang/lib/AST/Interp/ |
H A D | ByteCodeEmitter.h | 64 llvm::DenseMap<const ParmVarDecl *, ParamOffset> Params;
|