llvm::PrintError

PrintError overloads

Synopses

Declared in <llvm/TableGen/Error.h>

Print an error diagnostic by writing into a colored error stream.

void
PrintError(function_ref<void(raw_ostream&)> PrintMsg);
» more...

Print an error diagnostic with message Msg and no source location.

void
PrintError(Twine const& Msg);
» more...

Print an error diagnostic at source location(s) ErrorLoc.

void
PrintError(
    ArrayRef<SMLoc> ErrorLoc,
    Twine const& Msg);
» more...

Print an error diagnostic at the location of record Rec.

void
PrintError(
    Record const* Rec,
    Twine const& Msg);
» more...

Print an error diagnostic at the location of field RecVal.

void
PrintError(
    RecordVal const* RecVal,
    Twine const& Msg);
» more...

Print an error diagnostic at pointer location Loc within the buffer.

void
PrintError(
    char const* Loc,
    Twine const& Msg);
» more...

Parameters

NameDescription
PrintMsgCallback that writes the error body to OS.
MsgError text to print.
ErrorLocSource locations associated with the error.
RecRecord whose source location is used for the error.
RecValRecord field whose source location is used for the error.
LocPointer into a SourceMgr buffer identifying the error site.