clang 20.0.0git
|
#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 35 of file EditedSource.h.
|
inline |
Definition at line 73 of file EditedSource.h.
void EditedSource::applyRewrites | ( | EditsReceiver & | receiver, |
bool | adjustRemovals = true |
||
) |
Definition at line 409 of file EditedSource.cpp.
References applyRewrite(), E, and clang::edit::FileOffset::getWithOffset().
Referenced by applyEditsToTemp(), mergeFixits(), and clang::FixItRewriter::WriteFixedFiles().
bool EditedSource::canInsertInOffset | ( | SourceLocation | OrigLoc, |
FileOffset | Offs | ||
) |
Definition at line 74 of file EditedSource.cpp.
References clang::SourceManager::isMacroArgExpansion().
void EditedSource::clearRewrites | ( | ) |
Definition at line 449 of file EditedSource.cpp.
Definition at line 276 of file EditedSource.cpp.
References clang::edit::Commit::Act_Insert, clang::edit::Commit::Act_InsertFromRange, clang::edit::Commit::Act_Remove, commit(), and E.
Referenced by applyEditsToTemp(), commit(), clang::FixItRewriter::HandleDiagnostic(), and mergeFixits().
StringRef EditedSource::copyString | ( | const Twine & | twine | ) |
Definition at line 69 of file EditedSource.cpp.
References copyString(), and clang::Data.
|
inline |
Definition at line 91 of file EditedSource.h.
Referenced by copyString().
|
inline |
Definition at line 78 of file EditedSource.h.
|
inline |
Definition at line 80 of file EditedSource.h.
|
inline |
Definition at line 77 of file EditedSource.h.