diff options
author | Jia Liu <proljc@gmail.com> | 2012-03-02 14:37:41 +0000 |
---|---|---|
committer | Jia Liu <proljc@gmail.com> | 2012-03-02 14:37:41 +0000 |
commit | f8e5d4cf39220e9b7c7ee744f634fce6dec28a76 (patch) | |
tree | 260a48ffa8e19d3d3258b3c574228fd4a9a2ab81 /include/clang/Basic/Version.h | |
parent | b4f0bd6864f33bc2fd8246f1f841d87e60c4ffc8 (diff) |
clang -v support for separate clang.git and llvm.git, patch by Andrew Trick.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@151910 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/clang/Basic/Version.h')
-rw-r--r-- | include/clang/Basic/Version.h | 9 |
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(); |