[llvm] [Support] Support 5-component VersionTuples (PR #181275)
Jakub Kuderski via llvm-commits
llvm-commits at lists.llvm.org
Fri Feb 13 06:03:48 PST 2026
================
@@ -121,7 +145,8 @@ class VersionTuple {
/// provided, minor and subminor version numbers are considered to be zero.
friend bool operator==(const VersionTuple &X, const VersionTuple &Y) {
return X.Major == Y.Major && X.Minor == Y.Minor &&
- X.Subminor == Y.Subminor && X.Build == Y.Build;
+ X.Subminor == Y.Subminor && X.Build == Y.Build &&
+ X.Subbuild == Y.Subbuild;
----------------
kuhar wrote:
maybe define a helper `std::tuple<unsigned, unsigned, unsigned, unsigned, unsigned> as_tuple()` (or similar) and use across all comparison operators and in `empty()`?
https://github.com/llvm/llvm-project/pull/181275
More information about the llvm-commits
mailing list