[llvm-branch-commits] [cfe-branch] r81919 - /cfe/branches/Apple/bender-clang/include/clang/Basic/Version.h
Mike Stump
mrs at apple.com
Tue Sep 15 14:42:02 PDT 2009
Author: mrs
Date: Tue Sep 15 16:42:02 2009
New Revision: 81919
URL: http://llvm.org/viewvc/llvm-project?rev=81919&view=rev
Log:
Update.
Modified:
cfe/branches/Apple/bender-clang/include/clang/Basic/Version.h
Modified: cfe/branches/Apple/bender-clang/include/clang/Basic/Version.h
URL: http://llvm.org/viewvc/llvm-project/cfe/branches/Apple/bender-clang/include/clang/Basic/Version.h?rev=81919&r1=81918&r2=81919&view=diff
==============================================================================
--- cfe/branches/Apple/bender-clang/include/clang/Basic/Version.h (original)
+++ cfe/branches/Apple/bender-clang/include/clang/Basic/Version.h Tue Sep 15 16:42:02 2009
@@ -20,9 +20,21 @@
/// \brief Clang minor version
#define CLANG_VERSION_MINOR 0
+/// \brief Clang patchlevel version
+#define CLANG_VERSION_PATCHLEVEL 1
+
/// \brief Helper macro for CLANG_VERSION_STRING.
#define CLANG_MAKE_VERSION_STRING2(X) #X
+#ifdef CLANG_VERSION_PATCHLEVEL
+/// \brief Helper macro for CLANG_VERSION_STRING.
+#define CLANG_MAKE_VERSION_STRING(X,Y,Z) CLANG_MAKE_VERSION_STRING2(X.Y.Z)
+
+/// \brief A string that describes the Clang version number, e.g.,
+/// "1.0".
+#define CLANG_VERSION_STRING \
+ CLANG_MAKE_VERSION_STRING(CLANG_VERSION_MAJOR,CLANG_VERSION_MINOR,CLANG_VERSION_PATCHLEVEL)
+#else
/// \brief Helper macro for CLANG_VERSION_STRING.
#define CLANG_MAKE_VERSION_STRING(X,Y) CLANG_MAKE_VERSION_STRING2(X.Y)
@@ -30,6 +42,6 @@
/// "1.0".
#define CLANG_VERSION_STRING \
CLANG_MAKE_VERSION_STRING(CLANG_VERSION_MAJOR,CLANG_VERSION_MINOR)
-
+#endif
#endif // LLVM_CLANG_BASIC_VERSION_H
More information about the llvm-branch-commits
mailing list