LLVM 19.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 256 of file SourceMgr.h.

Constructor & Destructor Documentation

◆ SMFixIt() [1/2]

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

Definition at line 369 of file SourceMgr.cpp.

References assert().

◆ SMFixIt() [2/2]

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

Definition at line 264 of file SourceMgr.h.

Member Function Documentation

◆ getRange()

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

Definition at line 268 of file SourceMgr.h.

◆ getText()

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

Definition at line 267 of file SourceMgr.h.

◆ operator<()

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

Definition at line 270 of file SourceMgr.h.

References llvm::Other.


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