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