class SMFixIt

Declaration

class SMFixIt { /* full declaration omitted */ };

Description

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

Declared at: llvm/include/llvm/Support/SourceMgr.h:256

Member Variables

private llvm::SMRange Range
private std::string Text

Method Overview

  • public SMFixIt(llvm::SMRange R, const llvm::Twine & Replacement)
  • public SMFixIt(llvm::SMLoc Loc, const llvm::Twine & Replacement)
  • public llvm::SMRange getRange() const
  • public llvm::StringRef getText() const

Methods

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

Declared at: llvm/include/llvm/Support/SourceMgr.h:262

Parameters

llvm::SMRange R
const llvm::Twine& Replacement

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

Declared at: llvm/include/llvm/Support/SourceMgr.h:264

Parameters

llvm::SMLoc Loc
const llvm::Twine& Replacement

llvm::SMRange getRange() const

Declared at: llvm/include/llvm/Support/SourceMgr.h:268

llvm::StringRef getText() const

Declared at: llvm/include/llvm/Support/SourceMgr.h:267