clang API Documentation

Classes | Public Member Functions
clang::arcmt::TransformActions Class Reference

#include <Internals.h>

List of all members.

Classes

class  RewriteReceiver

Public Member Functions

 TransformActions (DiagnosticsEngine &diag, CapturedDiagList &capturedDiags, ASTContext &ctx, Preprocessor &PP)
 ~TransformActions ()
void startTransaction ()
bool commitTransaction ()
void abortTransaction ()
void insert (SourceLocation loc, StringRef text)
void insertAfterToken (SourceLocation loc, StringRef text)
void remove (SourceRange range)
void removeStmt (Stmt *S)
void replace (SourceRange range, StringRef text)
void replace (SourceRange range, SourceRange replacementRange)
void replaceStmt (Stmt *S, StringRef text)
void replaceText (SourceLocation loc, StringRef text, StringRef replacementText)
void increaseIndentation (SourceRange range, SourceLocation parentIndent)
bool clearDiagnostic (ArrayRef< unsigned > IDs, SourceRange range)
bool clearAllDiagnostics (SourceRange range)
bool clearDiagnostic (unsigned ID1, unsigned ID2, SourceRange range)
bool clearDiagnostic (unsigned ID1, unsigned ID2, unsigned ID3, SourceRange range)
bool hasDiagnostic (unsigned ID, SourceRange range)
bool hasDiagnostic (unsigned ID1, unsigned ID2, SourceRange range)
DiagnosticBuilder report (SourceLocation loc, unsigned diagId, SourceRange range=SourceRange())
void reportError (StringRef error, SourceLocation loc, SourceRange range=SourceRange())
void reportWarning (StringRef warning, SourceLocation loc, SourceRange range=SourceRange())
void reportNote (StringRef note, SourceLocation loc, SourceRange range=SourceRange())
bool hasReportedErrors () const
void applyRewrites (RewriteReceiver &receiver)

Detailed Description

Definition at line 48 of file Internals.h.


Constructor & Destructor Documentation

Definition at line 601 of file TransformActions.cpp.

Definition at line 608 of file TransformActions.cpp.


Member Function Documentation

Definition at line 620 of file TransformActions.cpp.

Referenced by clang::arcmt::Transaction::abort().

Definition at line 672 of file TransformActions.cpp.

Definition at line 75 of file Internals.h.

References clearDiagnostic().

bool TransformActions::clearDiagnostic ( ArrayRef< unsigned IDs,
SourceRange  range 
)

Definition at line 78 of file Internals.h.

References clearDiagnostic().

Definition at line 82 of file Internals.h.

References clearDiagnostic().

Definition at line 616 of file TransformActions.cpp.

Referenced by clang::arcmt::Transaction::~Transaction().

Definition at line 88 of file Internals.h.

References clang::arcmt::CapturedDiagList::hasDiagnostic().

Definition at line 92 of file Internals.h.

References clang::arcmt::CapturedDiagList::hasDiagnostic().

Definition at line 661 of file TransformActions.cpp.

void TransformActions::insert ( SourceLocation  loc,
StringRef  text 
)
void TransformActions::insertAfterToken ( SourceLocation  loc,
StringRef  text 
)

Definition at line 629 of file TransformActions.cpp.

Referenced by GCRewriteFinalize().

Definition at line 638 of file TransformActions.cpp.

void TransformActions::replace ( SourceRange  range,
StringRef  text 
)

Definition at line 642 of file TransformActions.cpp.

Referenced by replace().

void TransformActions::replace ( SourceRange  range,
SourceRange  replacementRange 
)

Definition at line 646 of file TransformActions.cpp.

References replace().

void TransformActions::replaceStmt ( Stmt S,
StringRef  text 
)

Definition at line 651 of file TransformActions.cpp.

void TransformActions::replaceText ( SourceLocation  loc,
StringRef  text,
StringRef  replacementText 
)

Definition at line 676 of file TransformActions.cpp.

References clang::DiagnosticsEngine::Report().

Referenced by reportError(), reportNote(), and reportWarning().

void TransformActions::reportError ( StringRef  error,
SourceLocation  loc,
SourceRange  range = SourceRange() 
)

Definition at line 683 of file TransformActions.cpp.

References report().

Referenced by errorForGCAttrsOnNonObjC().

void TransformActions::reportNote ( StringRef  note,
SourceLocation  loc,
SourceRange  range = SourceRange() 
)

Definition at line 693 of file TransformActions.cpp.

References report().

void TransformActions::reportWarning ( StringRef  warning,
SourceLocation  loc,
SourceRange  range = SourceRange() 
)

Definition at line 688 of file TransformActions.cpp.

References report().

Definition at line 612 of file TransformActions.cpp.

Referenced by clang::arcmt::Transaction::Transaction().


The documentation for this class was generated from the following files: