Lines Matching +full:version +full:- +full:minor
1 //===- VersionTuple.cpp - Version Number Handling ---------------*- C++ -*-===//
5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
7 //===----------------------------------------------------------------------===//
9 // This file implements the VersionTuple class, which represents a version in
10 // the form major[.minor[.subminor]].
12 //===----------------------------------------------------------------------===//
32 if (std::optional<unsigned> Minor = V.getMinor())
33 Out << '.' << *Minor;
50 value = (unsigned)(next - '0');
57 value = value * 10 + (unsigned)(next - '0');
64 unsigned major = 0, minor = 0, micro = 0, build = 0;
66 // Parse the major version, [0-9]+
75 // If we're not done, parse the minor version, \.[0-9]+
79 if (parseInt(input, minor))
83 *this = VersionTuple(major, minor);
87 // If we're not done, parse the micro version, \.[0-9]+
94 *this = VersionTuple(major, minor, micro);
98 // If we're not done, parse the micro version, \.[0-9]+
108 *this = VersionTuple(major, minor, micro, build);