|
clang
5.0.0
|
#include "clang/Edit/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, bool adjustRemovals=true) |
| void | clearRewrites () |
| StringRef | copyString (StringRef str) |
| StringRef | copyString (const Twine &twine) |
Definition at line 30 of file EditedSource.h.
|
inline |
Definition at line 66 of file EditedSource.h.
| void EditedSource::applyRewrites | ( | EditsReceiver & | receiver, |
| bool | adjustRemovals = true |
||
| ) |
Definition at line 397 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 64 of file EditedSource.cpp.
References clang::SourceLocation::getRawEncoding(), and I.
| void EditedSource::clearRewrites | ( | ) |
Definition at line 437 of file EditedSource.cpp.
Definition at line 266 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 84 of file EditedSource.h.
Referenced by copyString().
| StringRef EditedSource::copyString | ( | const Twine & | twine | ) |
Definition at line 59 of file EditedSource.cpp.
References copyString().
|
inline |
Definition at line 72 of file EditedSource.h.
|
inline |
Definition at line 73 of file EditedSource.h.
|
inline |
Definition at line 71 of file EditedSource.h.
1.8.6