Lines Matching full:dir

23                              const StringPool::StringOffsetSize &Dir,  in addFilePath()  argument
25 FilePaths.emplace_back(DirPath(Root, Dir), Paths.add(Filename)); in addFilePath()
29 StringPool::StringOffsetSize PathPool::addDirPath(StringRef Dir) { in addDirPath() argument
30 return Paths.add(Dir); in addDirPath()
53 const auto Dir = tryStoreDirPath(sys::path::parent_path(FE.getName())); in tryStoreFilePath() local
55 Paths.addFilePath(Dir.Root, Dir.Path, sys::path::filename(FE.getName())); in tryStoreFilePath()
61 PathPool::DirPath SerializablePathCollection::tryStoreDirPath(StringRef Dir) { in tryStoreDirPath() argument
62 // We don't want to strip separator if Dir is "/" - so we check size > 1. in tryStoreDirPath()
63 while (Dir.size() > 1 && llvm::sys::path::is_separator(Dir.back())) in tryStoreDirPath()
64 Dir = Dir.drop_back(); in tryStoreDirPath()
66 auto DirIt = UniqueDirs.find(Dir); in tryStoreDirPath()
70 const std::string OrigDir = Dir.str(); in tryStoreDirPath()
73 if (!SysRoot.empty() && Dir.starts_with(SysRoot) && in tryStoreDirPath()
74 llvm::sys::path::is_separator(Dir[SysRoot.size()])) { in tryStoreDirPath()
76 Dir = Dir.drop_front(SysRoot.size()); in tryStoreDirPath()
77 } else if (!WorkDir.empty() && Dir.starts_with(WorkDir) && in tryStoreDirPath()
78 llvm::sys::path::is_separator(Dir[WorkDir.size()])) { in tryStoreDirPath()
80 Dir = Dir.drop_front(WorkDir.size()); in tryStoreDirPath()
84 while (!Dir.empty() && llvm::sys::path::is_separator(Dir.front())) in tryStoreDirPath()
85 Dir = Dir.drop_front(); in tryStoreDirPath()
88 PathPool::DirPath Result(Root, Paths.addDirPath(Dir)); in tryStoreDirPath()