LLVM: llvm::remarks::Argument Struct Reference (original) (raw)

A key-value pair with a debug location that is used to display the remarks at the right place in the source. More...

#include "[llvm/Remarks/Remark.h](Remark%5F8h%5Fsource.html)"

Public Member Functions
Argument ()=default
Argument (StringRef Key, StringRef Val)
LLVM_ABI void print (raw_ostream &OS) const
Implement operator<< on Argument.
template<typename T>
std::optional< T > getValAsInt (unsigned Radix=10) const
Return the value of argument as an integer of type T.

Detailed Description

A key-value pair with a debug location that is used to display the remarks at the right place in the source.

Definition at line 47 of file Remark.h.

Constructor & Destructor Documentation

Argument() [1/2]

llvm::remarks::Argument::Argument ( ) default

Argument() [2/2]

Member Function Documentation

getValAsInt()

template<typename T>

std::optional< T > llvm::remarks::Argument::getValAsInt ( unsigned Radix = 10) const inline

Return the value of argument as an integer of type T.

Definition at line 62 of file Remark.h.

References T, and Val.

print()

Member Data Documentation

Key

Loc

Val


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