Represents a version number in the form major[.minor[.subminor[.build]]].

Synopsis

Declared in <llvm/Support/VersionTuple.h>

class VersionTuple;

Member Functions

Name

Description

VersionTuple [constructor]

Constructors

asTuple

Version components as a (major, minor, subminor, build, subbuild) tuple.

empty

Determine whether this version information is empty (e.g., all version components are zero).

getAsString

Retrieve a string representation of the version number.

getBuild

Retrieve the build version number, if provided.

getMajor

Retrieve the major version number.

getMinor

Retrieve the minor version number, if provided.

getSubbuild

Retrieve the subbuild version number, if provided.

getSubminor

Retrieve the subminor version number, if provided.

normalize

Return a version tuple that contains only components that are non‐zero.

tryParse

Try to parse the given string as a version number.

withMajorReplaced

Return a version tuple that contains a different major version but everything else is the same.

withoutBuild

Return a version tuple that contains only the first 3 version components.

Friends

Name

Description

llvm::addHash

Feed version components of VT into hash builder HBuilder.

llvm::hash_value

Compute a hash_code for version tuple VT.

llvm::operator>=

Determine whether one version number follows or is equivalent to another.

llvm::operator<=

Determine whether one version number precedes or is equivalent to another.

llvm::operator>

Determine whether one version number follows another.

llvm::operator<

Determine whether one version number precedes another.

llvm::operator!=

Determine if two version numbers are not equivalent.

llvm::operator==

Determine if two version numbers are equivalent. If not provided, minor and subminor version numbers are considered to be zero.

Created with MrDocs