Home
last modified time | relevance | path

Searched refs:Path (Results 1 - 25 of 508) sorted by relevance

12345678910>>...21

/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/include/llvm/Support/
H A DVirtualFileSystem.h26 #include "llvm/Support/Path.h"
128 std::string Path; member in llvm::vfs::directory_entry
133 directory_entry(std::string Path, llvm::sys::fs::file_type Type) in directory_entry() argument
134 : Path(std::move(Path)), Type(Type) {} in directory_entry()
136 llvm::StringRef path() const { return Path; } in path()
214 recursive_directory_iterator(FileSystem &FS, const Twine &Path,
248 /// Get the status of the entry at \p Path, if one exists.
249 virtual llvm::ErrorOr<Status> status(const Twine &Path) = 0;
251 /// Get a \p File object for the file at \p Path, i
[all...]
/third_party/rust/crates/which-rs/src/
H A Dlib.rs106 Option::<&Path>::None, in which_all_global()
153 V: AsRef<path::Path>, in which_in()
206 V: AsRef<path::Path>, in which_in_all()
228 finder.find(binary_name, paths, Option::<&Path>::None, binary_checker) in which_in_global()
394 /// The constructed `PathBuf` is the output of `which` or `which_in`, but `which::Path` has the
395 /// advantage of being a type distinct from `std::path::Path` and `std::path::PathBuf`.
397 /// It can be beneficial to use `which::Path` instead of `std::path::Path` when you want the type
400 /// Since `which::Path` implements `Deref` for `std::path::Path`, al
403 pub struct Path { global() structure names
407 impl Path { global() impls
[all...]
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Support/
H A DVirtualFileSystem.cpp36 #include "llvm/Support/Path.h"
124 std::error_code FileSystem::makeAbsolute(SmallVectorImpl<char> &Path) const { in makeAbsolute()
125 if (llvm::sys::path::is_absolute(Path)) in makeAbsolute()
132 llvm::sys::fs::make_absolute(WorkingDir.get(), Path); in makeAbsolute()
136 std::error_code FileSystem::getRealPath(const Twine &Path, in getRealPath() argument
141 std::error_code FileSystem::isLocal(const Twine &Path, bool &Result) { in isLocal() argument
145 bool FileSystem::exists(const Twine &Path) { in exists() argument
146 auto Status = status(Path); in exists()
155 static bool pathHasTraversal(StringRef Path) { in pathHasTraversal() argument
158 for (StringRef Comp : llvm::make_range(path::begin(Path), pat in pathHasTraversal()
268 adjustPath(const Twine &Path, SmallVectorImpl<char> &Storage) const adjustPath() argument
287 status(const Twine &Path) status() argument
317 setCurrentWorkingDirectory(const Twine &Path) setCurrentWorkingDirectory() argument
334 isLocal(const Twine &Path, bool &Result) isLocal() argument
340 getRealPath(const Twine &Path, SmallVectorImpl<char> &Output) const getRealPath() argument
361 RealFSDirIter(const Twine &Path, std::error_code &EC) RealFSDirIter() argument
400 status(const Twine &Path) status() argument
411 openFileForRead(const llvm::Twine &Path) openFileForRead() argument
428 setCurrentWorkingDirectory(const Twine &Path) setCurrentWorkingDirectory() argument
435 isLocal(const Twine &Path, bool &Result) isLocal() argument
443 getRealPath(const Twine &Path, SmallVectorImpl<char> &Output) const getRealPath() argument
457 std::string Path; global() member in __anon24342::OverlayFSDirIterImpl
503 OverlayFSDirIterImpl(const Twine &Path, OverlayFileSystem &FS, std::error_code &EC) OverlayFSDirIterImpl() argument
579 InMemoryHardLink(StringRef Path, const InMemoryFile &ResolvedFile) InMemoryHardLink() argument
699 SmallString<128> Path; addFile() local
809 SmallString<128> Path; lookupInMemoryNode() local
862 status(const Twine &Path) status() argument
870 openFileForRead(const Twine &Path) openFileForRead() argument
951 SmallString<128> Path; setCurrentWorkingDirectory() local
968 getRealPath(const Twine &Path, SmallVectorImpl<char> &Output) const getRealPath() argument
980 isLocal(const Twine &Path, bool &Result) isLocal() argument
1052 setCurrentWorkingDirectory(const Twine &Path) setCurrentWorkingDirectory() argument
1071 isLocal(const Twine &Path, bool &Result) isLocal() argument
1649 SmallString<256> Path; lookupPath() local
1723 getRedirectedFileStatus(const Twine &Path, bool UseExternalNames, Status ExternalStatus) getRedirectedFileStatus() argument
1732 status(const Twine &Path, RedirectingFileSystem::Entry *E) status() argument
1748 status(const Twine &Path) status() argument
1786 openFileForRead(const Twine &Path) openFileForRead() argument
1816 getRealPath(const Twine &Path, SmallVectorImpl<char> &Output) const getRealPath() argument
1847 getVFSEntries(RedirectingFileSystem::Entry *SrcE, SmallVectorImpl<StringRef> &Path, SmallVectorImpl<YAMLVFSEntry> &Entries) getVFSEntries() argument
1928 containedIn(StringRef Parent, StringRef Path) containedIn() argument
1942 containedPart(StringRef Parent, StringRef Path) containedPart() argument
1948 startDirectory(StringRef Path) startDirectory() argument
2126 recursive_directory_iterator( FileSystem &FS_, const Twine &Path, std::error_code &EC) recursive_directory_iterator() argument
[all...]
H A DFileOutputBuffer.cpp18 #include "llvm/Support/Path.h"
36 OnDiskBuffer(StringRef Path, fs::TempFile Temp, in OnDiskBuffer() argument
38 : FileOutputBuffer(Path), Buffer(std::move(Buf)), Temp(std::move(Temp)) {} in OnDiskBuffer()
78 InMemoryBuffer(StringRef Path, MemoryBlock Buf, std::size_t BufSize, in InMemoryBuffer() argument
80 : FileOutputBuffer(Path), Buffer(Buf), BufferSize(BufSize), in InMemoryBuffer()
118 createInMemoryBuffer(StringRef Path, size_t Size, unsigned Mode) { in createInMemoryBuffer() argument
124 return std::make_unique<InMemoryBuffer>(Path, MB, Size, Mode); in createInMemoryBuffer()
128 createOnDiskBuffer(StringRef Path, size_t Size, unsigned Mode) { in createOnDiskBuffer() argument
130 fs::TempFile::create(Path + ".tmp%%%%%%%", Mode); in createOnDiskBuffer()
157 return createInMemoryBuffer(Path, Siz in createOnDiskBuffer()
166 create(StringRef Path, size_t Size, unsigned Flags) create() argument
[all...]
H A DPath.cpp1 //===-- Path.cpp - Implement OS Path Concept ------------------------------===//
9 // This file implements the operating system Path API.
13 #include "llvm/Support/Path.h"
226 i.Path = path; in begin()
235 i.Path = path; in end()
241 assert(Position < Path.size() && "Tried to increment past end!"); in operator ++()
247 if (Position == Path.size()) { in operator ++()
258 if (is_separator(Path[Position], S)) { in operator ++()
263 Component = Path in operator ++()
[all...]
H A DFileCollector.cpp12 #include "llvm/Support/Path.h"
17 static bool isCaseSensitivePath(StringRef Path) { in isCaseSensitivePath() argument
18 SmallString<256> TmpDest = Path, UpperDest, RealDest; in isCaseSensitivePath()
21 if (!sys::fs::real_path(Path, TmpDest)) in isCaseSensitivePath()
23 Path = TmpDest; in isCaseSensitivePath()
29 UpperDest = Path.upper(); in isCaseSensitivePath()
30 if (sys::fs::real_path(UpperDest, RealDest) && Path.equals(RealDest)) in isCaseSensitivePath()
199 llvm::ErrorOr<llvm::vfs::Status> status(const Twine &Path) override {
200 auto Result = FS->status(Path);
202 Collector->addFile(Path);
[all...]
H A DTarWriter.cpp28 #include "llvm/Support/Path.h"
101 static void writePaxHeader(raw_fd_ostream &OS, StringRef Path) { in writePaxHeader() argument
104 std::string PaxAttr = formatPax("path", Path); in writePaxHeader()
118 // Path fits in a Ustar header if
120 // - Path is less than 100 characters long, or
121 // - Path is in the form of "<prefix>/<name>" where <prefix> is less
125 // If Path fits in a Ustar header, updates Prefix and Name and returns true.
127 static bool splitUstar(StringRef Path, StringRef &Prefix, StringRef &Name) { in splitUstar() argument
128 if (Path.size() < sizeof(UstarHeader::Name)) { in splitUstar()
130 Name = Path; in splitUstar()
173 append(StringRef Path, StringRef Data) append() argument
[all...]
/third_party/skia/third_party/externals/swiftshader/tests/regres/cov/
H A Dcoverage_test.go52 tree.Add(cov.Path{"a", "b"}, coverage(fileA, span0, span1))
64 tree.Add(cov.Path{"a", "b", "d", "i"}, coverage(fileA, span0, span1))
79 tree.Add(cov.Path{"a", "b", "e"}, coverage(fileA, span0, span1, span2))
94 tree.Add(cov.Path{"a", "c", "g", "n"}, coverage(fileA, span0, span3))
109 tree.Add(cov.Path{"a", "c", "g", "o"}, coverage(fileA, span0, span3))
124 tree.Add(cov.Path{"a", "c", "f"}, coverage(fileA, span1))
138 tree.Add(cov.Path{"a", "b", "e", "j"}, coverage(fileA, span3))
152 tree.Add(cov.Path{"a", "b", "e", "k"}, coverage(fileA, span3))
166 tree.Add(cov.Path{"a", "c", "f", "l", "v"}, coverage(fileA, span1, span2))
182 tree.Add(cov.Path{"
[all...]
/third_party/json/tests/thirdparty/Fuzzer/
H A DFuzzerIO.cpp26 long GetEpoch(const std::string &Path) { in GetEpoch() argument
28 if (stat(Path.c_str(), &St)) in GetEpoch()
33 Unit FileToVector(const std::string &Path, size_t MaxSize, bool ExitOnError) { in FileToVector() argument
34 std::ifstream T(Path); in FileToVector()
36 Printf("No such directory: %s; exiting\n", Path.c_str()); in FileToVector()
51 std::string FileToString(const std::string &Path) { in FileToString() argument
52 std::ifstream T(Path); in FileToString()
57 void CopyFileToErr(const std::string &Path) { in CopyFileToErr() argument
58 Printf("%s", FileToString(Path).c_str()); in CopyFileToErr()
61 void WriteToFile(const Unit &U, const std::string &Path) { in WriteToFile() argument
69 ReadDirToVectorOfUnits(const char *Path, std::vector<Unit> *V, long *Epoch, size_t MaxSize, bool ExitOnError) ReadDirToVectorOfUnits() argument
[all...]
H A DFuzzerIOWindows.cpp27 static bool IsFile(const std::string &Path, const DWORD &FileAttributes) { in IsFile() argument
36 CreateFileA(Path.c_str(), 0, FILE_SHARE_READ, NULL, OPEN_EXISTING, in IsFile()
40 Printf("CreateFileA() failed for \"%s\" (Error code: %lu).\n", Path.c_str(), in IsFile()
48 Printf("GetFileType() failed for \"%s\" (Error code: %lu).\n", Path.c_str(), in IsFile()
63 bool IsFile(const std::string &Path) { in IsFile() argument
64 DWORD Att = GetFileAttributesA(Path.c_str()); in IsFile()
68 Path.c_str(), GetLastError()); in IsFile()
72 return IsFile(Path, Att); in IsFile()
81 std::string Path(Dir); in ListFilesInDirRecursive()
82 assert(!Path in ListFilesInDirRecursive()
138 RemoveFile(const std::string &Path) RemoveFile() argument
[all...]
H A DFuzzerIO.h19 long GetEpoch(const std::string &Path);
21 Unit FileToVector(const std::string &Path, size_t MaxSize = 0,
24 std::string FileToString(const std::string &Path);
26 void CopyFileToErr(const std::string &Path);
28 void WriteToFile(const Unit &U, const std::string &Path);
30 void ReadDirToVectorOfUnits(const char *Path, std::vector<Unit> *V,
47 bool IsFile(const std::string &Path);
60 void RemoveFile(const std::string &Path);
H A DFuzzerIOPosix.cpp28 bool IsFile(const std::string &Path) { in IsFile() argument
30 if (stat(Path.c_str(), &St)) in IsFile()
47 std::string Path = DirPlusFile(Dir, E->d_name); in ListFilesInDirRecursive() local
49 V->push_back(Path); in ListFilesInDirRecursive()
51 ListFilesInDirRecursive(Path, Epoch, V, false); in ListFilesInDirRecursive()
74 void RemoveFile(const std::string &Path) { in RemoveFile() argument
75 unlink(Path.c_str()); in RemoveFile()
/third_party/skia/modules/sksg/include/
H A DSkSGPath.h23 class Path : public GeometryNode { class
25 static sk_sp<Path> Make() { return sk_sp<Path>(new Path(SkPath())); } in Make()
26 static sk_sp<Path> Make(const SkPath& r) { return sk_sp<Path>(new Path(r)); } in Make()
28 SG_ATTRIBUTE(Path, SkPath, fPath)
53 explicit Path(const SkPath&);
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/DebugInfo/Symbolize/
H A DSymbolize.cpp33 #include "llvm/Support/Path.h"
175 // For Path="/path/to/foo" and Basename="foo" assume that debug info is in
177 // For Path="/path/to/bar.dSYM" and Basename="foo" assume that debug info is in
180 const std::string &Path, const std::string &Basename) { in getDarwinDWARFResourceForPath()
181 SmallString<16> ResourceName = StringRef(Path); in getDarwinDWARFResourceForPath()
182 if (sys::path::extension(Path) != ".dSYM") { in getDarwinDWARFResourceForPath()
190 bool checkFileCRC(StringRef Path, uint32_t CRCHash) { in checkFileCRC() argument
192 MemoryBuffer::getFileOrSTDIN(Path); in checkFileCRC()
326 SmallString<128> Path{Directory}; in findDebugBinary()
327 sys::path::append(Path, " in findDebugBinary()
179 getDarwinDWARFResourceForPath( const std::string &Path, const std::string &Basename) getDarwinDWARFResourceForPath() argument
334 SmallString<128> Path = getDebugPath( findDebugBinary() local
350 SmallString<128> Path = getDebugPath(Directory); findDebugBinary() local
391 lookUpDebuglinkObject(const std::string &Path, const ObjectFile *Obj, const std::string &ArchName) lookUpDebuglinkObject() argument
411 lookUpBuildIDObject(const std::string &Path, const ELFObjectFileBase *Obj, const std::string &ArchName) lookUpBuildIDObject() argument
431 getOrCreateObjectPair(const std::string &Path, const std::string &ArchName) getOrCreateObjectPair() argument
462 getOrCreateObject(const std::string &Path, const std::string &ArchName) getOrCreateObject() argument
[all...]
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-subzero/lib/Support/
H A DPath.cpp1 //===-- Path.cpp - Implement OS Path Concept ------------------------------===//
10 // This file implements the operating system Path API.
20 #include "llvm/Support/Path.h"
235 i.Path = path; in begin()
243 i.Path = path; in end()
249 assert(Position < Path.size() && "Tried to increment past end!"); in operator ++()
255 if (Position == Path.size()) { in operator ++()
268 if (is_separator(Path[Position])) { in operator ++()
276 Component = Path in operator ++()
[all...]
/third_party/rust/crates/cxx/gen/src/
H A Dfs.rs6 use std::path::{Path, PathBuf};
47 pub(crate) fn copy(from: impl AsRef<Path>, to: impl AsRef<Path>) -> Result<u64> {
56 pub(crate) fn create_dir_all(path: impl AsRef<Path>) -> Result<()> {
71 pub(crate) fn exists(path: impl AsRef<Path>) -> bool {
78 pub(crate) fn read(path: impl AsRef<Path>) -> Result<Vec<u8>> {
94 pub(crate) fn remove_file(path: impl AsRef<Path>) -> Result<()> {
102 pub(crate) fn remove_dir(path: impl AsRef<Path>) -> Result<()> {
111 original: &'a Path, in symlink()
112 link: &'a Path, in symlink()
[all...]
/third_party/rust/crates/cxx/gen/cmd/src/gen/
H A Dfs.rs6 use std::path::{Path, PathBuf};
47 pub(crate) fn copy(from: impl AsRef<Path>, to: impl AsRef<Path>) -> Result<u64> {
56 pub(crate) fn create_dir_all(path: impl AsRef<Path>) -> Result<()> {
71 pub(crate) fn exists(path: impl AsRef<Path>) -> bool {
78 pub(crate) fn read(path: impl AsRef<Path>) -> Result<Vec<u8>> {
94 pub(crate) fn remove_file(path: impl AsRef<Path>) -> Result<()> {
102 pub(crate) fn remove_dir(path: impl AsRef<Path>) -> Result<()> {
111 original: &'a Path, in symlink()
112 link: &'a Path, in symlink()
[all...]
/third_party/rust/crates/cxx/gen/build/src/gen/
H A Dfs.rs6 use std::path::{Path, PathBuf};
47 pub(crate) fn copy(from: impl AsRef<Path>, to: impl AsRef<Path>) -> Result<u64> {
56 pub(crate) fn create_dir_all(path: impl AsRef<Path>) -> Result<()> {
71 pub(crate) fn exists(path: impl AsRef<Path>) -> bool {
78 pub(crate) fn read(path: impl AsRef<Path>) -> Result<Vec<u8>> {
94 pub(crate) fn remove_file(path: impl AsRef<Path>) -> Result<()> {
102 pub(crate) fn remove_dir(path: impl AsRef<Path>) -> Result<()> {
111 original: &'a Path, in symlink()
112 link: &'a Path, in symlink()
[all...]
/third_party/rust/crates/cxx/gen/lib/src/gen/
H A Dfs.rs6 use std::path::{Path, PathBuf};
47 pub(crate) fn copy(from: impl AsRef<Path>, to: impl AsRef<Path>) -> Result<u64> {
56 pub(crate) fn create_dir_all(path: impl AsRef<Path>) -> Result<()> {
71 pub(crate) fn exists(path: impl AsRef<Path>) -> bool {
78 pub(crate) fn read(path: impl AsRef<Path>) -> Result<Vec<u8>> {
94 pub(crate) fn remove_file(path: impl AsRef<Path>) -> Result<()> {
102 pub(crate) fn remove_dir(path: impl AsRef<Path>) -> Result<()> {
111 original: &'a Path, in symlink()
112 link: &'a Path, in symlink()
[all...]
/third_party/icu/tools/cldr/cldr-to-icu/src/main/java/org/unicode/icu/tool/cldrtoicu/ant/
H A DCleanOutputDirectoryTask.java19 import java.nio.file.Path;
68 private Path root = null;
85 private Path path = null;
87 // Don't use "Path" for the argument type because that always makes an absolute path (e.g.
91 Path p = Paths.get(path).normalize(); in setPath()
104 private final Set<Path> retained = new HashSet<>();
126 // Use String here since on some systems Ant doesn't support automatically converting Path instances. in setRoot()
151 Set<Path> autogenFiles = new TreeSet<>(); in execute()
152 Set<Path> unknownFiles = new TreeSet<>(); in execute()
154 Path dirPat in execute()
[all...]
/third_party/skia/modules/sksg/src/
H A DSkSGPath.cpp16 Path::Path(const SkPath& path) : fPath(path) {} in Path() function in sksg::Path
18 void Path::onClip(SkCanvas* canvas, bool antiAlias) const { in onClip()
22 void Path::onDraw(SkCanvas* canvas, const SkPaint& paint) const { in onDraw()
26 bool Path::onContains(const SkPoint& p) const { in onContains()
30 SkRect Path::onRevalidate(InvalidationController*, const SkMatrix&) { in onRevalidate()
41 SkPath Path::onAsPath() const { in onAsPath()
/third_party/python/PC/layout/
H A Dmain.py20 from pathlib import Path namespace
24 __path__ = [str(Path(__file__).resolve().parent)]
121 for dest, src in rglob(Path(tcl_lib).parent, "**/*"):
269 return Path(
461 cdest = Path(dest).parent / Path(c).relative_to(src.parent)
487 type=Path,
491 "-b", "--build", metavar="dir", help="Specify the build directory", type=Path
504 type=Path,
511 type=Path,
[all...]
/third_party/python/Tools/wasm/
H A Dwasm_assets.py20 SRCDIR = pathlib.Path(__file__).parent.parent.parent.absolute()
128 def get_builddir(args: argparse.Namespace) -> pathlib.Path:
132 return pathlib.Path(builddir)
135 def get_sysconfigdata(args: argparse.Namespace) -> pathlib.Path:
152 pathname = pathlib.Path(filename).resolve()
203 def path(val: str) -> pathlib.Path:
204 return pathlib.Path(val).absolute()
211 default=pathlib.Path(".").absolute(),
217 default=pathlib.Path("/usr/local"),
225 relative_prefix = args.prefix.relative_to(pathlib.Path("/"))
[all...]
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/DebugInfo/PDB/
H A DPDB.cpp23 Error llvm::pdb::loadDataForPDB(PDB_ReaderType Type, StringRef Path, in loadDataForPDB() argument
28 MemoryBuffer::getFileOrSTDIN(Path, /*FileSize=*/-1, in loadDataForPDB()
37 return DIASession::createFromPdb(Path, Session); in loadDataForPDB()
43 Error llvm::pdb::loadDataForEXE(PDB_ReaderType Type, StringRef Path, in loadDataForEXE() argument
47 return NativeSession::createFromExe(Path, Session); in loadDataForEXE()
50 return DIASession::createFromExe(Path, Session); in loadDataForEXE()
/third_party/rust/crates/syn/src/
H A Dattr.rs42 /// - Meta::Path &mdash; attributes whose information content conveys just a
59 /// ~~~~~~Path
63 /// ~~~~Path
67 /// ^^^^Meta::Path
178 pub fn path(&self) -> &Path { in path()
239 Meta::Path(path) => Err(crate::error::new2( in parse_args_with()
359 /// Meta::Path(path) if path.is_ident("C") => {
446 /// ## Path
466 Path(Path),
[all...]

Completed in 14 milliseconds

12345678910>>...21