[cfe-commits] r86195 - /cfe/trunk/lib/Basic/Version.cpp
Douglas Gregor
dgregor at apple.com
Thu Nov 5 15:46:05 PST 2009
Author: dgregor
Date: Thu Nov 5 17:46:05 2009
New Revision: 86195
URL: http://llvm.org/viewvc/llvm-project?rev=86195&view=rev
Log:
Strip off the /clang/tools/clang at the end of the Subversion URL, if it's there
Modified:
cfe/trunk/lib/Basic/Version.cpp
Modified: cfe/trunk/lib/Basic/Version.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Basic/Version.cpp?rev=86195&r1=86194&r2=86195&view=diff
==============================================================================
--- cfe/trunk/lib/Basic/Version.cpp (original)
+++ cfe/trunk/lib/Basic/Version.cpp Thu Nov 5 17:46:05 2009
@@ -26,6 +26,10 @@
if (End)
*End = 0;
+ End = strstr(URL, "/clang/tools/clang");
+ if (End)
+ *End = 0;
+
char *Begin = strstr(URL, "cfe/");
if (Begin) {
Path = Begin + 4;
More information about the cfe-commits
mailing list