Lines Matching refs:ACtx
78 static const VarDecl *getErrnoVar(ASTContext &ACtx) { in REGISTER_TRAIT_WITH_PROGRAMSTATE()
79 IdentifierInfo &II = ACtx.Idents.get(ErrnoVarName); in REGISTER_TRAIT_WITH_PROGRAMSTATE()
80 auto LookupRes = ACtx.getTranslationUnitDecl()->lookup(&II); in REGISTER_TRAIT_WITH_PROGRAMSTATE()
81 auto Found = llvm::find_if(LookupRes, [&ACtx](const Decl *D) { in REGISTER_TRAIT_WITH_PROGRAMSTATE()
83 return ACtx.getSourceManager().isInSystemHeader(VD->getLocation()) && in REGISTER_TRAIT_WITH_PROGRAMSTATE()
85 VD->getType().getCanonicalType() == ACtx.IntTy; in REGISTER_TRAIT_WITH_PROGRAMSTATE()
97 static const FunctionDecl *getErrnoFunc(ASTContext &ACtx) { in getErrnoFunc() argument
100 IdentifierInfo &II = ACtx.Idents.get(ErrnoName); in getErrnoFunc()
101 llvm::append_range(LookupRes, ACtx.getTranslationUnitDecl()->lookup(&II)); in getErrnoFunc()
104 auto Found = llvm::find_if(LookupRes, [&ACtx](const Decl *D) { in getErrnoFunc()
106 return ACtx.getSourceManager().isInSystemHeader(FD->getLocation()) && in getErrnoFunc()
109 ACtx.getPointerType(ACtx.IntTy); in getErrnoFunc()
135 ASTContext &ACtx = C.getASTContext(); in checkBeginFunction() local
167 ACtx.getLValueReferenceType(ACtx.IntTy), C.blockCount(), &ErrnoDecl); in checkBeginFunction()
172 ACtx.IntTy, SVB.makeZeroArrayIndex(), in checkBeginFunction()