Home
last modified time | relevance | path

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

1234

/freebsd-src/contrib/googletest/googletest/test/
H A Dgoogletest-filepath-test.cc65 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 Dgoogletest-options-test.cc59 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 TearDown()
145 FilePath original_working_dir
[all...]
/freebsd-src/contrib/googletest/googletest/src/
H A Dgtest-filepath.cc101 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()
126 // Returns a copy of the FilePath with the case-insensitive extension removed.
127 // Example: FilePath("dir/file.exe").RemoveExtension("EXE") returns
128 // FilePath("dir/file"). If a case-insensitive extension is not
129 // found, returns a copy of the original FilePath
[all...]
/freebsd-src/contrib/googletest/googletest/include/gtest/internal/
H A Dgtest-filepath.h59 // FilePath - a class for file and directory pathname manipulation which
64 // A FilePath with a value ending in a path separator ("like/this/") represents
70 class GTEST_API_ FilePath {
72 FilePath() : pathname_("") {} in FilePath() function
73 FilePath(const FilePath& rhs) : pathname_(rhs.pathname_) {}
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()
80 FilePath
71 FilePath() : pathname_("") {} FilePath() function
[all...]
/freebsd-src/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-src/contrib/llvm-project/clang/lib/Tooling/Refactoring/
H A DAtomicChange.cpp30 : 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()
181 // file path in all replacements and replaces them with \p FilePath
183 combineReplacementsInChanges(llvm::StringRef FilePath,llvm::ArrayRef<AtomicChange> Changes) combineReplacementsInChanges() argument
213 AtomicChange(std::string Key,std::string FilePath,std::string Error,std::vector<std::string> InsertedHeaders,std::vector<std::string> RemovedHeaders,clang::tooling::Replacements Replaces) AtomicChange() argument
301 applyAtomicChanges(llvm::StringRef FilePath,llvm::StringRef Code,llvm::ArrayRef<AtomicChange> Changes,const ApplyChangesSpec & Spec) applyAtomicChanges() argument
[all...]
/freebsd-src/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-src/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-src/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-src/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-src/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 __anon7beab59f0211::MergedReplacement
/freebsd-src/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-src/contrib/llvm-project/clang/lib/Driver/ToolChains/
H A DCuda.cpp224 std::string FilePath = LibDevicePath + "/libdevice.10.bc"; in CudaInstallationDetector()
225 if (FS.exists(FilePath)) { in CudaInstallationDetector()
232 LibDeviceMap[OffloadArchName] = FilePath; in CudaInstallationDetector()
240 StringRef FilePath = LI->path(); in CudaInstallationDetector()
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()
220 std::string FilePath = LibDevicePath + "/libdevice.10.bc"; CudaInstallationDetector() local
236 StringRef FilePath = LI->path(); CudaInstallationDetector() local
[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.cpp86 StringRef FilePath = LI->path(); in scanLibDevicePath()
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()
85 StringRef FilePath = LI->path(); scanLibDevicePath() local
[all...]
/freebsd-src/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()
481 StringRef FilePath = FIF.getFile(); in PrepareToExecuteAction()
482 if (auto RelativeName = getRelativeIncludeName(CI, FilePath, &IsQuoted)) { in PrepareToExecuteAction()
498 HeaderContents += FilePath;
500 KnownInputFiles.emplace_back(FilePath, tru in EndSourceFileAction()
462 StringRef FilePath = FIF.getFile(); PrepareToExecuteAction() local
[all...]
/freebsd-src/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-src/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-src/contrib/llvm-project/clang/lib/Basic/
H A DFileManager.cpp572 SmallString<128> FilePath(Filename); in getBufferForFileImpl()
573 FixupRelativePath(FilePath); in getBufferForFileImpl()
574 return FS->getBufferForFile(FilePath, FileSize, RequiresNullTerminator, in getBufferForFileImpl() local
592 SmallString<128> FilePath(Path); in getStatValue()
593 FixupRelativePath(FilePath); in getStatValue()
595 return FileSystemStatCache::get(FilePath.c_str(), Status, isFile, F, in getStatValue()
602 SmallString<128> FilePath(Path); in getNoncachedStatValue()
603 FixupRelativePath(FilePath); in getNoncachedStatValue()
605 llvm::ErrorOr<llvm::vfs::Status> S = FS->status(FilePath.c_str()); in getNoncachedStatValue()
594 SmallString<128> FilePath(Path); getStatValue() local
604 SmallString<128> FilePath(Path); getNoncachedStatValue() local
/freebsd-src/contrib/llvm-project/llvm/lib/Debuginfod/
H A DDebuginfod.cpp396 static bool hasELFMagic(StringRef FilePath) { in hasELFMagic()
398 std::error_code EC = identify_magic(FilePath, Type); in hasELFMagic()
421 std::string FilePath; in findBinaries()
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()
395 hasELFMagic(StringRef FilePath) hasELFMagic() argument
420 std::string FilePath; findBinaries() local
/freebsd-src/contrib/llvm-project/clang/include/clang/Tooling/Core/
H A DDiagnostic.h35 std::string FilePath; member
55 std::string FilePath; member

1234