/
githubmirror
/
carbon-lang
Обзор
Документация
Войти
/
githubmirror
/
carbon-lang
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
trunk
common/version.h
27 строк
788 B
Chandler Carruth
Introduce version and build info stamping. (#4054)
18 июн 2024, 03:33
Не верифицирован
18 июн 2024, 03:33
b51dc7f
Код
Авторство
О чём код?
// Part of the Carbon Language project, under the Apache License v2.0 with LLVM // Exceptions. See /LICENSE for license information. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception #ifndef CARBON_COMMON_VERSION_H_ #define CARBON_COMMON_VERSION_H_ #include "llvm/ADT/StringRef.h" namespace Carbon { struct Version { static const int Major; static const int Minor; static const int Patch; static const llvm::StringLiteral String; // A dedicated version information string to use in the toolchain as its // command line rendered version. Composed centrally so it can be composed at // compile time with potentially build info stamped components. static const llvm::StringLiteral ToolchainInfo; }; } // namespace Carbon #endif // CARBON_COMMON_VERSION_H_