ΒΆbool checkForManualIssues(
    clang::CompilerInvocation& CI,
    const clang::FrontendInputFile& Input,
    std::shared_ptr<PCHContainerOperations>
        PCHContainerOps,
    clang::DiagnosticConsumer* DiagClient,
    bool emitPremigrationARCErrors = false,
    llvm::StringRef plistOut = llvm::StringRef())

Description

Creates an AST with the provided CompilerInvocation but with these changes: -if a PCH/PTH is set, the original header is used instead -Automatic Reference Counting mode is enabled It then checks the AST and produces errors/warning for ARC migration issues that the user needs to handle manually.

Declared at: clang/include/clang/ARCMigrate/ARCMT.h:41

Parameters

clang::CompilerInvocation& CI
const clang::FrontendInputFile& Input
std::shared_ptr<PCHContainerOperations> PCHContainerOps
clang::DiagnosticConsumer* DiagClient
bool emitPremigrationARCErrors = false
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 = llvm::StringRef()
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.