LLVM  9.0.0svn
Public Member Functions | List of all members
llvm::DiagnosticLocation Class Reference

#include "llvm/IR/DiagnosticInfo.h"

Public Member Functions

 DiagnosticLocation ()=default
 DiagnosticLocation (const DebugLoc &DL)
 DiagnosticLocation (const DISubprogram *SP)
bool isValid () const
std::string getAbsolutePath () const
 Return the full path to the file. More...
StringRef getRelativePath () const
 Return the file name relative to the compilation directory. More...
unsigned getLine () const
unsigned getColumn () const

Detailed Description

Definition at line 343 of file DiagnosticInfo.h.

Constructor & Destructor Documentation

◆ DiagnosticLocation() [1/3]

llvm::DiagnosticLocation::DiagnosticLocation ( )

◆ DiagnosticLocation() [2/3]

DiagnosticLocation::DiagnosticLocation ( const DebugLoc DL)

Definition at line 113 of file DiagnosticInfo.cpp.

References File.

◆ DiagnosticLocation() [3/3]

DiagnosticLocation::DiagnosticLocation ( const DISubprogram SP)

Definition at line 121 of file DiagnosticInfo.cpp.

References File, and llvm::DIScope::getFile().

Member Function Documentation

◆ getAbsolutePath()

std::string DiagnosticLocation::getAbsolutePath ( ) const

◆ getColumn()

unsigned llvm::DiagnosticLocation::getColumn ( ) const

◆ getLine()

unsigned llvm::DiagnosticLocation::getLine ( ) const

◆ getRelativePath()

StringRef DiagnosticLocation::getRelativePath ( ) const

Return the file name relative to the compilation directory.

Definition at line 130 of file DiagnosticInfo.cpp.

References File.

Referenced by llvm::yaml::MappingTraits< DiagnosticLocation >::mapping().

◆ isValid()

bool llvm::DiagnosticLocation::isValid ( ) const

The documentation for this class was generated from the following files: