diff options
-rw-r--r-- | include/clang/Basic/Version.h | 2 | ||||
-rw-r--r-- | lib/Basic/Version.cpp | 2 | ||||
-rw-r--r-- | lib/Driver/Driver.cpp | 2 | ||||
-rw-r--r-- | tools/CIndex/CIndex.cpp | 2 |
4 files changed, 4 insertions, 4 deletions
diff --git a/include/clang/Basic/Version.h b/include/clang/Basic/Version.h index 7e856e9a99..4710b6b608 100644 --- a/include/clang/Basic/Version.h +++ b/include/clang/Basic/Version.h @@ -65,7 +65,7 @@ namespace clang { /// \brief Retrieves a string representing the complete clang version, /// which includes the clang version number, the repository version, /// and the vendor tag. - const char *getClangFullVendorVersion(); + const char *getClangFullVersion(); } #endif // LLVM_CLANG_BASIC_VERSION_H diff --git a/lib/Basic/Version.cpp b/lib/Basic/Version.cpp index 0521ab4889..fdb96e5732 100644 --- a/lib/Basic/Version.cpp +++ b/lib/Basic/Version.cpp @@ -71,7 +71,7 @@ llvm::StringRef getClangFullRepositoryVersion() { return buf; } -const char *getClangFullVendorVersion() { +const char *getClangFullVersion() { static std::string buf; if (buf.empty()) { llvm::raw_string_ostream OS(buf); diff --git a/lib/Driver/Driver.cpp b/lib/Driver/Driver.cpp index 46e7f10e85..852a018e10 100644 --- a/lib/Driver/Driver.cpp +++ b/lib/Driver/Driver.cpp @@ -282,7 +282,7 @@ void Driver::PrintHelp(bool ShowHidden) const { void Driver::PrintVersion(const Compilation &C, llvm::raw_ostream &OS) const { // FIXME: The following handlers should use a callback mechanism, we don't // know what the client would like to do. - OS << getClangFullVendorVersion() << '\n'; + OS << getClangFullVersion() << '\n'; const ToolChain &TC = C.getDefaultToolChain(); OS << "Target: " << TC.getTripleString() << '\n'; diff --git a/tools/CIndex/CIndex.cpp b/tools/CIndex/CIndex.cpp index a9889621c7..84f908d571 100644 --- a/tools/CIndex/CIndex.cpp +++ b/tools/CIndex/CIndex.cpp @@ -1865,7 +1865,7 @@ void clang_disposeString(CXString string) { extern "C" { const char *clang_getClangVersion() { - return getClangFullVendorVersion(); + return getClangFullVersion(); } } // end: extern "C" |