LLVM 20.0.0git
|
#include "llvm/TextAPI/PackedVersion.h"
Public Member Functions | |
constexpr | PackedVersion ()=default |
constexpr | PackedVersion (uint32_t RawVersion) |
PackedVersion (unsigned Major, unsigned Minor, unsigned Subminor) | |
PackedVersion (VersionTuple VT) | |
bool | empty () const |
unsigned | getMajor () const |
Retrieve the major version number. | |
unsigned | getMinor () const |
Retrieve the minor version number, if provided. | |
unsigned | getSubminor () const |
Retrieve the subminor version number, if provided. | |
bool | parse32 (StringRef Str) |
std::pair< bool, bool > | parse64 (StringRef Str) |
bool | operator< (const PackedVersion &O) const |
bool | operator== (const PackedVersion &O) const |
bool | operator!= (const PackedVersion &O) const |
uint32_t | rawValue () const |
operator std::string () const | |
void | print (raw_ostream &OS) const |
Definition at line 27 of file PackedVersion.h.
|
constexprdefault |
Referenced by PackedVersion().
|
inlineconstexpr |
Definition at line 32 of file PackedVersion.h.
|
inline |
Definition at line 33 of file PackedVersion.h.
|
inline |
Definition at line 36 of file PackedVersion.h.
References llvm::VersionTuple::getMajor(), llvm::VersionTuple::getMinor(), llvm::VersionTuple::getSubminor(), and PackedVersion().
|
inline |
Definition at line 45 of file PackedVersion.h.
|
inline |
Retrieve the major version number.
Definition at line 48 of file PackedVersion.h.
Referenced by print().
|
inline |
Retrieve the minor version number, if provided.
Definition at line 51 of file PackedVersion.h.
Referenced by print().
|
inline |
Retrieve the subminor version number, if provided.
Definition at line 54 of file PackedVersion.h.
Referenced by print().
llvm::MachO::PackedVersion::operator std::string | ( | ) | const |
Definition at line 103 of file PackedVersion.cpp.
References OS, and llvm::print().
|
inline |
Definition at line 63 of file PackedVersion.h.
|
inline |
Definition at line 59 of file PackedVersion.h.
|
inline |
Definition at line 61 of file PackedVersion.h.
Definition at line 22 of file PackedVersion.cpp.
References llvm::SmallVectorBase< Size_T >::empty(), llvm::getAsUnsignedInteger(), and llvm::SmallVectorBase< Size_T >::size().
Definition at line 56 of file PackedVersion.cpp.
References llvm::SmallVectorBase< Size_T >::empty(), llvm::getAsUnsignedInteger(), and llvm::SmallVectorBase< Size_T >::size().
void llvm::MachO::PackedVersion::print | ( | raw_ostream & | OS | ) | const |
Definition at line 110 of file PackedVersion.cpp.
References llvm::format(), getMajor(), getMinor(), getSubminor(), and OS.
|
inline |
Definition at line 65 of file PackedVersion.h.