LLVM  14.0.0git
Classes | Namespaces | Enumerations | Functions
FileUtilities.h File Reference
#include "llvm/ADT/StringRef.h"
#include "llvm/Support/Errc.h"
#include "llvm/Support/ErrorHandling.h"
#include "llvm/Support/FileSystem.h"
#include "llvm/Support/Path.h"
Include dependency graph for FileUtilities.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.


class  llvm::FileRemover
 FileRemover - This class is a simple object meant to be stack allocated. More...
class  llvm::AtomicFileWriteError


 This file implements support for optimizing divisions by a constant.


enum  llvm::atomic_write_error { llvm::atomic_write_error::failed_to_create_uniq_file = 0, llvm::atomic_write_error::output_stream_error, llvm::atomic_write_error::failed_to_rename_temp_file }


int llvm::DiffFilesWithTolerance (StringRef FileA, StringRef FileB, double AbsTol, double RelTol, std::string *Error=nullptr)
 DiffFilesWithTolerance - Compare the two files specified, returning 0 if the files match, 1 if they are different, and 2 if there is a file error. More...
llvm::Error llvm::writeFileAtomically (StringRef TempPathModel, StringRef FinalPath, StringRef Buffer)
 Creates a unique file with name according to the given TempPathModel, writes content of Buffer to the file and renames it to FinalPath. More...
llvm::Error llvm::writeFileAtomically (StringRef TempPathModel, StringRef FinalPath, std::function< llvm::Error(llvm::raw_ostream &)> Writer)