Home | History | Annotate | Download | only in Frontend

Lines Matching defs:File

5 // This file is distributed under the University of Illinois Open Source
216 // Chain in -diagnostic-log-file dumper, if requested.
230 // File Manager
234 // TODO: choose the virtual file system based on the CompilerInvocation.
254 // Create the file entry for the file that we're mapping from.
264 // Override the contents of the "from" file with the contents of
265 // the "to" file.
272 // Find the file that we're mapping to.
279 // Create the file entry for the file that we're mapping from.
287 // Override the contents of the "from" file with the contents of
288 // the "to" file.
457 // Unrecoverable failure: don't even try to process the input file.
465 // No suitable PCH file could be found. Return an error.
479 // Tell the source manager to chop off the given file at a specific
488 // Truncate the named file at the given line/column.
611 // Add the output file -- but don't try to remove "-", since this means we are
656 // Don't use a temporary if the output is a special file. This handles
665 // Create a temporary file.
686 // If we failed to create the temporary, fallback to writing to the file
688 // directory, but can write to the file.
700 // Make sure the out stream file gets removed if we crash.
745 // Figure out where to get and map in the main file.
747 const FileEntry *File;
749 File = FileMgr.getFile(InputFile, /*OpenFile=*/true);
751 // When building a pch file in clang-cl mode, the .h file is built as if
752 // it was included by a cc file. Since the driver doesn't know about
754 // file through HeaderSearch here, as if it had been included by the
755 // cc file at Opts.FindPchSource.
765 File = HS->LookupFile(InputFile, SourceLocation(), /*isAngled=*/false,
773 if (File)
774 DepOpts.ShowIncludesPretendHeader = File->getName();
776 if (!File) {
783 // file. Detect them here, read them with the volatile flag so FileMgr will
786 if (File->isNamedPipe()) {
787 auto MB = FileMgr.getBufferForFile(File, /*isVolatile=*/true);
789 // Create a new virtual file that will have the correct size.
790 File = FileMgr.getVirtualFile(InputFile, (*MB)->getBufferSize(), 0);
791 SourceMgr.overrideFileContents(File, std::move(*MB));
800 SourceMgr.createFileID(File, SourceLocation(), Kind));
810 const FileEntry *File = FileMgr.getVirtualFile(SB->getBufferIdentifier(),
813 SourceMgr.createFileID(File, SourceLocation(), Kind));
814 SourceMgr.overrideFileContents(File, std::move(SB));
920 /// \brief Compile a module file for the given module, using the options
964 // If there is a module map file, build the module using the module map.
975 // Don't free the remapped file buffers; they are owned by our caller.
1052 // Delete the temporary module map file.
1113 // Clear the lock file so that future invokations can make progress.
1120 // Try to read the module file, now that we've compiled it.
1128 // The module may be out of date in the presence of file system races,
1201 /// \brief Write a new timestamp file with the given path.
1216 // Try to stat() the timestamp file.
1218 // If the timestamp file wasn't there, create one now.
1232 // Write a new timestamp file so that nobody else attempts to prune.
1249 for (llvm::sys::fs::directory_iterator File(Dir->path(), EC), FileEnd;
1250 File != FileEnd && !EC; File.increment(EC)) {
1252 StringRef Extension = llvm::sys::path::extension(File->path());
1254 llvm::sys::path::filename(File->path()) != "modules.idx")
1257 // Look at this file. If we can't stat it, there's nothing interesting
1259 if (::stat(File->path().c_str(), &StatBuf))
1262 // If the file has been used recently enough, leave it there.
1269 // Remove the file.
1270 llvm::sys::fs::remove(File->path());
1272 // Remove the timestamp file.
1273 std::string TimpestampFilename = File->path() + ".timestamp";
1385 // Try to load the module file.
1390 // We successfully loaded the module file; remember the set of provided
1414 // Determine what file we're searching from.
1456 // We tried and failed to load a module file for this module. Fall
1476 // Try to load the module file.
1486 // The module file is missing or out-of-date. Build it.
1487 assert(Module && "missing module file");