Home
last modified time | relevance | path

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

/netbsd-src/external/apache2/llvm/dist/clang/lib/StaticAnalyzer/Checkers/
H A DFuchsiaHandleChecker.cpp323 const FunctionDecl *FuncDecl = dyn_cast_or_null<FunctionDecl>(Call.getDecl()); in checkPreCall() local
324 if (!FuncDecl) { in checkPreCall()
336 if (Arg >= FuncDecl->getNumParams()) in checkPreCall()
338 const ParmVarDecl *PVD = FuncDecl->getParamDecl(Arg); in checkPreCall()
366 const FunctionDecl *FuncDecl = dyn_cast_or_null<FunctionDecl>(Call.getDecl()); in checkPostCall() local
367 if (!FuncDecl) in checkPostCall()
378 if (const auto *TypeDefTy = FuncDecl->getReturnType()->getAs<TypedefType>()) in checkPostCall()
383 if (hasFuchsiaAttr<AcquireHandleAttr>(FuncDecl)) { in checkPostCall()
385 Notes.push_back([RetSym, FuncDecl](BugReport &BR) -> std::string { in checkPostCall()
390 OS << "Function '" << FuncDecl->getDeclName() in checkPostCall()
[all …]
/netbsd-src/external/apache2/llvm/dist/clang/lib/ARCMigrate/
H A DObjCMT.cpp69 const FunctionDecl *FuncDecl, bool ResultAnnotated);
77 const FunctionDecl *FuncDecl);
1433 if (const FunctionDecl *FuncDecl = dyn_cast<FunctionDecl>(Decl)) { in migrateCFAnnotation() local
1434 CF_BRIDGING_KIND AuditKind = migrateAddFunctionAnnotation(Ctx, FuncDecl); in migrateCFAnnotation()
1458 const FunctionDecl *FuncDecl, in AddCFAnnotations() argument
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()
1506 const FunctionDecl *FuncDecl) { in migrateAddFunctionAnnotation() argument
1507 if (FuncDecl->hasBody()) in migrateAddFunctionAnnotation()
[all …]
/netbsd-src/external/apache2/llvm/dist/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()
/netbsd-src/external/apache2/llvm/dist/clang/lib/Parse/
H A DParser.cpp1263 Decl *FuncDecl = Actions.HandleDeclarator(ParentScope, D, in ParseFunctionDefinition() local
1265 D.complete(FuncDecl); in ParseFunctionDefinition()
1267 if (FuncDecl) { in ParseFunctionDefinition()
1269 StashAwayMethodOrFunctionBodyTokens(FuncDecl); in ParseFunctionDefinition()
1271 return FuncDecl; in ParseFunctionDefinition()
/netbsd-src/external/apache2/llvm/dist/clang/lib/Sema/
H A DSemaObjCProperty.cpp1544 if (const FunctionDecl *FuncDecl = CXXCE->getDirectCallee()) in ActOnPropertyImplDecl() local
1545 if (!FuncDecl->isTrivial()) in ActOnPropertyImplDecl()
1550 Diag(FuncDecl->getBeginLoc(), diag::note_callee_decl) in ActOnPropertyImplDecl()
1551 << FuncDecl; in ActOnPropertyImplDecl()
H A DSemaDeclAttr.cpp1644 const auto *FuncDecl = cast<FunctionDecl>(D); in AddAllocAlignAttr() local
1645 if (!checkFunctionOrMethodParameterIndex(*this, FuncDecl, TmpAttr, in AddAllocAlignAttr()
1654 << FuncDecl->getParamDecl(Idx.getASTIndex())->getSourceRange(); in AddAllocAlignAttr()
/netbsd-src/external/apache2/llvm/dist/clang/lib/CodeGen/
H A DCGCall.cpp4515 AbstractAssumeAlignedAttrEmitter(CodeGenFunction &CGF_, const Decl *FuncDecl) in AbstractAssumeAlignedAttrEmitter() argument
4517 if (!FuncDecl) in AbstractAssumeAlignedAttrEmitter()
4519 AA = FuncDecl->getAttr<AlignedAttrTy>(); in AbstractAssumeAlignedAttrEmitter()
4559 AssumeAlignedAttrEmitter(CodeGenFunction &CGF_, const Decl *FuncDecl) in AssumeAlignedAttrEmitter() argument
4560 : AbstractAssumeAlignedAttrEmitter(CGF_, FuncDecl) { in AssumeAlignedAttrEmitter()
4577 AllocAlignAttrEmitter(CodeGenFunction &CGF_, const Decl *FuncDecl, in AllocAlignAttrEmitter() argument
4579 : AbstractAssumeAlignedAttrEmitter(CGF_, FuncDecl) { in AllocAlignAttrEmitter()