mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
<rdar://problem/18729762> CU's RuntimeVersion field should have the Swift runtime version number Swift SVN r23087
41 lines
1.2 KiB
C++
41 lines
1.2 KiB
C++
//===- Version.h - Swift Version Number -------------------------*- C++ -*-===//
|
|
//
|
|
// This source file is part of the Swift.org open source project
|
|
//
|
|
// Copyright (c) 2014 - 2015 Apple Inc. and the Swift project authors
|
|
// Licensed under Apache License v2.0 with Runtime Library Exception
|
|
//
|
|
// See http://swift.org/LICENSE.txt for license information
|
|
// See http://swift.org/CONTRIBUTORS.txt for the list of Swift project authors
|
|
//
|
|
//===----------------------------------------------------------------------===//
|
|
///
|
|
/// \file
|
|
/// \brief Defines version macros and version-related utility functions
|
|
/// for Swift.
|
|
///
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
#ifndef SWIFT_BASIC_VERSION_H
|
|
#define SWIFT_BASIC_VERSION_H
|
|
|
|
#include <string>
|
|
|
|
namespace swift {
|
|
namespace version {
|
|
|
|
/// \brief Retrieves the numeric {major, minor} Swift version.
|
|
std::pair<unsigned, unsigned> getSwiftNumericVersion();
|
|
|
|
/// \brief Retrieves a string representing the complete Swift version, which
|
|
/// includes the Swift version number, the repository version, and the vendor
|
|
/// tag.
|
|
std::string getSwiftFullVersion();
|
|
|
|
std::string getSwiftSubmitVersionQuad();
|
|
|
|
} // end namespace version
|
|
} // end namespace swift
|
|
|
|
#endif
|