llvm::DiagnosticInfoWithLocationBase::getLocation

getLocation overloads

Synopses

Declared in <llvm/IR/DiagnosticInfo.h>

Return the diagnostic location.

DiagnosticLocation
getLocation() const;
» more...

Fill in relative path, line, and column for this diagnostic.

void
getLocation(
    StringRef& RelativePath,
    unsigned int& Line,
    unsigned int& Column) const;
» more...

Return Value

The diagnostic location.

Parameters

NameDescription
RelativePathRelative source file path (output)
LineLine number (output)
ColumnColumn number (output)