LLVM API Documentation
Represents a single fixit, a replacement of one range of text with another. More...
#include <SourceMgr.h>
Public Member Functions | |
SMFixIt (SMLoc Loc, const Twine &Insertion) | |
SMFixIt (SMRange R, const Twine &Replacement) | |
StringRef | getText () const |
SMRange | getRange () const |
bool | operator< (const SMFixIt &Other) const |
Represents a single fixit, a replacement of one range of text with another.
Definition at line 200 of file SourceMgr.h.
llvm::SMFixIt::SMFixIt | ( | SMLoc | Loc, |
const Twine & | Insertion | ||
) | [inline] |
Definition at line 207 of file SourceMgr.h.
References llvm::SMLoc::isValid().
llvm::SMFixIt::SMFixIt | ( | SMRange | R, |
const Twine & | Replacement | ||
) | [inline] |
Definition at line 213 of file SourceMgr.h.
References llvm::SMRange::isValid().
SMRange llvm::SMFixIt::getRange | ( | ) | const [inline] |
Definition at line 219 of file SourceMgr.h.
StringRef llvm::SMFixIt::getText | ( | ) | const [inline] |
Definition at line 218 of file SourceMgr.h.
Definition at line 221 of file SourceMgr.h.
References llvm::SMRange::End, llvm::SMLoc::getPointer(), and llvm::SMRange::Start.