]> granicus.if.org Git - clang/commitdiff
Strip off the /clang/tools/clang at the end of the Subversion URL, if it's there
authorDouglas Gregor <dgregor@apple.com>
Thu, 5 Nov 2009 23:46:05 +0000 (23:46 +0000)
committerDouglas Gregor <dgregor@apple.com>
Thu, 5 Nov 2009 23:46:05 +0000 (23:46 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@86195 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Basic/Version.cpp

index 9699ee416be5c0d279328a484fd01f70171d39a2..18a8a88810dd64dbc752ca527be5334f4ad4a3e8 100644 (file)
@@ -26,6 +26,10 @@ const char *getClangSubversionPath() {
   if (End)
     *End = 0;
   
+  End = strstr(URL, "/clang/tools/clang");
+  if (End)
+    *End = 0;
+  
   char *Begin = strstr(URL, "cfe/");
   if (Begin) {
     Path = Begin + 4;