class TransformActions
Declaration
class TransformActions { /* full declaration omitted */ };
Declared at: clang/lib/ARCMigrate/Internals.h:49
Member Variables
- private clang::DiagnosticsEngine& Diags
- private clang::arcmt::CapturedDiagList& CapturedDiags
- private void* Impl
Method Overview
- public TransformActions(clang::DiagnosticsEngine & diag, clang::arcmt::CapturedDiagList & capturedDiags, clang::ASTContext & ctx, clang::Preprocessor & PP)
- public void abortTransaction()
- public void applyRewrites(clang::arcmt::TransformActions::RewriteReceiver & receiver)
- public bool clearAllDiagnostics(clang::SourceRange range)
- public bool clearDiagnostic(unsigned int ID1, unsigned int ID2, unsigned int ID3, clang::SourceRange range)
- public bool clearDiagnostic(unsigned int ID1, unsigned int ID2, clang::SourceRange range)
- public bool clearDiagnostic(ArrayRef<unsigned int> IDs, clang::SourceRange range)
- public bool commitTransaction()
- public bool hasDiagnostic(unsigned int ID1, unsigned int ID2, clang::SourceRange range)
- public bool hasDiagnostic(unsigned int ID, clang::SourceRange range)
- public bool hasReportedErrors() const
- public void increaseIndentation(clang::SourceRange range, clang::SourceLocation parentIndent)
- public void insert(clang::SourceLocation loc, llvm::StringRef text)
- public void insertAfterToken(clang::SourceLocation loc, llvm::StringRef text)
- public void remove(clang::SourceRange range)
- public void removeStmt(clang::Stmt * S)
- public void replace(clang::SourceRange range, clang::SourceRange replacementRange)
- public void replace(clang::SourceRange range, llvm::StringRef text)
- public void replaceStmt(clang::Stmt * S, llvm::StringRef text)
- public void replaceText(clang::SourceLocation loc, llvm::StringRef text, llvm::StringRef replacementText)
- public clang::DiagnosticBuilder report(clang::SourceLocation loc, unsigned int diagId, clang::SourceRange range = clang::SourceRange())
- public void reportError(llvm::StringRef error, clang::SourceLocation loc, clang::SourceRange range = clang::SourceRange())
- public void reportNote(llvm::StringRef note, clang::SourceLocation loc, clang::SourceRange range = clang::SourceRange())
- public void reportWarning(llvm::StringRef warning, clang::SourceLocation loc, clang::SourceRange range = clang::SourceRange())
- public void startTransaction()
- public ~TransformActions()
Methods
¶TransformActions(
clang::DiagnosticsEngine& diag,
clang::arcmt::CapturedDiagList& capturedDiags,
clang::ASTContext& ctx,
clang::Preprocessor& PP)
TransformActions(
clang::DiagnosticsEngine& diag,
clang::arcmt::CapturedDiagList& capturedDiags,
clang::ASTContext& ctx,
clang::Preprocessor& PP)
Declared at: clang/lib/ARCMigrate/Internals.h:55
Parameters
- clang::DiagnosticsEngine& diag
- clang::arcmt::CapturedDiagList& capturedDiags
- clang::ASTContext& ctx
- clang::Preprocessor& PP
¶void abortTransaction()
void abortTransaction()
Declared at: clang/lib/ARCMigrate/Internals.h:61
¶void applyRewrites(
clang::arcmt::TransformActions::
RewriteReceiver& receiver)
void applyRewrites(
clang::arcmt::TransformActions::
RewriteReceiver& receiver)
Declared at: clang/lib/ARCMigrate/Internals.h:121
Parameters
¶bool clearAllDiagnostics(clang::SourceRange range)
bool clearAllDiagnostics(clang::SourceRange range)
Declared at: clang/lib/ARCMigrate/Internals.h:76
Parameters
- clang::SourceRange range
¶bool clearDiagnostic(unsigned int ID1,
unsigned int ID2,
unsigned int ID3,
clang::SourceRange range)
bool clearDiagnostic(unsigned int ID1,
unsigned int ID2,
unsigned int ID3,
clang::SourceRange range)
Declared at: clang/lib/ARCMigrate/Internals.h:83
Parameters
- unsigned int ID1
- unsigned int ID2
- unsigned int ID3
- clang::SourceRange range
¶bool clearDiagnostic(unsigned int ID1,
unsigned int ID2,
clang::SourceRange range)
bool clearDiagnostic(unsigned int ID1,
unsigned int ID2,
clang::SourceRange range)
Declared at: clang/lib/ARCMigrate/Internals.h:79
Parameters
- unsigned int ID1
- unsigned int ID2
- clang::SourceRange range
¶bool clearDiagnostic(ArrayRef<unsigned int> IDs,
clang::SourceRange range)
bool clearDiagnostic(ArrayRef<unsigned int> IDs,
clang::SourceRange range)
Declared at: clang/lib/ARCMigrate/Internals.h:75
Parameters
- ArrayRef<unsigned int> IDs
- clang::SourceRange range
¶bool commitTransaction()
bool commitTransaction()
Declared at: clang/lib/ARCMigrate/Internals.h:60
¶bool hasDiagnostic(unsigned int ID1,
unsigned int ID2,
clang::SourceRange range)
bool hasDiagnostic(unsigned int ID1,
unsigned int ID2,
clang::SourceRange range)
Declared at: clang/lib/ARCMigrate/Internals.h:93
Parameters
- unsigned int ID1
- unsigned int ID2
- clang::SourceRange range
¶bool hasDiagnostic(unsigned int ID,
clang::SourceRange range)
bool hasDiagnostic(unsigned int ID,
clang::SourceRange range)
Declared at: clang/lib/ARCMigrate/Internals.h:89
Parameters
- unsigned int ID
- clang::SourceRange range
¶bool hasReportedErrors() const
bool hasReportedErrors() const
Declared at: clang/lib/ARCMigrate/Internals.h:107
¶void increaseIndentation(
clang::SourceRange range,
clang::SourceLocation parentIndent)
void increaseIndentation(
clang::SourceRange range,
clang::SourceLocation parentIndent)
Declared at: clang/lib/ARCMigrate/Internals.h:72
Parameters
- clang::SourceRange range
- clang::SourceLocation parentIndent
¶void insert(clang::SourceLocation loc,
llvm::StringRef text)
void insert(clang::SourceLocation loc,
llvm::StringRef text)
Declared at: clang/lib/ARCMigrate/Internals.h:63
Parameters
- clang::SourceLocation loc
- llvm::StringRef text
¶void insertAfterToken(clang::SourceLocation loc,
llvm::StringRef text)
void insertAfterToken(clang::SourceLocation loc,
llvm::StringRef text)
Declared at: clang/lib/ARCMigrate/Internals.h:64
Parameters
- clang::SourceLocation loc
- llvm::StringRef text
¶void remove(clang::SourceRange range)
void remove(clang::SourceRange range)
Declared at: clang/lib/ARCMigrate/Internals.h:65
Parameters
- clang::SourceRange range
¶void removeStmt(clang::Stmt* S)
void removeStmt(clang::Stmt* S)
Declared at: clang/lib/ARCMigrate/Internals.h:66
Parameters
- clang::Stmt* S
¶void replace(clang::SourceRange range,
clang::SourceRange replacementRange)
void replace(clang::SourceRange range,
clang::SourceRange replacementRange)
Declared at: clang/lib/ARCMigrate/Internals.h:68
Parameters
- clang::SourceRange range
- clang::SourceRange replacementRange
¶void replace(clang::SourceRange range,
llvm::StringRef text)
void replace(clang::SourceRange range,
llvm::StringRef text)
Declared at: clang/lib/ARCMigrate/Internals.h:67
Parameters
- clang::SourceRange range
- llvm::StringRef text
¶void replaceStmt(clang::Stmt* S,
llvm::StringRef text)
void replaceStmt(clang::Stmt* S,
llvm::StringRef text)
Declared at: clang/lib/ARCMigrate/Internals.h:69
Parameters
- clang::Stmt* S
- llvm::StringRef text
¶void replaceText(clang::SourceLocation loc,
llvm::StringRef text,
llvm::StringRef replacementText)
void replaceText(clang::SourceLocation loc,
llvm::StringRef text,
llvm::StringRef replacementText)
Declared at: clang/lib/ARCMigrate/Internals.h:70
Parameters
- clang::SourceLocation loc
- llvm::StringRef text
- llvm::StringRef replacementText
¶clang::DiagnosticBuilder report(
clang::SourceLocation loc,
unsigned int diagId,
clang::SourceRange range =
clang::SourceRange())
clang::DiagnosticBuilder report(
clang::SourceLocation loc,
unsigned int diagId,
clang::SourceRange range =
clang::SourceRange())
Declared at: clang/lib/ARCMigrate/Internals.h:98
Parameters
- clang::SourceLocation loc
- unsigned int diagId
- clang::SourceRange range = clang::SourceRange()
¶void reportError(llvm::StringRef error,
clang::SourceLocation loc,
clang::SourceRange range =
clang::SourceRange())
void reportError(llvm::StringRef error,
clang::SourceLocation loc,
clang::SourceRange range =
clang::SourceRange())
Declared at: clang/lib/ARCMigrate/Internals.h:100
Parameters
- llvm::StringRef error
- clang::SourceLocation loc
- clang::SourceRange range = clang::SourceRange()
¶void reportNote(llvm::StringRef note,
clang::SourceLocation loc,
clang::SourceRange range =
clang::SourceRange())
void reportNote(llvm::StringRef note,
clang::SourceLocation loc,
clang::SourceRange range =
clang::SourceRange())
Declared at: clang/lib/ARCMigrate/Internals.h:104
Parameters
- llvm::StringRef note
- clang::SourceLocation loc
- clang::SourceRange range = clang::SourceRange()
¶void reportWarning(llvm::StringRef warning,
clang::SourceLocation loc,
clang::SourceRange range =
clang::SourceRange())
void reportWarning(llvm::StringRef warning,
clang::SourceLocation loc,
clang::SourceRange range =
clang::SourceRange())
Declared at: clang/lib/ARCMigrate/Internals.h:102
Parameters
- llvm::StringRef warning
- clang::SourceLocation loc
- clang::SourceRange range = clang::SourceRange()
¶void startTransaction()
void startTransaction()
Declared at: clang/lib/ARCMigrate/Internals.h:59
¶~TransformActions()
~TransformActions()
Declared at: clang/lib/ARCMigrate/Internals.h:57