LLVM 20.0.0git
|
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"
Public Member Functions | |
void | print (raw_ostream &OS) const |
Implement operator<< on Argument. | |
std::optional< int > | getValAsInt () const |
Return the value of argument as int. | |
bool | isValInt () const |
Check if the argument value can be parsed as int. | |
Public Attributes | |
StringRef | Key |
StringRef | Val |
std::optional< RemarkLocation > | Loc |
A key-value pair with a debug location that is used to display the remarks at the right place in the source.
std::optional< int > Argument::getValAsInt | ( | ) | const |
Return the value of argument as int.
Returns the value of a specified key parsed from StringRef.
Definition at line 30 of file Remark.cpp.
References llvm::StringRef::getAsInteger(), llvm::APInt::getSExtValue(), and Val.
Referenced by isValInt().
bool Argument::isValInt | ( | ) | const |
Check if the argument value can be parsed as int.
Definition at line 37 of file Remark.cpp.
References getValAsInt().
void Argument::print | ( | raw_ostream & | OS | ) | const |
Implement operator<< on Argument.
Definition at line 45 of file Remark.cpp.
Referenced by llvm::remarks::operator<<().
StringRef llvm::remarks::Argument::Key |
Definition at line 47 of file Remark.h.
Referenced by llvm::remarks::BitstreamRemarkSerializerHelper::emitRemarkBlock(), llvm::remarks::StringTable::internalize(), and print().
std::optional<RemarkLocation> llvm::remarks::Argument::Loc |
Definition at line 51 of file Remark.h.
Referenced by llvm::remarks::BitstreamRemarkSerializerHelper::emitRemarkBlock(), and llvm::remarks::StringTable::internalize().
StringRef llvm::remarks::Argument::Val |
Definition at line 49 of file Remark.h.
Referenced by llvm::remarks::BitstreamRemarkSerializerHelper::emitRemarkBlock(), getValAsInt(), llvm::remarks::StringTable::internalize(), and print().