Go to the documentation of this file.
9 #ifndef LLVM_CLANG_LIB_ARCMIGRATE_INTERNALS_H
10 #define LLVM_CLANG_LIB_ARCMIGRATE_INTERNALS_H
15 #include "llvm/ADT/ArrayRef.h"
16 #include "llvm/ADT/Optional.h"
27 typedef std::list<StoredDiagnostic> ListTy;
71 StringRef replacementText);
80 unsigned IDs[] = { ID1, ID2 };
85 unsigned IDs[] = { ID1, ID2, ID3 };
94 unsigned IDs[] = { ID1, ID2 };
173 return "__IMPL_ARCMT_REMOVED_EXPR__";
A little helper class used to produce diagnostics.
A trivial tuple used to represent a source range.
Encodes a location in the source.
ListTy::const_iterator iterator
bool hasUnrecoverableErrorOccurred() const
Determine whether any kind of unrecoverable error has occurred.
Concrete class used by the front-end to report problems and issues.
static StringRef getARCMTMacroName()
MigrationPass(ASTContext &Ctx, LangOptions::GCMode OrigGCMode, Sema &sema, TransformActions &TA, const CapturedDiagList &capturedDiags, std::vector< SourceLocation > &ARCMTMacroLocs)
bool hasDiagnostic(ArrayRef< unsigned > IDs, SourceRange range) const
bool noFinalizeRemoval() const
This class handles loading and caching of source files into memory.
bool isGCMigration() const
const CapturedDiagList & CapturedDiags
unsigned NoFinalizeRemoval
Holds long-lived AST nodes (such as types and decls) that can be referred to throughout the semantic ...
Optional< bool > EnableCFBridgeFns
bool clearDiagnostic(ArrayRef< unsigned > IDs, SourceRange range)
std::vector< SourceLocation > & ARCMTMacroLocs
void reportDiagnostics(DiagnosticsEngine &diags) const
MigratorOptions MigOptions
Represents a diagnostic in a form that can be retained until its corresponding source manager is dest...
void writeARCDiagsToPlist(const std::string &outPath, ArrayRef< StoredDiagnostic > diags, SourceManager &SM, const LangOptions &LangOpts)
Transaction(TransformActions &TA)
const CapturedDiagList & getDiags() const
Represents a character-granular source range.
Sema - This implements semantic analysis and AST building for C.
Keeps track of the various options that can be enabled, which controls the dialect of C or C++ that i...
LangOptions::GCMode OrigGCMode
Stmt - This represents one statement.
void setNoFinalizeRemoval(bool val)
bool CFBridgingFunctionsDefined()
Engages in a tight little dance with the lexer to efficiently preprocess tokens.
void push_back(const StoredDiagnostic &diag)