| /freebsd-13.1/contrib/googletest/googletest/test/ |
| H A D | googletest-filepath-test.cc | 240 FilePath actual = FilePath::MakeFileName(FilePath("foo"), FilePath("bar"), in TEST() 246 FilePath actual = FilePath::MakeFileName(FilePath("foo"), FilePath("bar"), in TEST() 252 FilePath actual = FilePath::MakeFileName(FilePath("foo" GTEST_PATH_SEP_), in TEST() 264 FilePath actual = FilePath::MakeFileName(FilePath(""), FilePath("bar"), in TEST() 270 FilePath actual = FilePath::MakeFileName(FilePath(""), FilePath("bar"), in TEST() 276 FilePath actual = FilePath::ConcatPaths(FilePath("foo"), in TEST() 282 FilePath actual = FilePath::ConcatPaths(FilePath("foo" GTEST_PATH_SEP_), in TEST() 288 FilePath actual = FilePath::ConcatPaths(FilePath(""), in TEST() 294 FilePath actual = FilePath::ConcatPaths(FilePath("foo"), FilePath("")); in TEST() 299 FilePath actual = FilePath::ConcatPaths(FilePath(""), in TEST() [all …]
|
| H A D | googletest-options-test.cc | 54 FilePath GetAbsolutePathOf(const FilePath& relative_path) { in GetAbsolutePathOf() 55 return FilePath::ConcatPaths(FilePath::GetCurrentDir(), relative_path); in GetAbsolutePathOf() 124 original_working_dir_ = FilePath::GetCurrentDir(); in SetUp() 128 FilePath::GetCurrentDir().string()); in SetUp() 135 FilePath original_working_dir_; 140 EXPECT_EQ(FilePath::ConcatPaths(original_working_dir_, in TEST_F() 147 EXPECT_EQ(FilePath::ConcatPaths(original_working_dir_, in TEST_F() 154 EXPECT_EQ(FilePath::ConcatPaths(original_working_dir_, in TEST_F() 162 FilePath::ConcatPaths( in TEST_F() 178 EXPECT_EQ(FilePath("c:\\tmp\\filename.abc").string(), in TEST_F() [all …]
|
| /freebsd-13.1/contrib/googletest/googletest/src/ |
| H A D | gtest-filepath.cc | 97 FilePath FilePath::GetCurrentDir() { in GetCurrentDir() 122 FilePath FilePath::RemoveExtension(const char* extension) const { in RemoveExtension() 153 FilePath FilePath::RemoveDirectoryName() const { in RemoveDirectoryName() 164 FilePath FilePath::RemoveFileName() const { in RemoveFileName() 172 return FilePath(dir); in RemoveFileName() 181 FilePath FilePath::MakeFileName(const FilePath& directory, in MakeFileName() 197 FilePath FilePath::ConcatPaths(const FilePath& directory, in ConcatPaths() 284 FilePath FilePath::GenerateUniqueFileName(const FilePath& directory, in GenerateUniqueFileName() 287 FilePath full_pathname; in GenerateUniqueFileName() 344 FilePath FilePath::RemoveTrailingPathSeparator() const { in RemoveTrailingPathSeparator() [all …]
|
| /freebsd-13.1/contrib/googletest/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 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, 98 static FilePath ConcatPaths(const FilePath& directory, 109 static FilePath GenerateUniqueFileName(const FilePath& directory, 127 FilePath RemoveDirectoryName() const; [all …]
|
| /freebsd-13.1/contrib/llvm-project/clang/lib/Tooling/Refactoring/ |
| H A D | AtomicChange.cpp | 41 std::string FilePath; member 57 Io.mapRequired("FilePath", Doc.FilePath); in mapping() 72 Io.mapRequired("FilePath", Keys->FilePath); in mapping() 183 combineReplacementsInChanges(llvm::StringRef FilePath, in combineReplacementsInChanges() argument 203 FilePath = std::string(FE->getName()); in AtomicChange() 204 Key = FilePath + ":" + std::to_string(FileIDAndOffset.second); in AtomicChange() 213 AtomicChange::AtomicChange(std::string Key, std::string FilePath, in AtomicChange() argument 218 : Key(std::move(Key)), FilePath(std::move(FilePath)), in AtomicChange() 224 if (Key != Other.Key || FilePath != Other.FilePath || Error != Other.Error) in operator ==() 301 applyAtomicChanges(llvm::StringRef FilePath, llvm::StringRef Code, in applyAtomicChanges() argument [all …]
|
| /freebsd-13.1/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() 132 AtomicChange(std::string Key, std::string FilePath, std::string Error, 139 std::string FilePath; variable 183 applyAtomicChanges(llvm::StringRef FilePath, llvm::StringRef Code,
|
| /freebsd-13.1/contrib/llvm-project/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()
|
| H A D | JSONCompilationDatabase.h | 68 loadFromFile(StringRef FilePath, std::string &ErrorMessage, 84 getCompileCommands(StringRef FilePath) const override;
|
| /freebsd-13.1/contrib/llvm-project/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()
|
| /freebsd-13.1/contrib/llvm-project/clang/lib/Driver/ToolChains/ |
| H A D | Cuda.cpp | 237 if (FS.exists(FilePath)) { in CudaInstallationDetector() 244 LibDeviceMap[GpuArchName] = FilePath; in CudaInstallationDetector() 252 StringRef FilePath = LI->path(); in CudaInstallationDetector() local 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() 276 LibDeviceMap["sm_60"] = std::string(FilePath); in CudaInstallationDetector() 277 LibDeviceMap["sm_61"] = std::string(FilePath); in CudaInstallationDetector() [all …]
|
| H A D | AMDGPU.cpp | 83 StringRef FilePath = LI->path(); in scanLibDevicePath() local 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() 117 UnsafeMath.On = FilePath; in scanLibDevicePath() 119 UnsafeMath.Off = 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()
|
| /freebsd-13.1/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()
|
| 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 __anonff523bc10211::MergedReplacement
|
| /freebsd-13.1/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.str()); in FindInEnvPath()
|
| /freebsd-13.1/stand/efi/loader/ |
| H A D | efi_main.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()
|
| /freebsd-13.1/contrib/llvm-project/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 …]
|
| /freebsd-13.1/contrib/llvm-project/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()
|
| H A D | ExpandResponseFilesCompilationDatabase.cpp | 41 getCompileCommands(StringRef FilePath) const override { in getCompileCommands() 42 return expand(Base->getCompileCommands(FilePath)); in getCompileCommands()
|
| /freebsd-13.1/contrib/llvm-project/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()
|
| /freebsd-13.1/contrib/llvm-project/clang/include/clang/Tooling/Core/ |
| H A D | Diagnostic.h | 35 std::string FilePath; member 55 std::string FilePath; member
|
| /freebsd-13.1/contrib/llvm-project/llvm/lib/InterfaceStub/ |
| H A D | ELFObjHandler.cpp | 598 static Error writeELFBinaryToFile(StringRef FilePath, const IFSStub &Stub, in writeELFBinaryToFile() argument 607 MemoryBuffer::getFile(FilePath)) { in writeELFBinaryToFile() 618 FileOutputBuffer::create(FilePath, Builder.getSize()); in writeELFBinaryToFile() 622 " when trying to open `" + FilePath + in writeELFBinaryToFile() 653 Error writeBinaryStub(StringRef FilePath, const IFSStub &Stub, in writeBinaryStub() argument 660 return writeELFBinaryToFile<ELF32LE>(FilePath, Stub, WriteIfChanged); in writeBinaryStub() 662 return writeELFBinaryToFile<ELF32BE>(FilePath, Stub, WriteIfChanged); in writeBinaryStub() 666 return writeELFBinaryToFile<ELF64LE>(FilePath, Stub, WriteIfChanged); in writeBinaryStub() 668 return writeELFBinaryToFile<ELF64BE>(FilePath, Stub, WriteIfChanged); in writeBinaryStub()
|