Lines Matching +full:- +full:- +full:url +full:- +full:prefix
1 //===- Version.cpp - Clang Version Number -----------------------*- C++ -*-===//
8 //===----------------------------------------------------------------------===//
10 // This file defines several version-related utility functions for Clang.
12 //===----------------------------------------------------------------------===//
32 StringRef URL(SVN_REPOSITORY); in getClangRepositoryPath()
34 StringRef URL(""); in getClangRepositoryPath()
39 StringRef SVNRepository("$URL$"); in getClangRepositoryPath()
40 if (URL.empty()) { in getClangRepositoryPath()
41 URL = SVNRepository.slice(SVNRepository.find(':'), in getClangRepositoryPath()
46 URL = URL.slice(0, URL.find("/src/tools/clang")); in getClangRepositoryPath()
48 // Trim path prefix off, assuming path came from standard cfe path. in getClangRepositoryPath()
49 size_t Start = URL.find("cfe/"); in getClangRepositoryPath()
51 URL = URL.substr(Start + 4); in getClangRepositoryPath()
53 return URL; in getClangRepositoryPath()
59 StringRef URL(LLVM_REPOSITORY); in getLLVMRepositoryPath() local
61 StringRef URL(""); in getLLVMRepositoryPath()
64 // Trim path prefix off, assuming path came from standard llvm path. in getLLVMRepositoryPath()
65 // Leave "llvm/" prefix to distinguish the following llvm revision from the in getLLVMRepositoryPath()
67 size_t Start = URL.find("llvm/"); in getLLVMRepositoryPath()
69 URL = URL.substr(Start); in getLLVMRepositoryPath()
71 return URL; in getLLVMRepositoryPath()