Lines Matching defs:Paths
138 /// Get the number of redundant path components in each path in \p Paths.
139 unsigned getNumRedundantPathComponents(ArrayRef<std::string> Paths) {
142 SmallVector<StringRef, 8> FirstPathComponents{sys::path::begin(Paths[0]),
143 sys::path::end(Paths[0])};
146 for (unsigned I = 1, E = Paths.size(); NumRedundant > 0 && I < E; ++I) {
147 StringRef Path = Paths[I];
168 /// \p Paths.
169 unsigned getRedundantPrefixLen(ArrayRef<std::string> Paths) {
171 if (Paths.size() <= 1)
175 unsigned NumRedundant = getNumRedundantPathComponents(Paths);
176 auto Component = sys::path::begin(Paths[0]);
186 /// from \p LCP in \p Paths. \p Paths can't be empty. If there's only one
187 /// element in \p Paths, the length of the substr is returned. Note this is
189 unsigned getRedundantPrefixLen(ArrayRef<StringRef> Paths, unsigned LCP) {
190 assert(!Paths.empty() && "Paths must have at least one element");
192 auto Iter = Paths.begin();
193 auto IterE = Paths.end();