version.h 788 B

123456789101112131415161718192021222324252627
  1. // Part of the Carbon Language project, under the Apache License v2.0 with LLVM
  2. // Exceptions. See /LICENSE for license information.
  3. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
  4. #ifndef CARBON_COMMON_VERSION_H_
  5. #define CARBON_COMMON_VERSION_H_
  6. #include "llvm/ADT/StringRef.h"
  7. namespace Carbon {
  8. struct Version {
  9. static const int Major;
  10. static const int Minor;
  11. static const int Patch;
  12. static const llvm::StringLiteral String;
  13. // A dedicated version information string to use in the toolchain as its
  14. // command line rendered version. Composed centrally so it can be composed at
  15. // compile time with potentially build info stamped components.
  16. static const llvm::StringLiteral ToolchainInfo;
  17. };
  18. } // namespace Carbon
  19. #endif // CARBON_COMMON_VERSION_H_