Home
last modified time | relevance | path

Searched refs:Path (Results 1 – 25 of 479) sorted by relevance

12345678910>>...20

/freebsd/contrib/llvm-project/compiler-rt/lib/fuzzer/
H A DFuzzerIOPosix.cpp27 bool IsFile(const std::string &Path) { in IsFile() argument
29 if (stat(Path.c_str(), &St)) in IsFile()
36 if (stat(Path.c_str(), &St)) in IsDirectory()
43 if (stat(Path.c_str(), &St)) in FileSize()
51 assert(Pos < Path.size()); in Basename()
52 return Path.substr(Pos + 1); in Basename()
70 V->push_back(Path); in ListFilesInDirRecursive()
92 FileCallback(Path); in IterateDirRecursive()
123 unlink(Path.c_str()); in RemoveFile()
165 mkdir(Path.c_str(), 0700); in MkDir()
[all …]
H A DFuzzerIO.cpp34 long GetEpoch(const std::string &Path) { in GetEpoch() argument
36 if (stat(Path.c_str(), &St)) in GetEpoch()
42 std::ifstream T(Path, std::ios::binary); in FileToVector()
68 Puts(FileToString(Path).c_str()); in CopyFileToErr()
72 WriteToFile(U.data(), U.size(), Path); in WriteToFile()
77 Path); in WriteToFile()
82 FILE *Out = fopen(Path.c_str(), "wb"); in WriteToFile()
90 Path); in AppendToFile()
94 FILE *Out = fopen(Path.c_str(), "a"); in AppendToFile()
211 [](const std::string &Path) { RmDir(Path); }, in RmDirRecursive() argument
[all …]
H A DFuzzerIOWindows.cpp62 bool IsFile(const std::string &Path) { in IsFile() argument
71 return IsFile(Path, Att); in IsFile()
94 assert(Pos < Path.size()); in Basename()
95 return Path.substr(Pos + 1); in Basename()
119 std::string Path(Dir); in ListFilesInDirRecursive() local
120 assert(!Path.empty()); in ListFilesInDirRecursive()
121 if (Path.back() != '\\') in ListFilesInDirRecursive()
122 Path.push_back('\\'); in ListFilesInDirRecursive()
123 Path.push_back('*'); in ListFilesInDirRecursive()
200 FileCallback(Path); in IterateDirRecursive()
[all …]
H A DFuzzerIO.h18 long GetEpoch(const std::string &Path);
23 std::string FileToString(const std::string &Path);
25 void CopyFileToErr(const std::string &Path);
30 void WriteToFile(const Unit &U, const std::string &Path);
69 bool IsFile(const std::string &Path);
70 bool IsDirectory(const std::string &Path);
71 size_t FileSize(const std::string &Path);
98 std::string Basename(const std::string &Path);
106 void RemoveFile(const std::string &Path);
111 void MkDir(const std::string &Path);
[all …]
/freebsd/contrib/llvm-project/llvm/include/llvm/Testing/Support/
H A DSupportHelpers.h114 SmallString<128> Path; variable
132 Path = Name;
136 Path.clear();
141 if (!Path.empty()) { in ~TempDir()
174 SmallString<128> Path; variable
179 Path = Link; in TempLink()
182 Path.clear(); in TempLink()
186 if (!Path.empty()) { in ~TempLink()
204 SmallString<128> Path; variable
220 Path = Name;
[all …]
/freebsd/sys/contrib/dev/acpica/common/
H A Ddmextern.c346 Path++; in AcpiDmNormalizeParentPrefix()
661 if (!Path) in AcpiDmAddOpToExternalList()
668 if ((*Path == AML_ROOT_PREFIX) && (Path[1])) in AcpiDmAddOpToExternalList()
670 Path++; in AcpiDmAddOpToExternalList()
910 if (!Path) in AcpiDmAddPathToExternalList()
917 if ((*Path == AML_ROOT_PREFIX) && (Path[1])) in AcpiDmAddPathToExternalList()
919 Path++; in AcpiDmAddPathToExternalList()
1071 if (AcpiUtStricmp (NewExternal->Path, NextExternal->Path) < 0) in AcpiDmCreateNewExternal()
1565 Path); in AcpiDmConflictingDeclaration()
1619 if (!Path) in AcpiDmCheckForExternalConflict()
[all …]
H A Dadwalk.c482 char *Path; in AcpiDmDumpDescending() local
527 NULL, &Path); in AcpiDmDumpDescending()
531 ACPI_FREE (Path); in AcpiDmDumpDescending()
618 NULL, &Path); in AcpiDmFindOrphanDescending()
621 ACPI_FREE (Path); in AcpiDmFindOrphanDescending()
786 Path = Op->Named.Path; in AcpiDmLoadDescendingOp()
792 Path = FieldPath; in AcpiDmLoadDescendingOp()
809 if (!Path) in AcpiDmLoadDescendingOp()
939 Path = Op->Named.Path; in AcpiDmXrefDescendingOp()
960 Path = Op->Common.Value.String; in AcpiDmXrefDescendingOp()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/Support/
H A DFileCollector.cpp40 Path = TmpDest; in isCaseSensitivePath()
46 UpperDest = Path.upper(); in isCaseSensitivePath()
59 SmallVectorImpl<char> &Path) { in updateWithRealPath() argument
60 StringRef SrcPath(Path.begin(), Path.size()); in updateWithRealPath()
87 Path.swap(RealPath); in updateWithRealPath()
93 sys::fs::make_absolute(Path); in makeAbsolute()
96 sys::path::native(Path); in makeAbsolute()
99 Path.erase(Path.begin(), sys::path::remove_leading_dotslash( in makeAbsolute()
100 StringRef(Path.begin(), Path.size())) in makeAbsolute()
266 Collector->addFile(Path); in status()
[all …]
H A DFileOutputBuffer.cpp80 : FileOutputBuffer(Path), Buffer(Buf), BufferSize(BufSize), in InMemoryBuffer()
124 return std::make_unique<InMemoryBuffer>(Path, MB, Size, Mode); in createInMemoryBuffer()
130 fs::TempFile::create(Path + ".tmp%%%%%%%", Mode); in createOnDiskBuffer()
150 return createInMemoryBuffer(Path, Size, Mode); in createOnDiskBuffer()
153 return std::make_unique<OnDiskBuffer>(Path, std::move(File), in createOnDiskBuffer()
161 if (Path == "-") in create()
170 return createInMemoryBuffer(Path, Size, Mode); in create()
173 fs::status(Path, Stat); in create()
190 return createInMemoryBuffer(Path, Size, Mode); in create()
192 return createOnDiskBuffer(Path, Size, Mode); in create()
[all …]
H A DPath.cpp301 I.Path = Path; in rbegin()
310 I.Path = Path; in rend()
326 if (Position == Path.size() && !Path.empty() && in operator ++()
525 StringRef OrigPath(Path.begin(), Path.size()); in replace_path_prefix()
559 if (Path[0] == '~' && (Path.size() == 1 || is_separator(Path[1], style))) { in native()
562 PathHome.append(Path.begin() + 1, Path.end()); in native()
566 std::replace(Path.begin(), Path.end(), '\\', '/'); in native()
707 while (Path.size() > 2 && Path[0] == '.' && is_separator(Path[1], style)) { in remove_leading_dotslash()
708 Path = Path.substr(2); in remove_leading_dotslash()
710 Path = Path.substr(1); in remove_leading_dotslash()
[all …]
H A DVirtualFileSystem.cpp289 return Path; in adjustPath()
824 P.toVector(Path); in addFile()
834 if (Path.empty()) in addFile()
838 auto I = llvm::sys::path::begin(Path), E = sys::path::end(Path); in addFile()
933 P.toVector(Path); in lookupNode()
944 if (Path.empty()) in lookupNode()
1138 P.toVector(Path); in setCurrentWorkingDirectory()
1148 if (!Path.empty()) in setCurrentWorkingDirectory()
1396 Result.append(Path.data(), Path.size()); in makeAbsolute()
2256 canonicalize(StringRef(Path.data(), Path.size())); in makeCanonical()
[all …]
H A DTarWriter.cpp101 static void writePaxHeader(raw_fd_ostream &OS, StringRef Path) { in writePaxHeader() argument
104 std::string PaxAttr = formatPax("path", Path); in writePaxHeader()
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()
144 size_t Sep = Path.rfind('/', MaxPrefix + 1); in splitUstar()
147 if (Path.size() - Sep - 1 >= sizeof(UstarHeader::Name)) in splitUstar()
150 Prefix = Path.substr(0, Sep); in splitUstar()
151 Name = Path.substr(Sep + 1); in splitUstar()
184 void TarWriter::append(StringRef Path, StringRef Data) { in append() argument
[all …]
/freebsd/contrib/llvm-project/clang/lib/DirectoryWatcher/mac/
H A DDirectoryWatcher-mac.cpp114 StringRef Path = ((const char **)EventPaths)[i]; in eventStreamCallback() local
125 Path == ctx->WatchedPath) { in eventStreamCallback()
136 llvm::sys::path::filename(Path)); in eventStreamCallback()
139 if (!getFileStatus(Path).has_value()) { in eventStreamCallback()
161 StringRef Path, in createFSEventStream() argument
164 if (Path.empty()) in createFSEventStream()
187 RealPath = Path.str(); in createFSEventStream()
217 StringRef Path, in create() argument
223 if (Path.empty()) in create()
235 const std::string CopiedPath = Path.str(); in create()
[all …]
/freebsd/contrib/llvm-project/llvm/include/llvm/Support/
H A DVirtualFileSystem.h145 virtual void setPath(const Twine &Path) {} in setPath() argument
151 std::string Path; variable
157 : Path(std::move(Path)), Type(Type) {} in directory_entry()
159 llvm::StringRef path() const { return Path; } in path()
276 openFileForRead(const Twine &Path) = 0;
303 bool exists(const Twine &Path);
429 return FS->status(Path); in status()
433 return FS->openFileForRead(Path); in openFileForRead()
446 return FS->getRealPath(Path, Output); in getRealPath()
449 return FS->isLocal(Path, Result); in isLocal()
[all …]
/freebsd/contrib/llvm-project/clang/lib/APINotes/
H A DAPINotesManager.cpp143 llvm::SmallString<128> Path(Directory.getName()); in findAPINotesFile() local
150 return FM.getOptionalFileRef(Path, /*Open*/ true); in findAPINotesFile()
157 llvm::SmallString<128> Path(FrameworkPath); in loadFrameworkAPINotes() local
158 unsigned FrameworkNameLength = Path.size(); in loadFrameworkAPINotes()
163 llvm::sys::path::append(Path, "APINotes"); in loadFrameworkAPINotes()
168 auto APINotesFile = FM.getOptionalFileRef(Path); in loadFrameworkAPINotes()
173 Path.resize(FrameworkNameLength); in loadFrameworkAPINotes()
251 unsigned PathLen = Path.size(); in getCurrentModuleAPINotes()
253 llvm::sys::path::append(Path, "Headers"); in getCurrentModuleAPINotes()
257 Path.resize(PathLen); in getCurrentModuleAPINotes()
[all …]
/freebsd/contrib/llvm-project/clang/lib/Tooling/
H A DFileMatchTrie.cpp64 if (Path.empty()) { in insert()
66 Path = std::string(NewPath); in insert()
71 if (NewPath == Path) in insert()
75 StringRef(Path).drop_back(ConsumedLength))); in insert()
76 Children[Element].Path = Path; in insert()
112 if (llvm::sys::path::filename(Path) == in findEquivalent()
114 Comparator.equivalent(StringRef(Path), FileName)) in findEquivalent()
115 return StringRef(Path); in findEquivalent()
156 if (Path.empty()) in getAll()
159 Results.push_back(StringRef(Path)); in getAll()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/Object/
H A DBuildID.cpp70 SmallString<128> Path{Directory}; in fetch() local
71 sys::path::append(Path, ".build-id", in fetch()
74 Path += ".debug"; in fetch()
75 return Path; in fetch()
78 SmallString<128> Path = GetDebugPath( in fetch() local
87 if (llvm::sys::fs::exists(Path)) in fetch()
88 return std::string(Path); in fetch()
92 SmallString<128> Path = GetDebugPath(Directory); in fetch() local
93 if (llvm::sys::fs::exists(Path)) in fetch()
94 return std::string(Path); in fetch()
/freebsd/contrib/llvm-project/llvm/lib/WindowsDriver/
H A DMSVCPaths.cpp117 Path = std::string(SDKPath); in getWindowsSDKDirViaCommandLine()
119 Path = WinSdkDir->str(); in getWindowsSDKDirViaCommandLine()
356 SmallString<256> Path(VCToolChainPath); in getSubDirectoryPath() local
380 sys::path::append(Path, IncludeName); in getSubDirectoryPath()
386 return std::string(Path); in getSubDirectoryPath()
433 SmallString<128> TestPath(Path); in getWindowsSDKDir()
471 Path, nullptr)) in getUniversalCRTSdkDir()
494 Path = std::string(ToolsPath); in findVCToolChainViaCommandLine()
496 Path = VCToolsDir->str(); in findVCToolChainViaCommandLine()
522 Path = std::move(*VCInstallDir); in findVCToolChainViaEnvironment()
[all …]
/freebsd/contrib/llvm-project/clang/lib/Driver/ToolChains/
H A DMipsLinux.cpp59 for (const auto &Path : Callback(SelectedMultilibs.back())) in AddClangSystemIncludeArgs() local
61 D.getInstalledDir() + Path); in AddClangSystemIncludeArgs()
99 for (std::string Path : Callback(SelectedMultilibs.back())) { in addLibCxxIncludePaths() local
100 Path = getDriver().getInstalledDir() + Path + "/c++/v1"; in addLibCxxIncludePaths()
101 if (llvm::sys::fs::exists(Path)) { in addLibCxxIncludePaths()
102 addSystemInclude(DriverArgs, CC1Args, Path); in addLibCxxIncludePaths()
124 SmallString<128> Path(getDriver().ResourceDir); in getCompilerRT() local
125 llvm::sys::path::append(Path, SelectedMultilibs.back().osSuffix(), "lib" + LibSuffix, in getCompilerRT()
140 Path, Twine("libclang_rt." + Component + "-" + "mips" + Suffix)); in getCompilerRT()
141 return std::string(Path); in getCompilerRT()
H A DHIPSPV.cpp41 if (!Path.empty()) { in findPassPlugin()
42 if (llvm::sys::fs::exists(Path)) in findPassPlugin()
43 return Path.str(); in findPassPlugin()
44 D.Diag(diag::err_drv_no_such_file) << Path; in findPassPlugin()
215 for (auto Path : HipDeviceLibPathArgs) in getDeviceLibs() local
220 SmallString<128> Path(HipPath); in getDeviceLibs() local
233 SmallString<128> Path(LibraryPath); in getDeviceLibs() local
235 FullName = Path; in getDeviceLibs()
248 SmallString<128> Path(LibPath); in getDeviceLibs() local
249 llvm::sys::path::append(Path, BCName); in getDeviceLibs()
[all …]
H A DAVR.cpp431 llvm::sys::path::append(Path, "avr"); in getCompilerRT()
433 return std::string(Path); in getCompilerRT()
569 Path += *FamilyName; in ConstructJob()
570 Path += ".x"; in ConstructJob()
571 if (llvm::sys::fs::exists(Path)) in ConstructJob()
599 std::string Path(GCCParent + "/avr"); in findAVRLibcInstallation() local
600 if (llvm::sys::fs::is_directory(Path)) in findAVRLibcInstallation()
601 return Path; in findAVRLibcInstallation()
602 Path = GCCParent + "/../avr"; in findAVRLibcInstallation()
604 return Path; in findAVRLibcInstallation()
[all …]
/freebsd/contrib/llvm-project/clang/lib/Basic/
H A DFileSystemStatCache.cpp34 FileSystemStatCache::get(StringRef Path, llvm::vfs::Status &Status, in get() argument
43 RetCode = Cache->getStat(Path, Status, isFile, F, FS); in get()
47 llvm::ErrorOr<llvm::vfs::Status> StatusOrErr = FS.status(Path); in get()
61 auto OwnedFile = FS.openFileForRead(Path); in get()
102 MemorizeStatCalls::getStat(StringRef Path, llvm::vfs::Status &Status, in getStat() argument
106 auto err = get(Path, Status, isFile, F, nullptr, FS); in getStat()
116 if (!Status.isDirectory() || llvm::sys::path::is_absolute(Path)) in getStat()
117 StatCalls[Path] = Status; in getStat()
/freebsd/contrib/llvm-project/llvm/lib/TextAPI/
H A DUtils.cpp18 void llvm::MachO::replace_extension(SmallVectorImpl<char> &Path, in replace_extension() argument
20 StringRef P(Path.begin(), Path.size()); in replace_extension()
25 sys::path::replace_extension(Path, Extension); in replace_extension()
36 Path.push_back('.'); in replace_extension()
39 Path.append(Ext.begin(), Ext.end()); in replace_extension()
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Instrumentation/
H A DBlockCoverageInference.cpp188 assert(Path.size()); in findDependencies()
190 if (Path.size() == 1) { in findDependencies()
197 assert(Path.size() >= 2); in findDependencies()
209 BlockSet Path; in findDependencies() local
210 Path.insert(&BB); in findDependencies()
212 Path.insert(Next); in findDependencies()
216 for (auto *BB : Path) in findDependencies()
221 for (auto *BB : Path) in findDependencies()
222 if (BB != Path.back()) in findDependencies()
225 for (auto *BB : Path) in findDependencies()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/DebugInfo/PDB/
H A DPDB.cpp22 Error llvm::pdb::loadDataForPDB(PDB_ReaderType Type, StringRef Path, in loadDataForPDB() argument
26 return NativeSession::createFromPdbPath(Path, Session); in loadDataForPDB()
29 return DIASession::createFromPdb(Path, Session); in loadDataForPDB()
35 Error llvm::pdb::loadDataForEXE(PDB_ReaderType Type, StringRef Path, in loadDataForEXE() argument
39 Expected<std::string> PdbPath = NativeSession::searchForPdb({Path}); in loadDataForEXE()
46 return DIASession::createFromExe(Path, Session); in loadDataForEXE()

12345678910>>...20