Home
last modified time | relevance | path

Searched refs:FuncDecl (Results 1 – 7 of 7) sorted by relevance

/freebsd-13.1/contrib/llvm-project/clang/lib/StaticAnalyzer/Checkers/
H A DFuchsiaHandleChecker.cpp324 if (!FuncDecl) { in checkPreCall()
336 if (Arg >= FuncDecl->getNumParams()) in checkPreCall()
338 const ParmVarDecl *PVD = FuncDecl->getParamDecl(Arg); in checkPreCall()
367 if (!FuncDecl) in checkPostCall()
383 if (hasFuchsiaAttr<AcquireHandleAttr>(FuncDecl)) { in checkPostCall()
390 OS << "Function '" << FuncDecl->getDeclName() in checkPostCall()
406 OS << "Function '" << FuncDecl->getDeclName() in checkPostCall()
416 if (Arg >= FuncDecl->getNumParams()) in checkPostCall()
575 const FunctionDecl *FuncDecl = in checkPointerEscape() local
580 if (FuncDecl && in checkPointerEscape()
[all …]
/freebsd-13.1/contrib/llvm-project/clang/lib/ARCMigrate/
H A DObjCMT.cpp69 const FunctionDecl *FuncDecl, bool ResultAnnotated);
1433 if (const FunctionDecl *FuncDecl = dyn_cast<FunctionDecl>(Decl)) { in migrateCFAnnotation() local
1478 commit.insertAfterToken(FuncDecl->getEndLoc(), AnnotationString); in AddCFAnnotations()
1483 for (FunctionDecl::param_const_iterator pi = FuncDecl->param_begin(), in AddCFAnnotations()
1484 pe = FuncDecl->param_end(); pi != pe; ++pi, ++i) { in AddCFAnnotations()
1507 if (FuncDecl->hasBody()) in migrateAddFunctionAnnotation()
1511 getSummaryManager(Ctx).getSummary(AnyCall(FuncDecl)); in migrateAddFunctionAnnotation()
1519 if (FuncIsReturnAnnotated && FuncDecl->getNumParams() == 0) in migrateAddFunctionAnnotation()
1528 else if (!AuditedType(FuncDecl->getReturnType())) in migrateAddFunctionAnnotation()
1536 pe = FuncDecl->param_end(); pi != pe; ++pi, ++i) { in migrateAddFunctionAnnotation()
[all …]
/freebsd-13.1/contrib/llvm-project/clang/lib/Analysis/
H A DExprMutationAnalyzer.cpp539 const auto FuncDecl = hasDeclaration(functionDecl().bind("func")); in findFunctionArgMutation() local
544 expr(anyOf(callExpr(NonConstRefParam, IsInstantiated, FuncDecl, in findFunctionArgMutation()
548 FuncDecl))) in findFunctionArgMutation()
/freebsd-13.1/contrib/llvm-project/clang/lib/Parse/
H A DParser.cpp1266 Decl *FuncDecl = Actions.HandleDeclarator(ParentScope, D, in ParseFunctionDefinition() local
1268 D.complete(FuncDecl); in ParseFunctionDefinition()
1270 if (FuncDecl) { in ParseFunctionDefinition()
1272 StashAwayMethodOrFunctionBodyTokens(FuncDecl); in ParseFunctionDefinition()
1274 return FuncDecl; in ParseFunctionDefinition()
/freebsd-13.1/contrib/llvm-project/clang/lib/Sema/
H A DSemaObjCProperty.cpp1543 if (const FunctionDecl *FuncDecl = CXXCE->getDirectCallee()) in ActOnPropertyImplDecl() local
1544 if (!FuncDecl->isTrivial()) in ActOnPropertyImplDecl()
1549 Diag(FuncDecl->getBeginLoc(), diag::note_callee_decl) in ActOnPropertyImplDecl()
1550 << FuncDecl; in ActOnPropertyImplDecl()
H A DSemaDeclAttr.cpp1645 const auto *FuncDecl = cast<FunctionDecl>(D); in AddAllocAlignAttr() local
1646 if (!checkFunctionOrMethodParameterIndex(*this, FuncDecl, TmpAttr, in AddAllocAlignAttr()
1655 << FuncDecl->getParamDecl(Idx.getASTIndex())->getSourceRange(); in AddAllocAlignAttr()
/freebsd-13.1/contrib/llvm-project/clang/lib/CodeGen/
H A DCGCall.cpp4522 AbstractAssumeAlignedAttrEmitter(CodeGenFunction &CGF_, const Decl *FuncDecl) in AbstractAssumeAlignedAttrEmitter() argument
4524 if (!FuncDecl) in AbstractAssumeAlignedAttrEmitter()
4526 AA = FuncDecl->getAttr<AlignedAttrTy>(); in AbstractAssumeAlignedAttrEmitter()
4566 AssumeAlignedAttrEmitter(CodeGenFunction &CGF_, const Decl *FuncDecl) in AssumeAlignedAttrEmitter() argument
4567 : AbstractAssumeAlignedAttrEmitter(CGF_, FuncDecl) { in AssumeAlignedAttrEmitter()
4584 AllocAlignAttrEmitter(CodeGenFunction &CGF_, const Decl *FuncDecl, in AllocAlignAttrEmitter() argument
4586 : AbstractAssumeAlignedAttrEmitter(CGF_, FuncDecl) { in AllocAlignAttrEmitter()