Lines Matching refs:SourceFile
65 ErrorOr<const MemoryBuffer &> getSourceFile(StringRef SourceFile);
78 createSourceFileView(StringRef SourceFile, CoverageMapping &Coverage);
151 CodeCoverageTool::getSourceFile(StringRef SourceFile) {
154 auto Loc = RemappedFilenames.find(SourceFile);
156 SourceFile = Loc->second;
159 if (sys::fs::equivalent(SourceFile, Files.first))
161 auto Buffer = MemoryBuffer::getFile(SourceFile);
163 deferError(EC.message(), SourceFile);
167 LoadedSourceFiles.emplace_back(SourceFile, std::move(Buffer.get()));
213 CodeCoverageTool::createSourceFileView(StringRef SourceFile,
215 auto SourceBuffer = getSourceFile(SourceFile);
218 auto FileCoverage = Coverage.getCoverageForFile(SourceFile);
223 auto View = SourceCoverageView::create(SourceFile, SourceBuffer.get(),
227 for (auto Function : Coverage.getInstantiations(SourceFile)) {
554 for (StringRef &SourceFile : SourceFiles) {
555 Pool.async([this, &SourceFile, &Coverage, &Printer, ShowFilenames] {
556 auto View = createSourceFileView(SourceFile, *Coverage);
558 deferWarning("The file '" + SourceFile.str() + "' isn't covered.");
562 auto OSOrErr = Printer->createViewFile(SourceFile, /*InToplevel=*/false);