| /freebsd/contrib/googletest/googletest/test/ |
| H A D | googletest-filepath-test.cc | 65 FilePath filepath(path); in _rmdir() 76 const FilePath original_dir = FilePath::GetCurrentDir(); 80 const FilePath cwd = FilePath::GetCurrentDir(); 100 EXPECT_TRUE(FilePath("").IsEmpty()); in TEST() 104 EXPECT_FALSE(FilePath("a").IsEmpty()); in TEST() 105 EXPECT_FALSE(FilePath(".").IsEmpty()); in TEST() 106 EXPECT_FALSE(FilePath("a/b").IsEmpty()); in TEST() 107 EXPECT_FALSE(FilePath("a\\b\\").IsEmpty()); in TEST() 112 EXPECT_EQ("", FilePath("").RemoveDirectoryName().string()); in TEST() 117 EXPECT_EQ("afile", FilePath("afile").RemoveDirectoryName().string()); in TEST() [all …]
|
| H A D | googletest-options-test.cc | 59 FilePath GetAbsolutePathOf(const FilePath& relative_path) { in GetAbsolutePathOf() 60 return FilePath::ConcatPaths(FilePath::GetCurrentDir(), relative_path); in GetAbsolutePathOf() 77 EXPECT_EQ(GetAbsolutePathOf(FilePath("test_detail.xml")).string(), in TEST() 83 EXPECT_EQ(GetAbsolutePathOf(FilePath("filename.abc")).string(), in TEST() 90 GetAbsolutePathOf(FilePath(std::string("path") + GTEST_PATH_SEP_ + in TEST() 134 original_working_dir_ = FilePath::GetCurrentDir(); in SetUp() 138 FilePath::GetCurrentDir().string()); in SetUp() 145 FilePath original_working_dir_; 151 FilePath::ConcatPaths(original_working_dir_, FilePath("test_detail.xml")) in TEST_F() 159 FilePath::ConcatPaths(original_working_dir_, FilePath("test_detail.xml")) in TEST_F() [all …]
|
| /freebsd/contrib/googletest/googletest/src/ |
| H A D | gtest-filepath.cc | 101 FilePath FilePath::GetCurrentDir() { in GetCurrentDir() 109 return FilePath(kCurrentDirectoryString); in GetCurrentDir() 112 return FilePath(_getcwd(cwd, sizeof(cwd)) == nullptr ? "" : cwd); in GetCurrentDir() 120 return FilePath(result == nullptr ? kCurrentDirectoryString : cwd); in GetCurrentDir() 122 return FilePath(result == nullptr ? "" : cwd); in GetCurrentDir() 130 FilePath FilePath::RemoveExtension(const char* extension) const { in RemoveExtension() 133 return FilePath( in RemoveExtension() 142 const char* FilePath::FindLastPathSeparator() const { in FindLastPathSeparator() 155 size_t FilePath::CalculateRootLength() const { in CalculateRootLength() 199 FilePath FilePath::RemoveDirectoryName() const { in RemoveDirectoryName() [all …]
|
| /freebsd/contrib/googletest/googletest/include/gtest/internal/ |
| H A D | gtest-filepath.h | 70 class GTEST_API_ FilePath { 72 FilePath() : pathname_("") {} in FilePath() function 73 FilePath(const FilePath& rhs) : pathname_(rhs.pathname_) {} in FilePath() function 74 FilePath(FilePath&& rhs) noexcept : pathname_(std::move(rhs.pathname_)) {} in FilePath() function 76 explicit FilePath(std::string pathname) : pathname_(std::move(pathname)) { in FilePath() function 80 FilePath& operator=(const FilePath& rhs) { 84 FilePath& operator=(FilePath&& rhs) noexcept { 89 void Set(const FilePath& rhs) { pathname_ = rhs.pathname_; } in Set() 95 static FilePath GetCurrentDir(); 101 static FilePath MakeFileName(const FilePath& directory, [all …]
|
| /freebsd/contrib/llvm-project/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 …]
|
| /freebsd/contrib/llvm-project/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() 134 AtomicChange(std::string Key, std::string FilePath, std::string Error, 141 std::string FilePath; variable 185 applyAtomicChanges(llvm::StringRef FilePath, llvm::StringRef Code,
|
| /freebsd/contrib/llvm-project/clang/include/clang/Tooling/ |
| H A D | ReplacementsYaml.h | 36 : FilePath(R.getFilePath()), Offset(R.getOffset()), in LLVM_YAML_IS_SEQUENCE_VECTOR() 40 return clang::tooling::Replacement(FilePath, Offset, Length, in LLVM_YAML_IS_SEQUENCE_VECTOR() 44 std::string FilePath; in LLVM_YAML_IS_SEQUENCE_VECTOR() 53 Io.mapRequired("FilePath", Keys->FilePath); in LLVM_YAML_IS_SEQUENCE_VECTOR()
|
| H A D | AllTUsExecution.h | 59 void mapVirtualFile(StringRef FilePath, StringRef Content) override { in mapVirtualFile() argument 60 OverlayFiles[FilePath] = std::string(Content); in mapVirtualFile()
|
| H A D | StandaloneExecution.h | 76 void mapVirtualFile(StringRef FilePath, StringRef Content) override { in mapVirtualFile() argument 77 Tool.mapVirtualFile(FilePath, Content); in mapVirtualFile()
|
| /freebsd/contrib/llvm-project/llvm/lib/CodeGen/ |
| H A D | JMCInstrumenter.cpp | 89 SmallString<256> FilePath(SP.getDirectory()); in getFlagName() local 90 sys::path::append(FilePath, PathStyle, SP.getFilename()); in getFlagName() 91 sys::path::native(FilePath, PathStyle); in getFlagName() 92 sys::path::remove_dots(FilePath, /*remove_dot_dot=*/true, PathStyle); in getFlagName() 101 for (auto C : sys::path::filename(FilePath, PathStyle)) in getFlagName() 104 sys::path::remove_filename(FilePath, PathStyle); in getFlagName() 106 utohexstr(djbHash(FilePath), /*LowerCase=*/false, in getFlagName()
|
| /freebsd/contrib/llvm-project/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()
|
| /freebsd/contrib/llvm-project/clang/lib/Driver/ToolChains/ |
| H A D | Cuda.cpp | 224 std::string FilePath = LibDevicePath + "/libdevice.10.bc"; in CudaInstallationDetector() local 225 if (FS.exists(FilePath)) { in CudaInstallationDetector() 232 LibDeviceMap[OffloadArchName] = FilePath; in CudaInstallationDetector() 240 StringRef FilePath = LI->path(); in CudaInstallationDetector() local 241 StringRef FileName = llvm::sys::path::filename(FilePath); in CudaInstallationDetector() 249 LibDeviceMap[GpuArch] = FilePath.str(); in CudaInstallationDetector() 254 LibDeviceMap["sm_20"] = std::string(FilePath); in CudaInstallationDetector() 255 LibDeviceMap["sm_21"] = std::string(FilePath); in CudaInstallationDetector() 256 LibDeviceMap["sm_32"] = std::string(FilePath); in CudaInstallationDetector() 258 LibDeviceMap["sm_30"] = std::string(FilePath); in CudaInstallationDetector() [all …]
|
| H A D | AMDGPU.cpp | 86 StringRef FilePath = LI->path(); in scanLibDevicePath() local 87 StringRef FileName = llvm::sys::path::filename(FilePath); in scanLibDevicePath() 99 OCML = FilePath; in scanLibDevicePath() 101 OCKL = FilePath; in scanLibDevicePath() 103 OpenCL = FilePath; in scanLibDevicePath() 105 HIP = FilePath; in scanLibDevicePath() 107 AsanRTL = FilePath; in scanLibDevicePath() 109 FiniteOnly.Off = FilePath; in scanLibDevicePath() 111 FiniteOnly.On = FilePath; in scanLibDevicePath() 113 DenormalsAreZero.On = FilePath; in scanLibDevicePath() [all …]
|
| /freebsd/contrib/llvm-project/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); in FindInEnvPath()
|
| /freebsd/contrib/llvm-project/clang/lib/ExtractAPI/ |
| H A D | ExtractAPIConsumer.cpp | 69 SmallString<128> FilePath(File.begin(), File.end()); in getRelativeIncludeName() local 70 FS.makeAbsolute(FilePath); in getRelativeIncludeName() 71 path::remove_dots(FilePath, true); in getRelativeIncludeName() 72 FilePath = path::convert_to_slash(FilePath); in getRelativeIncludeName() 73 File = FilePath; in getRelativeIncludeName() 481 StringRef FilePath = FIF.getFile(); in PrepareToExecuteAction() local 482 if (auto RelativeName = getRelativeIncludeName(CI, FilePath, &IsQuoted)) { in PrepareToExecuteAction() 498 HeaderContents += FilePath; in PrepareToExecuteAction() 500 KnownInputFiles.emplace_back(FilePath, true); in PrepareToExecuteAction()
|
| /freebsd/lib/libefivar/ |
| H A D | uefi-dputil.c | 890 FILEPATH_DEVICE_PATH *FilePath; in FileDevicePath() local 899 FilePath = (FILEPATH_DEVICE_PATH *)FileDevicePath; in FileDevicePath() 900 FilePath->Header.Type = MEDIA_DEVICE_PATH; in FileDevicePath() 901 FilePath->Header.SubType = MEDIA_FILEPATH_DP; in FileDevicePath() 902 CopyMem (&FilePath->PathName, FileName, Size); in FileDevicePath() 903 SetDevicePathNodeLength (&FilePath->Header, Size + SIZE_OF_FILEPATH_DEVICE_PATH); in FileDevicePath() 904 SetDevicePathEndNode (NextDevicePathNode (&FilePath->Header)); in FileDevicePath()
|
| /freebsd/stand/efi/loader/ |
| H A D | efi_main.c | 155 img->FilePath == NULL) ? 1 : 0; in efi_main() 158 (DevicePathType(img->FilePath) != MEDIA_DEVICE_PATH || in efi_main() 159 DevicePathSubType(img->FilePath) != MEDIA_FILEPATH_DP || in efi_main() 160 DevicePathNodeLength(img->FilePath) <= in efi_main()
|
| /freebsd/contrib/llvm-project/clang/lib/Basic/ |
| H A D | FileManager.cpp | 572 SmallString<128> FilePath(Filename); in getBufferForFileImpl() local 573 FixupRelativePath(FilePath); in getBufferForFileImpl() 574 return FS->getBufferForFile(FilePath, FileSize, RequiresNullTerminator, in getBufferForFileImpl() 592 SmallString<128> FilePath(Path); in getStatValue() local 593 FixupRelativePath(FilePath); in getStatValue() 595 return FileSystemStatCache::get(FilePath.c_str(), Status, isFile, F, in getStatValue() 602 SmallString<128> FilePath(Path); in getNoncachedStatValue() local 603 FixupRelativePath(FilePath); in getNoncachedStatValue() 605 llvm::ErrorOr<llvm::vfs::Status> S = FS->status(FilePath.c_str()); in getNoncachedStatValue()
|
| /freebsd/contrib/llvm-project/llvm/lib/Debuginfod/ |
| H A D | Debuginfod.cpp | 396 static bool hasELFMagic(StringRef FilePath) { in hasELFMagic() argument 398 std::error_code EC = identify_magic(FilePath, Type); in hasELFMagic() 421 std::string FilePath; in findBinaries() local 430 FilePath = I->path(); in findBinaries() 435 if (!hasELFMagic(FilePath)) in findBinaries() 439 object::createBinary(FilePath); in findBinaries() 462 (void)DebugBinaries.try_emplace(IDString, std::move(FilePath)); in findBinaries() 465 (void)Binaries.try_emplace(IDString, std::move(FilePath)); in findBinaries()
|
| H A D | HTTPServer.cpp | 37 bool llvm::streamFile(HTTPServerRequest &Request, StringRef FilePath) { in streamFile() argument 38 Expected<sys::fs::file_t> FDOrErr = sys::fs::openNativeFileForRead(FilePath); in streamFile() 45 MemoryBuffer::getOpenFile(*FDOrErr, FilePath, in streamFile()
|
| /freebsd/contrib/llvm-project/clang/lib/Tooling/ |
| H A D | GuessTargetAndModeCompilationDatabase.cpp | 33 getCompileCommands(StringRef FilePath) const override { in getCompileCommands() 34 return addTargetAndMode(Base->getCompileCommands(FilePath)); in getCompileCommands()
|
| H A D | LocateToolCompilationDatabase.cpp | 35 getCompileCommands(StringRef FilePath) const override { in getCompileCommands() 36 return addLocation(Base->getCompileCommands(FilePath)); in getCompileCommands()
|
| H A D | ExpandResponseFilesCompilationDatabase.cpp | 42 getCompileCommands(StringRef FilePath) const override { in getCompileCommands() 43 return expand(Base->getCompileCommands(FilePath)); in getCompileCommands()
|
| /freebsd/contrib/llvm-project/clang/include/clang/Tooling/Core/ |
| H A D | Diagnostic.h | 35 std::string FilePath; member 55 std::string FilePath; member
|
| /freebsd/contrib/llvm-project/llvm/lib/InterfaceStub/ |
| H A D | ELFObjHandler.cpp | 657 static Error writeELFBinaryToFile(StringRef FilePath, const IFSStub &Stub, in writeELFBinaryToFile() argument 666 MemoryBuffer::getFile(FilePath)) { in writeELFBinaryToFile() 677 FileOutputBuffer::create(FilePath, Builder.getSize()); in writeELFBinaryToFile() 681 " when trying to open `" + FilePath + in writeELFBinaryToFile() 712 Error writeBinaryStub(StringRef FilePath, const IFSStub &Stub, in writeBinaryStub() argument 719 return writeELFBinaryToFile<ELF32LE>(FilePath, Stub, WriteIfChanged); in writeBinaryStub() 721 return writeELFBinaryToFile<ELF32BE>(FilePath, Stub, WriteIfChanged); in writeBinaryStub() 725 return writeELFBinaryToFile<ELF64LE>(FilePath, Stub, WriteIfChanged); in writeBinaryStub() 727 return writeELFBinaryToFile<ELF64BE>(FilePath, Stub, WriteIfChanged); in writeBinaryStub()
|