clang
3.9.0
|
#include <EditedSource.h>
Public Member Functions | |
EditedSource (const SourceManager &SM, const LangOptions &LangOpts, const PPConditionalDirectiveRecord *PPRec=nullptr) | |
const SourceManager & | getSourceManager () const |
const LangOptions & | getLangOpts () const |
const PPConditionalDirectiveRecord * | getPPCondDirectiveRecord () const |
bool | canInsertInOffset (SourceLocation OrigLoc, FileOffset Offs) |
bool | commit (const Commit &commit) |
void | applyRewrites (EditsReceiver &receiver) |
void | clearRewrites () |
StringRef | copyString (StringRef str) |
StringRef | copyString (const Twine &twine) |
Definition at line 29 of file EditedSource.h.
|
inline |
Definition at line 53 of file EditedSource.h.
void EditedSource::applyRewrites | ( | EditsReceiver & | receiver | ) |
Definition at line 390 of file EditedSource.cpp.
References applyRewrite(), E, clang::edit::FileOffset::getWithOffset(), and I.
Referenced by applyEditsToTemp(), mergeFixits(), and clang::FixItRewriter::WriteFixedFiles().
bool EditedSource::canInsertInOffset | ( | SourceLocation | OrigLoc, |
FileOffset | Offs | ||
) |
Definition at line 61 of file EditedSource.cpp.
References clang::SourceLocation::getRawEncoding(), and I.
void EditedSource::clearRewrites | ( | ) |
Definition at line 427 of file EditedSource.cpp.
Definition at line 260 of file EditedSource.cpp.
References clang::edit::Commit::Act_Insert, clang::edit::Commit::Act_InsertFromRange, clang::edit::Commit::Act_Remove, clang::edit::Commit::Edit::BeforePrev, E, clang::edit::Commit::edit_begin(), clang::edit::Commit::edit_end(), I, clang::edit::Commit::Edit::InsertFromRangeOffs, clang::edit::Commit::isCommitable(), clang::edit::Commit::Edit::Kind, clang::edit::Commit::Edit::Length, clang::edit::Commit::Edit::Offset, clang::edit::Commit::Edit::OrigLoc, and clang::edit::Commit::Edit::Text.
Referenced by applyEditsToTemp(), clang::FixItRewriter::HandleDiagnostic(), and mergeFixits().
|
inline |
Definition at line 71 of file EditedSource.h.
Referenced by copyString().
StringRef EditedSource::copyString | ( | const Twine & | twine | ) |
Definition at line 56 of file EditedSource.cpp.
References copyString().
|
inline |
Definition at line 59 of file EditedSource.h.
|
inline |
Definition at line 60 of file EditedSource.h.
|
inline |
Definition at line 58 of file EditedSource.h.