Home
last modified time | relevance | path

Searched refs:FilePath (Results 1 – 25 of 81) sorted by relevance

1234

/freebsd-14.2/contrib/googletest/googletest/test/
H A Dgoogletest-filepath-test.cc243 FilePath::MakeFileName(FilePath("foo"), FilePath("bar"), 0, "xml"); in TEST()
249 FilePath::MakeFileName(FilePath("foo"), FilePath("bar"), 12, "xml"); in TEST()
254 FilePath actual = FilePath::MakeFileName(FilePath("foo" GTEST_PATH_SEP_), in TEST()
260 FilePath actual = FilePath::MakeFileName(FilePath("foo" GTEST_PATH_SEP_), in TEST()
267 FilePath::MakeFileName(FilePath(""), FilePath("bar"), 0, "xml"); in TEST()
273 FilePath::MakeFileName(FilePath(""), FilePath("bar"), 14, "xml"); in TEST()
278 FilePath actual = FilePath::ConcatPaths(FilePath("foo"), FilePath("bar.xml")); in TEST()
283 FilePath actual = FilePath::ConcatPaths(FilePath("foo" GTEST_PATH_SEP_), in TEST()
289 FilePath actual = FilePath::ConcatPaths(FilePath(""), FilePath("bar.xml")); in TEST()
294 FilePath actual = FilePath::ConcatPaths(FilePath("foo"), FilePath("")); in TEST()
[all …]
H A Dgoogletest-options-test.cc59 FilePath GetAbsolutePathOf(const FilePath& relative_path) { in GetAbsolutePathOf()
60 return FilePath::ConcatPaths(FilePath::GetCurrentDir(), relative_path); in GetAbsolutePathOf()
131 original_working_dir_ = FilePath::GetCurrentDir(); in SetUp()
135 FilePath::GetCurrentDir().string()); in SetUp()
142 FilePath original_working_dir_;
148 FilePath::ConcatPaths(original_working_dir_, FilePath("test_detail.xml")) in TEST_F()
156 FilePath::ConcatPaths(original_working_dir_, FilePath("test_detail.xml")) in TEST_F()
164 FilePath::ConcatPaths(original_working_dir_, FilePath("filename.abc")) in TEST_F()
172 FilePath::ConcatPaths( in TEST_F()
189 EXPECT_EQ(FilePath("c:\\tmp\\filename.abc").string(), in TEST_F()
[all …]
/freebsd-14.2/contrib/googletest/googletest/src/
H A Dgtest-filepath.cc101 FilePath FilePath::GetCurrentDir() { in GetCurrentDir()
130 FilePath FilePath::RemoveExtension(const char* extension) const { in RemoveExtension()
133 return FilePath( in RemoveExtension()
199 FilePath FilePath::RemoveDirectoryName() const { in RemoveDirectoryName()
210 FilePath FilePath::RemoveFileName() const { in RemoveFileName()
218 return FilePath(dir); in RemoveFileName()
227 FilePath FilePath::MakeFileName(const FilePath& directory, in MakeFileName()
242 FilePath FilePath::ConcatPaths(const FilePath& directory, in ConcatPaths()
312 FilePath FilePath::GenerateUniqueFileName(const FilePath& directory, in GenerateUniqueFileName()
315 FilePath full_pathname; in GenerateUniqueFileName()
[all …]
/freebsd-14.2/contrib/googletest/googletest/include/gtest/internal/
H A Dgtest-filepath.h69 class GTEST_API_ FilePath {
71 FilePath() : pathname_("") {} in FilePath() function
72 FilePath(const FilePath& rhs) : pathname_(rhs.pathname_) {} in FilePath() function
78 FilePath& operator=(const FilePath& rhs) {
89 static FilePath GetCurrentDir();
95 static FilePath MakeFileName(const FilePath& directory,
102 static FilePath ConcatPaths(const FilePath& directory,
113 static FilePath GenerateUniqueFileName(const FilePath& directory,
123 FilePath RemoveTrailingPathSeparator() const;
131 FilePath RemoveDirectoryName() const;
[all …]
/freebsd-14.2/contrib/llvm-project/clang/lib/Format/
H A DMatchFilePath.cpp24 bool matchFilePath(StringRef Pattern, StringRef FilePath) { in matchFilePath() argument
26 assert(!FilePath.empty()); in matchFilePath()
30 if (const auto C = Pattern.back(); !strchr("?*]", C) && C != FilePath.back()) in matchFilePath()
35 const auto End = FilePath.size(); // End of `FilePath`. in matchFilePath()
42 switch (const auto F = FilePath[J]; Pattern[I]) { in matchFilePath()
54 const auto K = FilePath.find(Separator, J); // Index of next `Separator`. in matchFilePath()
69 for (auto Pat = Pattern.substr(I); J < End && FilePath[J] != Separator; in matchFilePath()
71 if (matchFilePath(Pat, FilePath.substr(J))) in matchFilePath()
/freebsd-14.2/contrib/llvm-project/clang/lib/Tooling/Refactoring/
H A DAtomicChange.cpp41 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-14.2/contrib/llvm-project/clang/include/clang/Tooling/Refactoring/
H A DAtomicChange.h49 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-14.2/contrib/llvm-project/clang/include/clang/IndexSerialization/
H A DSerializablePathCollection.h60 struct FilePath { struct
64 FilePath(const DirPath &Dir, const StringPool::StringOffsetSize &Filename) in FilePath() argument
75 llvm::ArrayRef<FilePath> getFilePaths() const;
81 std::vector<FilePath> FilePaths;
107 ArrayRef<PathPool::FilePath> getFilePaths() const { in getFilePaths()
/freebsd-14.2/contrib/llvm-project/clang/include/clang/Tooling/
H A DReplacementsYaml.h36 : 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 DAllTUsExecution.h59 void mapVirtualFile(StringRef FilePath, StringRef Content) override { in mapVirtualFile() argument
60 OverlayFiles[FilePath] = std::string(Content); in mapVirtualFile()
H A DStandaloneExecution.h76 void mapVirtualFile(StringRef FilePath, StringRef Content) override { in mapVirtualFile() argument
77 Tool.mapVirtualFile(FilePath, Content); in mapVirtualFile()
/freebsd-14.2/contrib/llvm-project/llvm/lib/CodeGen/
H A DJMCInstrumenter.cpp89 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-14.2/contrib/llvm-project/clang/lib/Tooling/Core/
H A DDiagnostic.cpp29 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 DReplacement.cpp45 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().getOptionalFileRef(FilePath); in apply()
90 Stream << FilePath << ": " << ReplacementRange.getOffset() << ":+" in toString()
127 this->FilePath = std::string(Entry ? Entry->getName() : InvalidLocation); in setFromSourceLocation()
370 : MergeSecond(MergeSecond), Delta(D), FilePath(R.getFilePath()), in MergedReplacement()
420 Replacement asReplacement() const { return {FilePath, Offset, Length, Text}; } in asReplacement()
436 const StringRef FilePath; member in __anon4ebf7f030211::MergedReplacement
/freebsd-14.2/contrib/llvm-project/llvm/lib/Support/
H A DProcess.cpp59 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-14.2/contrib/llvm-project/clang/lib/Driver/ToolChains/
H A DCuda.cpp221 if (FS.exists(FilePath)) { in CudaInstallationDetector()
228 LibDeviceMap[GpuArchName] = FilePath; in CudaInstallationDetector()
236 StringRef FilePath = LI->path(); in CudaInstallationDetector() local
245 LibDeviceMap[GpuArch] = FilePath.str(); in CudaInstallationDetector()
250 LibDeviceMap["sm_20"] = std::string(FilePath); in CudaInstallationDetector()
251 LibDeviceMap["sm_21"] = std::string(FilePath); in CudaInstallationDetector()
252 LibDeviceMap["sm_32"] = std::string(FilePath); in CudaInstallationDetector()
254 LibDeviceMap["sm_30"] = std::string(FilePath); in CudaInstallationDetector()
260 LibDeviceMap["sm_60"] = std::string(FilePath); in CudaInstallationDetector()
261 LibDeviceMap["sm_61"] = std::string(FilePath); in CudaInstallationDetector()
[all …]
H A DNaCl.cpp213 std::string FilePath(getDriver().Dir + "/../"); in NaClToolChain() local
223 file_paths.push_back(FilePath + "x86_64-nacl/lib32"); in NaClToolChain()
224 file_paths.push_back(FilePath + "i686-nacl/usr/lib"); in NaClToolChain()
229 file_paths.push_back(FilePath + "x86_64-nacl/lib"); in NaClToolChain()
230 file_paths.push_back(FilePath + "x86_64-nacl/usr/lib"); in NaClToolChain()
235 file_paths.push_back(FilePath + "arm-nacl/lib"); in NaClToolChain()
236 file_paths.push_back(FilePath + "arm-nacl/usr/lib"); in NaClToolChain()
241 file_paths.push_back(FilePath + "mipsel-nacl/lib"); in NaClToolChain()
242 file_paths.push_back(FilePath + "mipsel-nacl/usr/lib"); in NaClToolChain()
H A DAMDGPU.cpp85 StringRef FilePath = LI->path(); in scanLibDevicePath() local
98 OCML = FilePath; in scanLibDevicePath()
100 OCKL = FilePath; in scanLibDevicePath()
102 OpenCL = FilePath; in scanLibDevicePath()
104 HIP = FilePath; in scanLibDevicePath()
106 AsanRTL = FilePath; in scanLibDevicePath()
108 FiniteOnly.Off = FilePath; in scanLibDevicePath()
110 FiniteOnly.On = FilePath; in scanLibDevicePath()
120 UnsafeMath.On = FilePath; in scanLibDevicePath()
122 UnsafeMath.Off = FilePath; in scanLibDevicePath()
[all …]
/freebsd-14.2/contrib/llvm-project/clang/lib/ExtractAPI/
H A DExtractAPIConsumer.cpp69 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()
462 StringRef FilePath = FIF.getFile(); in PrepareToExecuteAction() local
463 if (auto RelativeName = getRelativeIncludeName(CI, FilePath, &IsQuoted)) { in PrepareToExecuteAction()
479 HeaderContents += FilePath; in PrepareToExecuteAction()
481 KnownInputFiles.emplace_back(FilePath, true); in PrepareToExecuteAction()
/freebsd-14.2/stand/efi/loader/
H A Defi_main.c153 img->FilePath == NULL) ? 1 : 0; in efi_main()
156 (DevicePathType(img->FilePath) != MEDIA_DEVICE_PATH || in efi_main()
157 DevicePathSubType(img->FilePath) != MEDIA_FILEPATH_DP || in efi_main()
158 DevicePathNodeLength(img->FilePath) <= in efi_main()
/freebsd-14.2/contrib/llvm-project/clang/lib/Tooling/
H A DRefactoring.cpp78 const std::string &FilePath = FileAndReplaces.first; in formatAndApplyAllReplacements() local
81 FileEntryRef Entry = llvm::cantFail(Files.getFileRef(FilePath)); in formatAndApplyAllReplacements()
85 auto CurStyle = format::getStyle(Style, FilePath, "LLVM"); in formatAndApplyAllReplacements()
H A DGuessTargetAndModeCompilationDatabase.cpp33 getCompileCommands(StringRef FilePath) const override { in getCompileCommands()
34 return addTargetAndMode(Base->getCompileCommands(FilePath)); in getCompileCommands()
/freebsd-14.2/contrib/llvm-project/clang/lib/Basic/
H A DFileManager.cpp574 SmallString<128> FilePath(Filename); in getBufferForFileImpl() local
575 FixupRelativePath(FilePath); in getBufferForFileImpl()
576 return FS->getBufferForFile(FilePath, FileSize, RequiresNullTerminator, in getBufferForFileImpl()
594 SmallString<128> FilePath(Path); in getStatValue() local
595 FixupRelativePath(FilePath); in getStatValue()
597 return FileSystemStatCache::get(FilePath.c_str(), Status, isFile, F, in getStatValue()
604 SmallString<128> FilePath(Path); in getNoncachedStatValue() local
605 FixupRelativePath(FilePath); in getNoncachedStatValue()
607 llvm::ErrorOr<llvm::vfs::Status> S = FS->status(FilePath.c_str()); in getNoncachedStatValue()
/freebsd-14.2/contrib/llvm-project/llvm/lib/Debuginfod/
H A DDebuginfod.cpp395 static bool hasELFMagic(StringRef FilePath) { in hasELFMagic() argument
397 std::error_code EC = identify_magic(FilePath, Type); in hasELFMagic()
420 std::string FilePath; in findBinaries() local
429 FilePath = I->path(); in findBinaries()
434 if (!hasELFMagic(FilePath)) in findBinaries()
438 object::createBinary(FilePath); in findBinaries()
461 (void)DebugBinaries.try_emplace(IDString, std::move(FilePath)); in findBinaries()
464 (void)Binaries.try_emplace(IDString, std::move(FilePath)); in findBinaries()
/freebsd-14.2/contrib/llvm-project/clang/include/clang/Tooling/Core/
H A DDiagnostic.h35 std::string FilePath; member
55 std::string FilePath; member

1234