Lines Matching refs:Reader
81 std::unique_ptr<ASTReader> Reader; in createASTReader() local
82 Reader.reset(new ASTReader(PP, CI.getASTContext(), /*isysroot=*/"", in createASTReader()
86 Reader->addInMemoryBuffer(sr, memBufs[ti]); in createASTReader()
88 Reader->setDeserializationListener(deserialListener); in createASTReader()
89 switch (Reader->ReadAST(pchFile, serialization::MK_PCH, SourceLocation(), in createASTReader()
93 PP.setPredefines(Reader->getSuggestedPredefines()); in createASTReader()
94 return Reader.release(); in createASTReader()
113 CompilerInstance &CI, IntrusiveRefCntPtr<ExternalSemaSource> &Reader) { in createChainedIncludesSource() argument
185 IntrusiveRefCntPtr<ASTReader> Reader; in createChainedIncludesSource() local
186 Reader = createASTReader(*Clang, pchName, bufs, serialBufNames, in createChainedIncludesSource()
188 if (!Reader) in createChainedIncludesSource()
190 Clang->setModuleManager(Reader); in createChainedIncludesSource()
191 Clang->getASTContext().setExternalSource(Reader); in createChainedIncludesSource()
206 Reader = createASTReader(CI, pchName, serialBufs, serialBufNames); in createChainedIncludesSource()
207 if (!Reader) in createChainedIncludesSource()
210 source->FinalReader = Reader; in createChainedIncludesSource()