16 #ifndef LLVM_CLANG_BASIC_VERSION_H
17 #define LLVM_CLANG_BASIC_VERSION_H
19 #include "clang/Basic/Version.inc"
20 #include "llvm/ADT/StringRef.h"
23 #define CLANG_MAKE_VERSION_STRING2(X) #X
25 #ifdef CLANG_VERSION_PATCHLEVEL
27 #define CLANG_MAKE_VERSION_STRING(X,Y,Z) CLANG_MAKE_VERSION_STRING2(X.Y.Z)
30 #define CLANG_VERSION_STRING \
31 CLANG_MAKE_VERSION_STRING(CLANG_VERSION_MAJOR,CLANG_VERSION_MINOR, \
32 CLANG_VERSION_PATCHLEVEL)
35 #define CLANG_MAKE_VERSION_STRING(X,Y) CLANG_MAKE_VERSION_STRING2(X.Y)
38 #define CLANG_VERSION_STRING \
39 CLANG_MAKE_VERSION_STRING(CLANG_VERSION_MAJOR,CLANG_VERSION_MINOR)
82 #endif // LLVM_CLANG_BASIC_VERSION_H
std::string getClangFullVersion()
Retrieves a string representing the complete clang version, which includes the clang version number...
std::string getClangRepositoryPath()
Retrieves the repository path (e.g., Subversion path) that identifies the particular Clang branch...
std::string getLLVMRevision()
Retrieves the repository revision number (or identifer) from which LLVM was built.
std::string getClangRevision()
Retrieves the repository revision number (or identifer) from which this Clang was built...
std::string getLLVMRepositoryPath()
Retrieves the repository path from which LLVM was built.
std::string getClangFullRepositoryVersion()
Retrieves the full repository version that is an amalgamation of the information in getClangRepositor...
std::string getClangFullCPPVersion()
Retrieves a string representing the complete clang version suitable for use in the CPP VERSION macro...
std::string getClangToolFullVersion(llvm::StringRef ToolName)
Like getClangFullVersion(), but with a custom tool name.