Lines Matching +full:version +full:- +full:major
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 //===----------------------------------------------------------------------===//
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]+
67 if (parseInt(input, major))
71 *this = VersionTuple(major);
75 // If we're not done, parse the minor version, \.[0-9]+
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);