Lines Matching refs:ACtx
79 static const VarDecl *getErrnoVar(ASTContext &ACtx) { in REGISTER_TRAIT_WITH_PROGRAMSTATE()
80 IdentifierInfo &II = ACtx.Idents.get(ErrnoVarName); in REGISTER_TRAIT_WITH_PROGRAMSTATE()
81 auto LookupRes = ACtx.getTranslationUnitDecl()->lookup(&II); in REGISTER_TRAIT_WITH_PROGRAMSTATE()
82 auto Found = llvm::find_if(LookupRes, [&ACtx](const Decl *D) { in REGISTER_TRAIT_WITH_PROGRAMSTATE()
84 return ACtx.getSourceManager().isInSystemHeader(VD->getLocation()) && in REGISTER_TRAIT_WITH_PROGRAMSTATE()
86 VD->getType().getCanonicalType() == ACtx.IntTy; in REGISTER_TRAIT_WITH_PROGRAMSTATE()
98 static const FunctionDecl *getErrnoFunc(ASTContext &ACtx) { in getErrnoFunc() argument
101 IdentifierInfo &II = ACtx.Idents.get(ErrnoName); in getErrnoFunc()
102 llvm::append_range(LookupRes, ACtx.getTranslationUnitDecl()->lookup(&II)); in getErrnoFunc()
105 auto Found = llvm::find_if(LookupRes, [&ACtx](const Decl *D) { in getErrnoFunc()
107 return ACtx.getSourceManager().isInSystemHeader(FD->getLocation()) && in getErrnoFunc()
110 ACtx.getPointerType(ACtx.IntTy); in getErrnoFunc()
136 ASTContext &ACtx = C.getASTContext(); in checkBeginFunction() local
168 ACtx.getLValueReferenceType(ACtx.IntTy), C.blockCount(), &ErrnoDecl); in checkBeginFunction()
173 ACtx.IntTy, SVB.makeZeroArrayIndex(), in checkBeginFunction()