class DiagnosticLocation

Declaration

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

Declared at: llvm/include/llvm/IR/DiagnosticInfo.h:354

Member Variables

private llvm::DIFile* File = nullptr
private unsigned int Line = 0
private unsigned int Column = 0

Method Overview

Methods

DiagnosticLocation()

Declared at: llvm/include/llvm/IR/DiagnosticInfo.h:360

DiagnosticLocation(const llvm::DebugLoc& DL)

Declared at: llvm/include/llvm/IR/DiagnosticInfo.h:361

Parameters

const llvm::DebugLoc& DL

DiagnosticLocation(const llvm::DISubprogram* SP)

Declared at: llvm/include/llvm/IR/DiagnosticInfo.h:362

Parameters

const llvm::DISubprogram* SP

std::string getAbsolutePath() const

Description

Return the full path to the file.

Declared at: llvm/include/llvm/IR/DiagnosticInfo.h:366

unsigned int getColumn() const

Declared at: llvm/include/llvm/IR/DiagnosticInfo.h:370

unsigned int getLine() const

Declared at: llvm/include/llvm/IR/DiagnosticInfo.h:369

llvm::StringRef getRelativePath() const

Description

Return the file name relative to the compilation directory.

Declared at: llvm/include/llvm/IR/DiagnosticInfo.h:368

bool isValid() const

Declared at: llvm/include/llvm/IR/DiagnosticInfo.h:364