Home
last modified time | relevance | path

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

1234

/freebsd/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 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/include/gtest/internal/
H A Dgtest-filepath.h70 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/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()
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/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()
183 combineReplacementsInChanges(llvm::StringRef FilePath, in combineReplacementsInChanges() argument
189 FilePath, R.getOffset(), R.getLength(), R.getReplacementText()))) in combineReplacementsInChanges()
202 FilePath = std::string(FE->getName()); in AtomicChange()
[all …]
/freebsd/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()
28 const auto FilePathBack = FilePath.back(); in matchFilePath()
37 const auto End = FilePath.size(); // End of `FilePath`. in matchFilePath()
44 switch (const auto F = FilePath[J]; Pattern[I]) { in matchFilePath()
61 const auto K = FilePath.find(Separator, J); // Index of next `Separator`. in matchFilePath()
84 J < End && (Globstar || FilePath[J] != Separator); ++J) { in matchFilePath()
85 if (matchFilePath(Pat, FilePath.substr(J))) in matchFilePath()
/freebsd/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/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()
/freebsd/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/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()
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 __anonb289878d0211::MergedReplacement
/freebsd/contrib/llvm-project/llvm/lib/Support/
H A DProcess.cpp58 SmallString<128> FilePath(Dir); in FindInEnvPath() local
59 path::append(FilePath, FileName); in FindInEnvPath()
60 if (fs::exists(Twine(FilePath))) { in FindInEnvPath()
61 FoundPath = std::string(FilePath); in FindInEnvPath()
/freebsd/contrib/llvm-project/clang/lib/Driver/ToolChains/
H A DNaCl.cpp212 std::string FilePath(getDriver().Dir + "/../"); in NaClToolChain() local
222 file_paths.push_back(FilePath + "x86_64-nacl/lib32"); in NaClToolChain()
223 file_paths.push_back(FilePath + "i686-nacl/usr/lib"); in NaClToolChain()
228 file_paths.push_back(FilePath + "x86_64-nacl/lib"); in NaClToolChain()
229 file_paths.push_back(FilePath + "x86_64-nacl/usr/lib"); in NaClToolChain()
234 file_paths.push_back(FilePath + "arm-nacl/lib"); in NaClToolChain()
235 file_paths.push_back(FilePath + "arm-nacl/usr/lib"); in NaClToolChain()
240 file_paths.push_back(FilePath + "mipsel-nacl/lib"); in NaClToolChain()
241 file_paths.push_back(FilePath + "mipsel-nacl/usr/lib"); in NaClToolChain()
H A DCuda.cpp227 std::string FilePath = LibDevicePath + "/libdevice.10.bc"; in CudaInstallationDetector() local
228 if (FS.exists(FilePath)) { in CudaInstallationDetector()
235 LibDeviceMap[OffloadArchName] = FilePath; in CudaInstallationDetector()
243 StringRef FilePath = LI->path(); in CudaInstallationDetector() local
244 StringRef FileName = llvm::sys::path::filename(FilePath); in CudaInstallationDetector()
252 LibDeviceMap[GpuArch] = FilePath.str(); in CudaInstallationDetector()
257 LibDeviceMap["sm_20"] = std::string(FilePath); in CudaInstallationDetector()
258 LibDeviceMap["sm_21"] = std::string(FilePath); in CudaInstallationDetector()
259 LibDeviceMap["sm_32"] = std::string(FilePath); in CudaInstallationDetector()
261 LibDeviceMap["sm_30"] = std::string(FilePath); in CudaInstallationDetector()
[all …]
H A DAMDGPU.cpp43 StringRef FilePath = LI->path(); in scanLibDevicePath() local
44 StringRef FileName = llvm::sys::path::filename(FilePath); in scanLibDevicePath()
56 OCML = FilePath; in scanLibDevicePath()
58 OCKL = FilePath; in scanLibDevicePath()
60 OpenCL = FilePath; in scanLibDevicePath()
62 AsanRTL = FilePath; in scanLibDevicePath()
64 FiniteOnly.Off = FilePath; in scanLibDevicePath()
66 FiniteOnly.On = FilePath; in scanLibDevicePath()
68 DenormalsAreZero.On = FilePath; in scanLibDevicePath()
70 DenormalsAreZero.Off = FilePath; in scanLibDevicePath()
[all …]
/freebsd/contrib/llvm-project/clang/lib/ExtractAPI/
H A DExtractAPIConsumer.cpp68 SmallString<128> FilePath(File.begin(), File.end()); in getRelativeIncludeName() local
69 FS.makeAbsolute(FilePath); in getRelativeIncludeName()
70 path::remove_dots(FilePath, true); in getRelativeIncludeName()
71 FilePath = path::convert_to_slash(FilePath); in getRelativeIncludeName()
72 File = FilePath; in getRelativeIncludeName()
461 StringRef FilePath = FIF.getFile(); in PrepareToExecuteAction() local
462 if (auto RelativeName = getRelativeIncludeName(CI, FilePath, &IsQuoted)) { in PrepareToExecuteAction()
478 HeaderContents += FilePath; in PrepareToExecuteAction()
480 KnownInputFiles.emplace_back(FilePath, true); in PrepareToExecuteAction()
/freebsd/lib/libefivar/
H A Duefi-dputil.c890 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 Defi_main.c155 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/Tooling/
H A DRefactoring.cpp76 const std::string &FilePath = FileAndReplaces.first; in formatAndApplyAllReplacements() local
79 FileEntryRef Entry = llvm::cantFail(Files.getFileRef(FilePath)); in formatAndApplyAllReplacements()
83 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()
H A DLocateToolCompilationDatabase.cpp35 getCompileCommands(StringRef FilePath) const override { in getCompileCommands()
36 return addLocation(Base->getCompileCommands(FilePath)); in getCompileCommands()
/freebsd/contrib/llvm-project/clang/lib/Basic/
H A DFileManager.cpp558 SmallString<128> FilePath(Filename); in getBufferForFileImpl() local
559 FixupRelativePath(FilePath); in getBufferForFileImpl()
560 return FS->getBufferForFile(FilePath, FileSize, RequiresNullTerminator, in getBufferForFileImpl()
580 SmallString<128> FilePath(Path); in getStatValue() local
581 FixupRelativePath(FilePath); in getStatValue()
583 return FileSystemStatCache::get(FilePath.c_str(), Status, isFile, F, in getStatValue()
590 SmallString<128> FilePath(Path); in getNoncachedStatValue() local
591 FixupRelativePath(FilePath); in getNoncachedStatValue()
593 llvm::ErrorOr<llvm::vfs::Status> S = FS->status(FilePath.c_str()); in getNoncachedStatValue()
/freebsd/contrib/llvm-project/llvm/lib/Debuginfod/
H A DDebuginfod.cpp408 static bool hasELFMagic(StringRef FilePath) { in hasELFMagic() argument
410 std::error_code EC = identify_magic(FilePath, Type); in hasELFMagic()
433 std::string FilePath; in findBinaries() local
442 FilePath = I->path(); in findBinaries()
447 if (!hasELFMagic(FilePath)) in findBinaries()
451 object::createBinary(FilePath); in findBinaries()
474 (void)DebugBinaries.try_emplace(IDString, std::move(FilePath)); in findBinaries()
477 (void)Binaries.try_emplace(IDString, std::move(FilePath)); in findBinaries()
/freebsd/contrib/llvm-project/clang/include/clang/Tooling/Core/
H A DDiagnostic.h35 std::string FilePath; member
55 std::string FilePath; member

1234