| /openbsd-src/gnu/llvm/clang/lib/AST/Interp/ |
| H A D | ByteCodeEmitter.cpp | 23 ByteCodeEmitter::compileFunc(const FunctionDecl *FuncDecl) { in compileFunc() argument 27 bool HasBody = FuncDecl->hasBody(FuncDecl); in compileFunc() 30 Function *Func = P.getFunction(FuncDecl); in compileFunc() 40 QualType Ty = FuncDecl->getReturnType(); in compileFunc() 52 if (const auto *MD = dyn_cast<CXXMethodDecl>(FuncDecl); in compileFunc() 61 for (const ParmVarDecl *PD : FuncDecl->parameters()) { in compileFunc() 71 P.createFunction(FuncDecl, ParamOffset, std::move(ParamTypes), in compileFunc() 80 if (!FuncDecl->isConstexpr() || !visitFunc(FuncDecl)) { in compileFunc()
|
| H A D | ByteCodeEmitter.h | 40 llvm::Expected<Function *> compileFunc(const FunctionDecl *FuncDecl);
|
| H A D | ByteCodeExprGen.cpp | 1204 if (const auto *FuncDecl = dyn_cast_or_null<FunctionDecl>(Callee)) { in VisitCallExpr() local 1205 const Function *Func = getFunction(FuncDecl); in VisitCallExpr()
|
| /openbsd-src/gnu/llvm/clang/lib/StaticAnalyzer/Checkers/ |
| H A D | FuchsiaHandleChecker.cpp | 320 const FunctionDecl *FuncDecl = dyn_cast_or_null<FunctionDecl>(Call.getDecl()); in checkPreCall() local 321 if (!FuncDecl) { in checkPreCall() 333 if (Arg >= FuncDecl->getNumParams()) in checkPreCall() 335 const ParmVarDecl *PVD = FuncDecl->getParamDecl(Arg); in checkPreCall() 363 const FunctionDecl *FuncDecl = dyn_cast_or_null<FunctionDecl>(Call.getDecl()); in checkPostCall() local 364 if (!FuncDecl) in checkPostCall() 375 if (const auto *TypeDefTy = FuncDecl->getReturnType()->getAs<TypedefType>()) in checkPostCall() 380 if (hasFuchsiaAttr<AcquireHandleAttr>(FuncDecl)) { in checkPostCall() 382 Notes.push_back([RetSym, FuncDecl](BugReport &BR) -> std::string { in checkPostCall() 387 OS << "Function '" << FuncDecl->getDeclName() in checkPostCall() [all …]
|
| /openbsd-src/gnu/llvm/clang/lib/Analysis/FlowSensitive/ |
| H A D | DataflowEnvironment.cpp | 239 if (const auto *FuncDecl = dyn_cast<FunctionDecl>(&DeclCtx)) { in Environment() local 240 assert(FuncDecl->getBody() != nullptr); in Environment() 255 getFieldsAndGlobalVars(*FuncDecl->getBody(), Fields, Vars); in Environment() 263 for (const auto *ParamDecl : FuncDecl->parameters()) { in Environment() 271 QualType ReturnType = FuncDecl->getReturnType(); in Environment() 331 void Environment::pushCallInternal(const FunctionDecl *FuncDecl, in pushCallInternal() argument 333 CallStack.push_back(FuncDecl); in pushCallInternal() 339 if (const auto *CtorDecl = dyn_cast<CXXConstructorDecl>(FuncDecl)) { in pushCallInternal() 348 getFieldsAndGlobalVars(*FuncDecl->getBody(), Fields, Vars); in pushCallInternal() 356 const auto *ParamIt = FuncDecl->param_begin(); in pushCallInternal() [all …]
|
| /openbsd-src/gnu/llvm/clang/lib/ARCMigrate/ |
| H A D | ObjCMT.cpp | 69 const FunctionDecl *FuncDecl, bool ResultAnnotated); 77 const FunctionDecl *FuncDecl); 1429 if (const FunctionDecl *FuncDecl = dyn_cast<FunctionDecl>(Decl)) { in migrateCFAnnotation() local 1430 CF_BRIDGING_KIND AuditKind = migrateAddFunctionAnnotation(Ctx, FuncDecl); in migrateCFAnnotation() 1454 const FunctionDecl *FuncDecl, in AddCFAnnotations() argument 1474 commit.insertAfterToken(FuncDecl->getEndLoc(), AnnotationString); in AddCFAnnotations() 1479 for (FunctionDecl::param_const_iterator pi = FuncDecl->param_begin(), in AddCFAnnotations() 1480 pe = FuncDecl->param_end(); pi != pe; ++pi, ++i) { in AddCFAnnotations() 1502 const FunctionDecl *FuncDecl) { in migrateAddFunctionAnnotation() argument 1503 if (FuncDecl->hasBody()) in migrateAddFunctionAnnotation() [all …]
|
| /openbsd-src/gnu/llvm/clang/lib/Analysis/ |
| H A D | ExprMutationAnalyzer.cpp | 551 const auto FuncDecl = hasDeclaration(functionDecl().bind("func")); in findFunctionArgMutation() local 556 expr(anyOf(callExpr(NonConstRefParam, IsInstantiated, FuncDecl, in findFunctionArgMutation() 560 FuncDecl))) in findFunctionArgMutation()
|
| /openbsd-src/gnu/llvm/clang/include/clang/Analysis/FlowSensitive/ |
| H A D | DataflowEnvironment.h | 457 void pushCallInternal(const FunctionDecl *FuncDecl,
|
| /openbsd-src/gnu/llvm/clang/lib/Parse/ |
| H A D | Parser.cpp | 1341 Decl *FuncDecl = Actions.HandleDeclarator(ParentScope, D, in ParseFunctionDefinition() local 1343 D.complete(FuncDecl); in ParseFunctionDefinition() 1345 if (FuncDecl) { in ParseFunctionDefinition() 1347 StashAwayMethodOrFunctionBodyTokens(FuncDecl); in ParseFunctionDefinition() 1349 return FuncDecl; in ParseFunctionDefinition()
|
| /openbsd-src/gnu/llvm/clang/lib/Sema/ |
| H A D | SemaObjCProperty.cpp | 1543 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 D | SemaDeclAttr.cpp | 1742 const auto *FuncDecl = cast<FunctionDecl>(D); in AddAllocAlignAttr() local 1743 if (!checkFunctionOrMethodParameterIndex(*this, FuncDecl, TmpAttr, in AddAllocAlignAttr() 1752 << FuncDecl->getParamDecl(Idx.getASTIndex())->getSourceRange(); in AddAllocAlignAttr()
|
| /openbsd-src/gnu/llvm/clang/lib/CodeGen/ |
| H A D | CGCall.cpp | 4655 AbstractAssumeAlignedAttrEmitter(CodeGenFunction &CGF_, const Decl *FuncDecl) in AbstractAssumeAlignedAttrEmitter() argument 4657 if (!FuncDecl) in AbstractAssumeAlignedAttrEmitter() 4659 AA = FuncDecl->getAttr<AlignedAttrTy>(); in AbstractAssumeAlignedAttrEmitter() 4699 AssumeAlignedAttrEmitter(CodeGenFunction &CGF_, const Decl *FuncDecl) in AssumeAlignedAttrEmitter() argument 4700 : AbstractAssumeAlignedAttrEmitter(CGF_, FuncDecl) { in AssumeAlignedAttrEmitter() 4717 AllocAlignAttrEmitter(CodeGenFunction &CGF_, const Decl *FuncDecl, in AllocAlignAttrEmitter() argument 4719 : AbstractAssumeAlignedAttrEmitter(CGF_, FuncDecl) { in AllocAlignAttrEmitter()
|