/netbsd-src/external/apache2/llvm/dist/llvm/utils/unittest/googletest/src/ |
H A D | gtest-filepath.cc | 94 FilePath FilePath::GetCurrentDir() { in GetCurrentDir() 99 return FilePath(kCurrentDirectoryString); in GetCurrentDir() 102 return FilePath(_getcwd(cwd, sizeof(cwd)) == nullptr ? "" : cwd); in GetCurrentDir() 110 return FilePath(result == nullptr ? kCurrentDirectoryString : cwd); in GetCurrentDir() 112 return FilePath(result == nullptr ? "" : cwd); in GetCurrentDir() 120 FilePath FilePath::RemoveExtension(const char* extension) const { in RemoveExtension() 123 return FilePath(pathname_.substr( in RemoveExtension() 132 const char* FilePath::FindLastPathSeparator() const { in FindLastPathSeparator() 151 FilePath FilePath::RemoveDirectoryName() const { in RemoveDirectoryName() 153 return last_sep ? FilePath(last_sep + 1) : *this; in RemoveDirectoryName() [all …]
|
/netbsd-src/external/apache2/llvm/dist/llvm/utils/unittest/googletest/include/gtest/internal/ |
H A D | gtest-filepath.h | 62 class GTEST_API_ FilePath { 64 FilePath() : pathname_("") { } in FilePath() function 65 FilePath(const FilePath& rhs) : pathname_(rhs.pathname_) { } in FilePath() function 67 explicit FilePath(const std::string& pathname) : pathname_(pathname) { in FilePath() function 71 FilePath& operator=(const FilePath& rhs) { 76 void Set(const FilePath& rhs) { in Set() 84 static FilePath GetCurrentDir(); 90 static FilePath MakeFileName(const FilePath& directory, 91 const FilePath& base_name, 98 static FilePath ConcatPaths(const FilePath& directory, [all …]
|
/netbsd-src/external/apache2/llvm/dist/clang/lib/Tooling/Refactoring/ |
H A D | AtomicChange.cpp | 30 : Key(E.getKey()), FilePath(E.getFilePath()), Error(E.getError()), in NormalizedAtomicChange() 41 std::string FilePath; member 57 Io.mapRequired("FilePath", Doc.FilePath); in mapping() 72 Io.mapRequired("FilePath", Keys->FilePath); in mapping() 144 createReplacementsForHeaders(llvm::StringRef FilePath, llvm::StringRef Code, in createReplacementsForHeaders() argument 160 tooling::Replacement(FilePath, UINT_MAX, 0, ReplacementText)); in createReplacementsForHeaders() 168 HeaderReplacements.add(Replacement(FilePath, UINT_MAX, 1, Header)); in createReplacementsForHeaders() 183 combineReplacementsInChanges(llvm::StringRef FilePath, in combineReplacementsInChanges() argument 189 FilePath, R.getOffset(), R.getLength(), R.getReplacementText()))) in combineReplacementsInChanges() 203 FilePath = std::string(FE->getName()); in AtomicChange() [all …]
|
/netbsd-src/sys/external/bsd/gnu-efi/dist/lib/ |
H A D | sread.c | 39 IN OUT EFI_DEVICE_PATH **FilePath, in OpenSimpleReadFile() argument 71 UserFilePath = *FilePath; in OpenSimpleReadFile() 103 … Status = uefi_call_wrapper(BS->LocateDevicePath, 3, &FileSystemProtocol, FilePath, DeviceHandle); in OpenSimpleReadFile() 114 AlignedFilePath = DuplicateDevicePath(*FilePath); in OpenSimpleReadFile() 195 *FilePath = UserFilePath; in OpenSimpleReadFile() 210 Status = LibDevicePathToInterface (&LoadFileProtocol, *FilePath, (VOID*)&LoadFile); in OpenSimpleReadFile() 213 TempFilePath = DuplicateDevicePath (*FilePath); in OpenSimpleReadFile() 230 *FilePath, in OpenSimpleReadFile() 253 *FilePath, in OpenSimpleReadFile()
|
H A D | dpath.c | 248 FILEPATH_DEVICE_PATH *FilePath; in FileDevicePath() local 252 FilePath = AllocateZeroPool (Size + SIZE_OF_FILEPATH_DEVICE_PATH + sizeof(EFI_DEVICE_PATH)); in FileDevicePath() 255 if (FilePath) { in FileDevicePath() 261 FilePath->Header.Type = MEDIA_DEVICE_PATH; in FileDevicePath() 262 FilePath->Header.SubType = MEDIA_FILEPATH_DP; in FileDevicePath() 263 SetDevicePathNodeLength (&FilePath->Header, Size + SIZE_OF_FILEPATH_DEVICE_PATH); in FileDevicePath() 264 CopyMem (FilePath->PathName, FileName, Size); in FileDevicePath() 265 Eop = NextDevicePathNode(&FilePath->Header); in FileDevicePath() 272 DevicePath = (EFI_DEVICE_PATH *) FilePath; in FileDevicePath() 279 FreePool(FilePath); in FileDevicePath() [all …]
|
/netbsd-src/external/apache2/llvm/dist/llvm/tools/llvm-elfabi/ |
H A D | llvm-elfabi.cpp | 66 static Error writeTBE(StringRef FilePath, ELFStub &Stub) { in writeTBE() argument 77 MemoryBuffer::getFile(FilePath)) { in writeTBE() 86 raw_fd_ostream Out(FilePath, SysErr); in writeTBE() 89 FilePath.data()); in writeTBE() 96 static Expected<std::unique_ptr<ELFStub>> readInputFile(StringRef FilePath) { in readInputFile() argument 99 MemoryBuffer::getFile(FilePath); in readInputFile() 102 FilePath.data()); in readInputFile() 134 FilePath.data()), in readInputFile()
|
/netbsd-src/external/apache2/llvm/dist/clang/include/clang/Tooling/Refactoring/ |
H A D | AtomicChange.h | 49 AtomicChange(llvm::StringRef FilePath, llvm::StringRef Key) in AtomicChange() argument 50 : Key(Key), FilePath(FilePath) {} in AtomicChange() 71 const std::string &getFilePath() const { return FilePath; } in getFilePath() 132 AtomicChange(std::string Key, std::string FilePath, std::string Error, 139 std::string FilePath; variable 183 applyAtomicChanges(llvm::StringRef FilePath, llvm::StringRef Code,
|
/netbsd-src/sys/external/bsd/acpica/dist/tools/acpibin/ |
H A D | abcompare.c | 204 char *FilePath) in AbDisplayHeader() argument 210 File = fopen (FilePath, "rb"); in AbDisplayHeader() 213 printf ("Could not open file %s\n", FilePath); in AbDisplayHeader() 222 printf ("File %s does not contain a valid ACPI table header\n", FilePath); in AbDisplayHeader() 245 char *FilePath) in AbComputeChecksum() argument 253 File = fopen (FilePath, "rb"); in AbComputeChecksum() 256 printf ("Could not open file %s\n", FilePath); in AbComputeChecksum() 263 printf ("File %s does not contain a valid ACPI table header\n", FilePath); in AbComputeChecksum() 312 File = fopen (FilePath, "r+b"); in AbComputeChecksum() 315 printf ("Could not open file %s for writing\n", FilePath); in AbComputeChecksum()
|
/netbsd-src/external/apache2/llvm/dist/clang/include/clang/Tooling/ |
H A D | ReplacementsYaml.h | 34 : FilePath(""), Offset(0), Length(0), ReplacementText("") {} in LLVM_YAML_IS_SEQUENCE_VECTOR() 37 : FilePath(R.getFilePath()), Offset(R.getOffset()), in LLVM_YAML_IS_SEQUENCE_VECTOR() 41 return clang::tooling::Replacement(FilePath, Offset, Length, in LLVM_YAML_IS_SEQUENCE_VECTOR() 45 std::string FilePath; in LLVM_YAML_IS_SEQUENCE_VECTOR() 54 Io.mapRequired("FilePath", Keys->FilePath); in LLVM_YAML_IS_SEQUENCE_VECTOR()
|
H A D | AllTUsExecution.h | 58 void mapVirtualFile(StringRef FilePath, StringRef Content) override { in mapVirtualFile() argument 59 OverlayFiles[FilePath] = std::string(Content); in mapVirtualFile()
|
H A D | StandaloneExecution.h | 75 void mapVirtualFile(StringRef FilePath, StringRef Content) override { in mapVirtualFile() argument 76 Tool.mapVirtualFile(FilePath, Content); in mapVirtualFile()
|
/netbsd-src/external/apache2/llvm/dist/clang/lib/Driver/ToolChains/ |
H A D | Cuda.cpp | 236 std::string FilePath = LibDevicePath + "/libdevice.10.bc"; in CudaInstallationDetector() local 237 if (FS.exists(FilePath)) { in CudaInstallationDetector() 244 LibDeviceMap[GpuArchName] = FilePath; in CudaInstallationDetector() 252 StringRef FilePath = LI->path(); in CudaInstallationDetector() local 253 StringRef FileName = llvm::sys::path::filename(FilePath); in CudaInstallationDetector() 261 LibDeviceMap[GpuArch] = FilePath.str(); in CudaInstallationDetector() 266 LibDeviceMap["sm_20"] = std::string(FilePath); in CudaInstallationDetector() 267 LibDeviceMap["sm_21"] = std::string(FilePath); in CudaInstallationDetector() 268 LibDeviceMap["sm_32"] = std::string(FilePath); in CudaInstallationDetector() 270 LibDeviceMap["sm_30"] = std::string(FilePath); in CudaInstallationDetector() [all …]
|
H A D | AMDGPU.cpp | 83 StringRef FilePath = LI->path(); in scanLibDevicePath() local 84 StringRef FileName = llvm::sys::path::filename(FilePath); in scanLibDevicePath() 95 OCML = FilePath; in scanLibDevicePath() 97 OCKL = FilePath; in scanLibDevicePath() 99 OpenCL = FilePath; in scanLibDevicePath() 101 HIP = FilePath; in scanLibDevicePath() 103 AsanRTL = FilePath; in scanLibDevicePath() 105 FiniteOnly.Off = FilePath; in scanLibDevicePath() 107 FiniteOnly.On = FilePath; in scanLibDevicePath() 109 DenormalsAreZero.On = FilePath; in scanLibDevicePath() [all …]
|
H A D | NaCl.cpp | 216 std::string FilePath(getDriver().Dir + "/../"); in NaClToolChain() local 226 file_paths.push_back(FilePath + "x86_64-nacl/lib32"); in NaClToolChain() 227 file_paths.push_back(FilePath + "i686-nacl/usr/lib"); in NaClToolChain() 232 file_paths.push_back(FilePath + "x86_64-nacl/lib"); in NaClToolChain() 233 file_paths.push_back(FilePath + "x86_64-nacl/usr/lib"); in NaClToolChain() 238 file_paths.push_back(FilePath + "arm-nacl/lib"); in NaClToolChain() 239 file_paths.push_back(FilePath + "arm-nacl/usr/lib"); in NaClToolChain() 244 file_paths.push_back(FilePath + "mipsel-nacl/lib"); in NaClToolChain() 245 file_paths.push_back(FilePath + "mipsel-nacl/usr/lib"); in NaClToolChain()
|
/netbsd-src/external/apache2/llvm/dist/clang/include/clang/IndexSerialization/ |
H A D | SerializablePathCollection.h | 61 struct FilePath { struct 65 FilePath(const DirPath &Dir, const StringPool::StringOffsetSize &Filename) in FilePath() argument 76 llvm::ArrayRef<FilePath> getFilePaths() const; 82 std::vector<FilePath> FilePaths; 108 ArrayRef<PathPool::FilePath> getFilePaths() const { in getFilePaths()
|
/netbsd-src/external/apache2/llvm/dist/clang/lib/Tooling/Core/ |
H A D | Diagnostic.cpp | 29 FilePath = std::string(Sources.getFilename(Loc)); in DiagnosticMessage() 34 if (!FilePath.empty()) in DiagnosticMessage() 41 FilePath = std::string(Sources.getFilename(Range.getBegin())); in FileByteRange() 42 if (!FilePath.empty()) { in FileByteRange()
|
H A D | Replacement.cpp | 45 Replacement::Replacement() : FilePath(InvalidLocation) {} in Replacement() 47 Replacement::Replacement(StringRef FilePath, unsigned Offset, unsigned Length, in Replacement() argument 49 : FilePath(std::string(FilePath)), ReplacementRange(Offset, Length), in Replacement() 65 return FilePath != InvalidLocation; in isApplicable() 70 auto Entry = SM.getFileManager().getFile(FilePath); in apply() 90 Stream << FilePath << ": " << ReplacementRange.getOffset() << ":+" in toString() 126 this->FilePath = std::string(Entry ? Entry->getName() : InvalidLocation); in setFromSourceLocation() 369 : MergeSecond(MergeSecond), Delta(D), FilePath(R.getFilePath()), in MergedReplacement() 419 Replacement asReplacement() const { return {FilePath, Offset, Length, Text}; } in asReplacement() 435 const StringRef FilePath; member in __anonf7f444380211::MergedReplacement
|
/netbsd-src/external/apache2/llvm/dist/llvm/lib/Support/ |
H A D | Process.cpp | 59 SmallString<128> FilePath(Dir); in FindInEnvPath() local 60 path::append(FilePath, FileName); in FindInEnvPath() 61 if (fs::exists(Twine(FilePath))) { in FindInEnvPath() 62 FoundPath = std::string(FilePath.str()); in FindInEnvPath()
|
/netbsd-src/external/apache2/llvm/dist/clang/lib/Frontend/ |
H A D | PrecompiledPreamble.cpp | 653 PrecompiledPreamble::TempPCHFile::TempPCHFile(std::string FilePath) in TempPCHFile() argument 654 : FilePath(std::move(FilePath)) { in TempPCHFile() 655 TemporaryFiles::getInstance().addFile(*this->FilePath); in TempPCHFile() 659 FilePath = std::move(Other.FilePath); in TempPCHFile() 660 Other.FilePath = None; in TempPCHFile() 667 FilePath = std::move(Other.FilePath); in operator =() 668 Other.FilePath = None; in operator =() 675 if (FilePath) { in RemoveFileIfPresent() 676 TemporaryFiles::getInstance().removeFile(*FilePath); in RemoveFileIfPresent() 677 FilePath = None; in RemoveFileIfPresent() [all …]
|
/netbsd-src/sys/arch/ia64/stand/efi/libefi/ |
H A D | efi.c | 152 img->FilePath == NULL) ? 1 : 0; in efi_main() 155 (DevicePathType(img->FilePath) != MEDIA_DEVICE_PATH || in efi_main() 156 DevicePathSubType(img->FilePath) != MEDIA_FILEPATH_DP || in efi_main() 157 DevicePathNodeLength(img->FilePath) <= in efi_main()
|
/netbsd-src/external/apache2/llvm/dist/clang/lib/Tooling/ |
H A D | Refactoring.cpp | 78 const std::string &FilePath = FileAndReplaces.first; in formatAndApplyAllReplacements() local 82 if (auto File = Files.getFile(FilePath)) in formatAndApplyAllReplacements() 88 auto CurStyle = format::getStyle(Style, FilePath, "LLVM"); in formatAndApplyAllReplacements()
|
H A D | GuessTargetAndModeCompilationDatabase.cpp | 33 getCompileCommands(StringRef FilePath) const override { in getCompileCommands() 34 return addTargetAndMode(Base->getCompileCommands(FilePath)); in getCompileCommands()
|
/netbsd-src/external/apache2/llvm/dist/clang/lib/Basic/ |
H A D | FileManager.cpp | 543 SmallString<128> FilePath(Filename); in getBufferForFileImpl() local 544 FixupRelativePath(FilePath); in getBufferForFileImpl() 545 return FS->getBufferForFile(FilePath, FileSize, RequiresNullTerminator, in getBufferForFileImpl() 563 SmallString<128> FilePath(Path); in getStatValue() local 564 FixupRelativePath(FilePath); in getStatValue() 566 return FileSystemStatCache::get(FilePath.c_str(), Status, isFile, F, in getStatValue() 573 SmallString<128> FilePath(Path); in getNoncachedStatValue() local 574 FixupRelativePath(FilePath); in getNoncachedStatValue() 576 llvm::ErrorOr<llvm::vfs::Status> S = FS->status(FilePath.c_str()); in getNoncachedStatValue()
|
/netbsd-src/external/apache2/llvm/dist/llvm/lib/InterfaceStub/ |
H A D | ELFObjHandler.cpp | 614 static Error writeELFBinaryToFile(StringRef FilePath, const ELFStub &Stub, in writeELFBinaryToFile() argument 623 MemoryBuffer::getFile(FilePath)) { in writeELFBinaryToFile() 634 FileOutputBuffer::create(FilePath, Builder.getSize()); in writeELFBinaryToFile() 638 " when trying to open `" + FilePath + in writeELFBinaryToFile() 669 Error writeBinaryStub(StringRef FilePath, const ELFStub &Stub, in writeBinaryStub() argument 672 return writeELFBinaryToFile<ELF32LE>(FilePath, Stub, WriteIfChanged); in writeBinaryStub() 674 return writeELFBinaryToFile<ELF32BE>(FilePath, Stub, WriteIfChanged); in writeBinaryStub() 676 return writeELFBinaryToFile<ELF64LE>(FilePath, Stub, WriteIfChanged); in writeBinaryStub() 678 return writeELFBinaryToFile<ELF64BE>(FilePath, Stub, WriteIfChanged); in writeBinaryStub()
|
/netbsd-src/external/apache2/llvm/dist/clang/include/clang/Tooling/Core/ |
H A D | Diagnostic.h | 35 std::string FilePath; member 55 std::string FilePath; member
|