LLVM  8.0.1
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 228 of file SourceMgr.h.

Constructor & Destructor Documentation

◆ SMFixIt() [1/2]

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

Definition at line 235 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 241 of file SourceMgr.h.

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

Member Function Documentation

◆ getRange()

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

Definition at line 247 of file SourceMgr.h.

◆ getText()

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

Definition at line 246 of file SourceMgr.h.

◆ operator<()

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

Definition at line 249 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: