clang
6.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.
Referenced by getPPCondDirectiveRecord().
bool EditedSource::canInsertInOffset | ( | SourceLocation | OrigLoc, |
FileOffset | Offs | ||
) |
Definition at line 64 of file EditedSource.cpp.
Referenced by getPPCondDirectiveRecord(), and clang::edit::Commit::replaceText().
void EditedSource::clearRewrites | ( | ) |
Definition at line 437 of file EditedSource.cpp.
References clang::CharSourceRange::getCharRange(), clang::edit::FileOffset::getFID(), clang::SourceLocation::getLocWithOffset(), clang::edit::FileOffset::getOffset(), clang::Lexer::getSourceText(), and clang::SourceLocation::isFileID().
Referenced by getPPCondDirectiveRecord().
Definition at line 266 of file EditedSource.cpp.
References clang::edit::Commit::isCommitable().
Referenced by getPPCondDirectiveRecord().
|
inline |
Definition at line 84 of file EditedSource.h.
References clang::comments::tok::text.
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.
References applyRewrites(), canInsertInOffset(), clearRewrites(), and commit().
|
inline |
Definition at line 71 of file EditedSource.h.