the version information, to help prevent user confusion about vendor version
numbers vs. LLVM version numbers.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@115915
91177308-0d34-0410-b5e6-
96231b3b80d8
#include "clang/Basic/Version.h"
#include "llvm/Support/raw_ostream.h"
+#include "llvm/Config/config.h"
#include <cstring>
#include <cstdlib>
#endif
OS << "clang version " CLANG_VERSION_STRING " ("
<< getClangFullRepositoryVersion() << ')';
+
+ // If vendor supplied, include the base LLVM version as well.
+#ifdef CLANG_VENDOR
+ OS << " (based on LLVM " << PACKAGE_VERSION << ")";
+#endif
+
return OS.str();
}