LLVM API Documentation

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
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 <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 179 of file SourceMgr.h.

Constructor & Destructor Documentation

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

Definition at line 186 of file SourceMgr.h.

References llvm::SMLoc::isValid().

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

Definition at line 192 of file SourceMgr.h.

References llvm::SMRange::isValid().

Member Function Documentation

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

Definition at line 198 of file SourceMgr.h.

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

Definition at line 197 of file SourceMgr.h.

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

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