LLVM  6.0.0svn
Public Member Functions | List of all members
llvm::SMFixIt Class Reference

Represents a single fixit, a replacement of one range of text with another. More...

#include "llvm/Support/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
 

Detailed Description

Represents a single fixit, a replacement of one range of text with another.

Definition at line 201 of file SourceMgr.h.

Constructor & Destructor Documentation

◆ SMFixIt() [1/2]

llvm::SMFixIt::SMFixIt ( SMLoc  Loc,
const Twine Insertion 
)
inline

Definition at line 208 of file SourceMgr.h.

References assert(), and llvm::SMLoc::isValid().

◆ SMFixIt() [2/2]

llvm::SMFixIt::SMFixIt ( SMRange  R,
const Twine Replacement 
)
inline

Definition at line 214 of file SourceMgr.h.

References assert(), and llvm::SMRange::isValid().

Member Function Documentation

◆ getRange()

SMRange llvm::SMFixIt::getRange ( ) const
inline

Definition at line 220 of file SourceMgr.h.

◆ getText()

StringRef llvm::SMFixIt::getText ( ) const
inline

Definition at line 219 of file SourceMgr.h.

◆ operator<()

bool llvm::SMFixIt::operator< ( const SMFixIt Other) const
inline

Definition at line 222 of file SourceMgr.h.

References llvm::SMRange::End, llvm::SMLoc::getPointer(), and llvm::SMRange::Start.


The documentation for this class was generated from the following file: