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)
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 45 of file Internals.h.


Constructor & Destructor Documentation

TransformActions::TransformActions ( DiagnosticsEngine diag,
CapturedDiagList capturedDiags,
ASTContext ctx,
Preprocessor PP 
)

Definition at line 600 of file TransformActions.cpp.

TransformActions::~TransformActions ( )

Definition at line 607 of file TransformActions.cpp.


Member Function Documentation

void TransformActions::abortTransaction ( )

Definition at line 619 of file TransformActions.cpp.

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

void TransformActions::applyRewrites ( RewriteReceiver receiver)

Definition at line 671 of file TransformActions.cpp.

bool clang::arcmt::TransformActions::clearAllDiagnostics ( SourceRange  range) [inline]

Definition at line 73 of file Internals.h.

References clearDiagnostic().

bool TransformActions::clearDiagnostic ( ArrayRef< unsigned >  IDs,
SourceRange  range 
)
bool clang::arcmt::TransformActions::clearDiagnostic ( unsigned  ID1,
unsigned  ID2,
SourceRange  range 
) [inline]

Definition at line 76 of file Internals.h.

References clearDiagnostic().

bool clang::arcmt::TransformActions::clearDiagnostic ( unsigned  ID1,
unsigned  ID2,
unsigned  ID3,
SourceRange  range 
) [inline]

Definition at line 80 of file Internals.h.

References clearDiagnostic().

bool TransformActions::commitTransaction ( )

Definition at line 615 of file TransformActions.cpp.

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

bool clang::arcmt::TransformActions::hasDiagnostic ( unsigned  ID,
SourceRange  range 
) [inline]

Definition at line 86 of file Internals.h.

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

bool clang::arcmt::TransformActions::hasDiagnostic ( unsigned  ID1,
unsigned  ID2,
SourceRange  range 
) [inline]

Definition at line 90 of file Internals.h.

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

bool clang::arcmt::TransformActions::hasReportedErrors ( ) const [inline]

Definition at line 102 of file Internals.h.

void TransformActions::increaseIndentation ( SourceRange  range,
SourceLocation  parentIndent 
)

Definition at line 660 of file TransformActions.cpp.

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

Definition at line 628 of file TransformActions.cpp.

Referenced by GCRewriteFinalize().

void TransformActions::remove ( SourceRange  range)
void TransformActions::removeStmt ( Stmt S)

Definition at line 637 of file TransformActions.cpp.

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

Definition at line 641 of file TransformActions.cpp.

Referenced by replace().

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

Definition at line 645 of file TransformActions.cpp.

References replace().

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

Definition at line 650 of file TransformActions.cpp.

void TransformActions::replaceText ( SourceLocation  loc,
StringRef  text,
StringRef  replacementText 
)
void TransformActions::reportError ( StringRef  error,
SourceLocation  loc,
SourceRange  range = SourceRange() 
)
void TransformActions::reportNote ( StringRef  note,
SourceLocation  loc,
SourceRange  range = SourceRange() 
)
void TransformActions::reportWarning ( StringRef  warning,
SourceLocation  loc,
SourceRange  range = SourceRange() 
)
void TransformActions::startTransaction ( )

Definition at line 611 of file TransformActions.cpp.

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


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