Lines Matching refs:ACtx
77 static const VarDecl *getErrnoVar(ASTContext &ACtx) { in REGISTER_TRAIT_WITH_PROGRAMSTATE()
78 IdentifierInfo &II = ACtx.Idents.get(ErrnoVarName); in REGISTER_TRAIT_WITH_PROGRAMSTATE()
79 auto LookupRes = ACtx.getTranslationUnitDecl()->lookup(&II); in REGISTER_TRAIT_WITH_PROGRAMSTATE()
80 auto Found = llvm::find_if(LookupRes, [&ACtx](const Decl *D) { in REGISTER_TRAIT_WITH_PROGRAMSTATE()
82 return ACtx.getSourceManager().isInSystemHeader(VD->getLocation()) && in REGISTER_TRAIT_WITH_PROGRAMSTATE()
84 VD->getType().getCanonicalType() == ACtx.IntTy; in REGISTER_TRAIT_WITH_PROGRAMSTATE()
96 static const FunctionDecl *getErrnoFunc(ASTContext &ACtx) { in getErrnoFunc() argument
99 IdentifierInfo &II = ACtx.Idents.get(ErrnoName); in getErrnoFunc()
100 llvm::append_range(LookupRes, ACtx.getTranslationUnitDecl()->lookup(&II)); in getErrnoFunc()
103 auto Found = llvm::find_if(LookupRes, [&ACtx](const Decl *D) { in getErrnoFunc()
105 return ACtx.getSourceManager().isInSystemHeader(FD->getLocation()) && in getErrnoFunc()
108 ACtx.getPointerType(ACtx.IntTy); in getErrnoFunc()
134 ASTContext &ACtx = C.getASTContext(); in checkBeginFunction() local
166 ACtx.getLValueReferenceType(ACtx.IntTy), C.blockCount(), &ErrnoDecl); in checkBeginFunction()
171 ACtx.IntTy, SVB.makeZeroArrayIndex(), in checkBeginFunction()