LLVM  14.0.0git
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 (SMRange R, const Twine &Replacement)
 
 SMFixIt (SMLoc Loc, 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 226 of file SourceMgr.h.

Constructor & Destructor Documentation

◆ SMFixIt() [1/2]

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

Definition at line 358 of file SourceMgr.cpp.

References assert().

◆ SMFixIt() [2/2]

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

Definition at line 234 of file SourceMgr.h.

Member Function Documentation

◆ getRange()

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

Definition at line 238 of file SourceMgr.h.

◆ getText()

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

Definition at line 237 of file SourceMgr.h.

◆ operator<()

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

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