clang API Documentation

Classes | Namespaces | Typedefs | Functions
ARCMT.h File Reference
#include "clang/ARCMigrate/FileRemapper.h"
#include "clang/Basic/SourceLocation.h"
#include "clang/Frontend/CompilerInvocation.h"
Include dependency graph for ARCMT.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  clang::arcmt::MigrationProcess
class  clang::arcmt::MigrationProcess::RewriteListener

Namespaces

namespace  clang
namespace  clang::arcmt

Typedefs

typedef void(* clang::arcmt::TransformFn )(MigrationPass &pass)

Functions

bool clang::arcmt::checkForManualIssues (CompilerInvocation &CI, const FrontendInputFile &Input, DiagnosticConsumer *DiagClient, bool emitPremigrationARCErrors=false, StringRef plistOut=StringRef())
 Creates an AST with the provided CompilerInvocation but with these changes:
bool clang::arcmt::applyTransformations (CompilerInvocation &origCI, const FrontendInputFile &Input, DiagnosticConsumer *DiagClient)
 Works similar to checkForManualIssues but instead of checking, it applies automatic modifications to source files to conform to ARC.
bool clang::arcmt::migrateWithTemporaryFiles (CompilerInvocation &origCI, const FrontendInputFile &Input, DiagnosticConsumer *DiagClient, StringRef outputDir, bool emitPremigrationARCErrors, StringRef plistOut)
 Applies automatic modifications and produces temporary files and metadata into the outputDir path.
bool clang::arcmt::getFileRemappings (std::vector< std::pair< std::string, std::string > > &remap, StringRef outputDir, DiagnosticConsumer *DiagClient)
 Get the set of file remappings from the outputDir path that migrateWithTemporaryFiles produced.
bool clang::arcmt::getFileRemappingsFromFileList (std::vector< std::pair< std::string, std::string > > &remap, ArrayRef< StringRef > remapFiles, DiagnosticConsumer *DiagClient)
 Get the set of file remappings from a list of files with remapping info.
std::vector< TransformFn > clang::arcmt::getAllTransformations (LangOptions::GCMode OrigGCMode, bool NoFinalizeRemoval)