[cfe-commits] r165415 - /cfe/trunk/lib/Frontend/InitPreprocessor.cpp

Benjamin Kramer benny.kra at googlemail.com
Mon Oct 8 11:49:40 PDT 2012


Author: d0k
Date: Mon Oct  8 13:49:39 2012
New Revision: 165415

URL: http://llvm.org/viewvc/llvm-project?rev=165415&view=rev
Log:
Don't emit double parentheses in __clang_version__.

PR14040.

Modified:
    cfe/trunk/lib/Frontend/InitPreprocessor.cpp

Modified: cfe/trunk/lib/Frontend/InitPreprocessor.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Frontend/InitPreprocessor.cpp?rev=165415&r1=165414&r2=165415&view=diff
==============================================================================
--- cfe/trunk/lib/Frontend/InitPreprocessor.cpp (original)
+++ cfe/trunk/lib/Frontend/InitPreprocessor.cpp Mon Oct  8 13:49:39 2012
@@ -325,8 +325,8 @@
   Builder.defineMacro("__clang_patchlevel__", "0");
 #endif
   Builder.defineMacro("__clang_version__", 
-                      "\"" CLANG_VERSION_STRING " ("
-                      + getClangFullRepositoryVersion() + ")\"");
+                      "\"" CLANG_VERSION_STRING " "
+                      + getClangFullRepositoryVersion() + "\"");
 #undef TOSTR
 #undef TOSTR2
   if (!LangOpts.MicrosoftMode) {





More information about the cfe-commits mailing list