clang API Documentation
#include "Internals.h"
#include "clang/AST/ASTConsumer.h"
#include "clang/Basic/DiagnosticCategories.h"
#include "clang/Frontend/ASTUnit.h"
#include "clang/Frontend/CompilerInstance.h"
#include "clang/Frontend/FrontendAction.h"
#include "clang/Frontend/TextDiagnosticPrinter.h"
#include "clang/Frontend/Utils.h"
#include "clang/Lex/Preprocessor.h"
#include "clang/Rewrite/Core/Rewriter.h"
#include "clang/Sema/SemaDiagnostic.h"
#include "clang/Serialization/ASTReader.h"
#include "llvm/ADT/Triple.h"
#include "llvm/Support/MemoryBuffer.h"
Go to the source code of this file.
Functions | |
static bool | HasARCRuntime (CompilerInvocation &origCI) |
static CompilerInvocation * | createInvocationForMigration (CompilerInvocation &origCI) |
static void | emitPremigrationErrors (const CapturedDiagList &arcDiags, DiagnosticOptions *diagOpts, Preprocessor &PP) |
static bool | applyTransforms (CompilerInvocation &origCI, const FrontendInputFile &Input, DiagnosticConsumer *DiagClient, StringRef outputDir, bool emitPremigrationARCErrors, StringRef plistOut) |
static bool applyTransforms | ( | CompilerInvocation & | origCI, |
const FrontendInputFile & | Input, | ||
DiagnosticConsumer * | DiagClient, | ||
StringRef | outputDir, | ||
bool | emitPremigrationARCErrors, | ||
StringRef | plistOut | ||
) | [static] |
Definition at line 333 of file ARCMT.cpp.
References clang::arcmt::MigrationProcess::applyTransform(), clang::arcmt::checkForManualIssues(), clang::arcmt::FileRemapper::flushToDisk(), clang::arcmt::getAllTransformations(), clang::CompilerInvocationBase::getDiagnosticOpts(), clang::CompilerInvocation::getFrontendOpts(), clang::CompilerInvocationBase::getLangOpts(), clang::CompilerInvocation::getMigratorOpts(), clang::arcmt::MigrationProcess::getRemapper(), clang::FrontendOptions::Inputs, clang::MigratorOptions::NoFinalizeRemoval, and clang::arcmt::FileRemapper::overwriteOriginal().
Referenced by clang::arcmt::applyTransformations(), and clang::arcmt::migrateWithTemporaryFiles().
static CompilerInvocation* createInvocationForMigration | ( | CompilerInvocation & | origCI | ) | [static] |
Definition at line 169 of file ARCMT.cpp.
References clang::arcmt::getARCMTMacroName(), clang::CompilerInvocationBase::getDiagnosticOpts(), clang::CompilerInvocation::getFileSystemOpts(), clang::ASTReader::getOriginalSourceFile(), HasARCRuntime(), clang::PreprocessorOptions::ImplicitPCHInclude, clang::PreprocessorOptions::Includes, and clang::LangOptions::NonGC.
Referenced by clang::arcmt::MigrationProcess::applyTransform(), and clang::arcmt::checkForManualIssues().
static void emitPremigrationErrors | ( | const CapturedDiagList & | arcDiags, |
DiagnosticOptions * | diagOpts, | ||
Preprocessor & | PP | ||
) | [static] |
Definition at line 214 of file ARCMT.cpp.
References clang::TextDiagnosticPrinter::BeginSourceFile(), clang::TextDiagnosticPrinter::EndSourceFile(), clang::Preprocessor::getLangOpts(), clang::Preprocessor::getSourceManager(), and clang::arcmt::CapturedDiagList::reportDiagnostics().
Referenced by clang::arcmt::checkForManualIssues().
static bool HasARCRuntime | ( | CompilerInvocation & | origCI | ) | [static] |
Definition at line 147 of file ARCMT.cpp.
References clang::CompilerInvocationBase::getTargetOpts(), and clang::TargetOptions::Triple.
Referenced by createInvocationForMigration().