summaryrefslogtreecommitdiffstats
path: root/include/clang/Basic/Version.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/clang/Basic/Version.h')
-rw-r--r--include/clang/Basic/Version.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/include/clang/Basic/Version.h b/include/clang/Basic/Version.h
index 96be5475c6..f3f5b5a53a 100644
--- a/include/clang/Basic/Version.h
+++ b/include/clang/Basic/Version.h
@@ -47,10 +47,19 @@ namespace clang {
/// Clang was built.
std::string getClangRepositoryPath();
+ /// \brief Retrieves the repository path from which LLVM was built. Supports
+ /// LLVM residing in a separate repository from clang.
+ std::string getLLVMRepositoryPath();
+
/// \brief Retrieves the repository revision number (or identifer) from which
/// this Clang was built.
std::string getClangRevision();
+ /// \brief Retrieves the repository revision number (or identifer) from which
+ /// LLVM was built. If Clang and LLVM are in the same repository, this returns
+ /// the same string as getClangRevision.
+ std::string getLLVMRevision();
+
/// \brief Retrieves the full repository version that is an amalgamation of
/// the information in getClangRepositoryPath() and getClangRevision().
std::string getClangFullRepositoryVersion();