FLANG
Version.h
Go to the documentation of this file.
1//===- Version.h - Flang Version Number ---------------------*- Fortran -*-===//
2//
3// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4// See https://llvm.org/LICENSE.txt for license information.
5// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6//
7//===----------------------------------------------------------------------===//
13//===----------------------------------------------------------------------===//
14
15#ifndef FORTRAN_COMMON_VERSION_H
16#define FORTRAN_COMMON_VERSION_H
17
18#include "flang/Version.inc"
19#include "llvm/ADT/StringRef.h"
20
21namespace Fortran::common {
25std::string getFlangRepositoryPath();
26
30std::string getLLVMRepositoryPath();
31
34std::string getFlangRevision();
35
41std::string getLLVMRevision();
42
46
50std::string getFlangFullVersion();
51
53std::string getFlangToolFullVersion(llvm::StringRef ToolName);
54} // namespace Fortran::common
55
56#endif // FORTRAN_COMMON_VERSION_H
Definition: bit-population-count.h:20
std::string getFlangToolFullVersion(llvm::StringRef ToolName)
Like getFlangFullVersion(), but with a custom tool name.
Definition: Version.cpp:88
std::string getFlangRevision()
Definition: Version.cpp:42
std::string getLLVMRevision()
Definition: Version.cpp:50
std::string getLLVMRepositoryPath()
Definition: Version.cpp:34
std::string getFlangFullRepositoryVersion()
Definition: Version.cpp:58
std::string getFlangFullVersion()
Definition: Version.cpp:86
std::string getFlangRepositoryPath()
Definition: Version.cpp:22