clang API Documentation
#include <FileRemapper.h>
Public Member Functions | |
| FileRemapper () | |
| ~FileRemapper () | |
| bool | initFromDisk (StringRef outputDir, DiagnosticsEngine &Diag, bool ignoreIfFilesChanged) |
| bool | initFromFile (StringRef filePath, DiagnosticsEngine &Diag, bool ignoreIfFilesChanged) |
| bool | flushToDisk (StringRef outputDir, DiagnosticsEngine &Diag) |
| bool | flushToFile (StringRef outputPath, DiagnosticsEngine &Diag) |
| bool | overwriteOriginal (DiagnosticsEngine &Diag, StringRef outputDir=StringRef()) |
| void | remap (StringRef filePath, llvm::MemoryBuffer *memBuf) |
| void | remap (StringRef filePath, StringRef newPath) |
| void | applyMappings (PreprocessorOptions &PPOpts) const |
| void | transferMappingsAndClear (PreprocessorOptions &PPOpts) |
| void | clear (StringRef outputDir=StringRef()) |
Definition at line 31 of file FileRemapper.h.
| FileRemapper::FileRemapper | ( | ) |
Definition at line 23 of file FileRemapper.cpp.
| FileRemapper::~FileRemapper | ( | ) |
Definition at line 27 of file FileRemapper.cpp.
References clear().
| void FileRemapper::applyMappings | ( | PreprocessorOptions & | PPOpts | ) | const |
Definition at line 208 of file FileRemapper.cpp.
References clang::PreprocessorOptions::addRemappedFile(), and clang::PreprocessorOptions::RetainRemappedFileBuffers.
Referenced by clang::arcmt::MigrationProcess::applyTransform(), clang::arcmt::getFileRemappings(), and clang::arcmt::getFileRemappingsFromFileList().
| void FileRemapper::clear | ( | StringRef | outputDir = StringRef() | ) |
Definition at line 31 of file FileRemapper.cpp.
Referenced by overwriteOriginal(), transferMappingsAndClear(), and ~FileRemapper().
| bool FileRemapper::flushToDisk | ( | StringRef | outputDir, |
| DiagnosticsEngine & | Diag | ||
| ) |
Definition at line 113 of file FileRemapper.cpp.
References flushToFile().
Referenced by applyTransforms().
| bool FileRemapper::flushToFile | ( | StringRef | outputPath, |
| DiagnosticsEngine & | Diag | ||
| ) |
Definition at line 124 of file FileRemapper.cpp.
References Diag(), clang::FileEntry::getModificationTime(), clang::FileEntry::getName(), and remap().
Referenced by flushToDisk().
| bool FileRemapper::initFromDisk | ( | StringRef | outputDir, |
| DiagnosticsEngine & | Diag, | ||
| bool | ignoreIfFilesChanged | ||
| ) |
Definition at line 52 of file FileRemapper.cpp.
References initFromFile().
Referenced by clang::arcmt::ObjCMigrateAction::BeginInvocation(), clang::arcmt::getFileRemappings(), and clang::arcmt::MigrationProcess::MigrationProcess().
| bool FileRemapper::initFromFile | ( | StringRef | filePath, |
| DiagnosticsEngine & | Diag, | ||
| bool | ignoreIfFilesChanged | ||
| ) |
Definition at line 58 of file FileRemapper.cpp.
References clang::FileEntry::getModificationTime(), and remap().
Referenced by clang::arcmt::getFileRemappingsFromFileList(), and initFromDisk().
| bool FileRemapper::overwriteOriginal | ( | DiagnosticsEngine & | Diag, |
| StringRef | outputDir = StringRef() |
||
| ) |
Definition at line 172 of file FileRemapper.cpp.
References clear(), Diag(), and clang::FileEntry::getName().
Referenced by applyTransforms().
| void FileRemapper::remap | ( | StringRef | filePath, |
| llvm::MemoryBuffer * | memBuf | ||
| ) |
Definition at line 238 of file FileRemapper.cpp.
Referenced by clang::arcmt::MigrationProcess::applyTransform(), flushToFile(), initFromFile(), and remap().
| void FileRemapper::remap | ( | StringRef | filePath, |
| StringRef | newPath | ||
| ) |
Definition at line 242 of file FileRemapper.cpp.
References remap().
| void FileRemapper::transferMappingsAndClear | ( | PreprocessorOptions & | PPOpts | ) |
Definition at line 222 of file FileRemapper.cpp.
References clang::PreprocessorOptions::addRemappedFile(), clear(), and clang::PreprocessorOptions::RetainRemappedFileBuffers.