ΒΆbool migrateWithTemporaryFiles(
clang::CompilerInvocation& origCI,
const clang::FrontendInputFile& Input,
std::shared_ptr<PCHContainerOperations>
PCHContainerOps,
clang::DiagnosticConsumer* DiagClient,
llvm::StringRef outputDir,
bool emitPremigrationARCErrors,
llvm::StringRef plistOut)
bool migrateWithTemporaryFiles(
clang::CompilerInvocation& origCI,
const clang::FrontendInputFile& Input,
std::shared_ptr<PCHContainerOperations>
PCHContainerOps,
clang::DiagnosticConsumer* DiagClient,
llvm::StringRef outputDir,
bool emitPremigrationARCErrors,
llvm::StringRef plistOut)
Description
Applies automatic modifications and produces temporary files and metadata into the \p outputDir path.
Declared at: clang/include/clang/ARCMigrate/ARCMT.h:68
Parameters
- clang::CompilerInvocation& origCI
- const clang::FrontendInputFile& Input
- std::shared_ptr<PCHContainerOperations> PCHContainerOps
- clang::DiagnosticConsumer* DiagClient
- llvm::StringRef outputDir
- bool emitPremigrationARCErrors
- if true all ARC errors will get emitted even if the migrator can fix them, but the function will still return false if all ARC errors can be fixed.
- llvm::StringRef plistOut
- if non-empty, it is the file path to store the plist with the pre-migration ARC diagnostics.
Returns
false if no error is produced, true otherwise.