Searched refs:FilePath (Results 1 - 25 of 59) sorted by relevance

123

/freebsd-13-stable/contrib/googletest/googletest/include/gtest/internal/
H A Dgtest-filepath.h51 // FilePath - a class for file and directory pathname manipulation which
56 // A FilePath with a value ending in a path separator ("like/this/") represents
62 class GTEST_API_ FilePath { class in namespace:testing::internal
64 FilePath() : pathname_("") { } function in class:testing::internal::FilePath
65 FilePath(const FilePath& rhs) : pathname_(rhs.pathname_) { } function in class:testing::internal::FilePath
67 explicit FilePath(const std::string& pathname) : pathname_(pathname) { function in class:testing::internal::FilePath
71 FilePath& operator=(const FilePath& rhs) {
76 void Set(const FilePath
[all...]
/freebsd-13-stable/contrib/googletest/googletest/test/
H A Dgoogletest-filepath-test.cc65 FilePath filepath(path);
76 const FilePath original_dir = FilePath::GetCurrentDir();
80 const FilePath cwd = FilePath::GetCurrentDir();
100 EXPECT_TRUE(FilePath("").IsEmpty());
104 EXPECT_FALSE(FilePath("a").IsEmpty());
105 EXPECT_FALSE(FilePath(".").IsEmpty());
106 EXPECT_FALSE(FilePath("a/b").IsEmpty());
107 EXPECT_FALSE(FilePath("
[all...]
H A Dgoogletest-options-test.cc54 FilePath GetAbsolutePathOf(const FilePath& relative_path) {
55 return FilePath::ConcatPaths(FilePath::GetCurrentDir(), relative_path);
72 EXPECT_EQ(GetAbsolutePathOf(FilePath("test_detail.xml")).string(),
78 EXPECT_EQ(GetAbsolutePathOf(FilePath("filename.abc")).string(),
86 FilePath(std::string("path") + GTEST_PATH_SEP_ +
124 original_working_dir_ = FilePath::GetCurrentDir();
128 FilePath::GetCurrentDir().string());
135 FilePath original_working_dir
[all...]
/freebsd-13-stable/contrib/googletest/googletest/src/
H A Dgtest-filepath.cc97 FilePath FilePath::GetCurrentDir() {
101 return FilePath(kCurrentDirectoryString);
104 return FilePath(_getcwd(cwd, sizeof(cwd)) == NULL ? "" : cwd);
112 return FilePath(result == NULL ? kCurrentDirectoryString : cwd);
114 return FilePath(result == NULL ? "" : cwd);
118 // Returns a copy of the FilePath with the case-insensitive extension removed.
119 // Example: FilePath("dir/file.exe").RemoveExtension("EXE") returns
120 // FilePath("dir/file"). If a case-insensitive extension is not
121 // found, returns a copy of the original FilePath
[all...]
/freebsd-13-stable/contrib/llvm-project/clang/include/clang/Tooling/
H A DReplacementsYaml.h34 : FilePath(""), Offset(0), Length(0), ReplacementText("") {}
37 : FilePath(R.getFilePath()), Offset(R.getOffset()),
41 return clang::tooling::Replacement(FilePath, Offset, Length,
45 std::string FilePath; member in struct:llvm::yaml::MappingTraits::NormalizedReplacement
54 Io.mapRequired("FilePath", Keys->FilePath);
H A DAllTUsExecution.h58 void mapVirtualFile(StringRef FilePath, StringRef Content) override {
59 OverlayFiles[FilePath] = std::string(Content);
H A DStandaloneExecution.h75 void mapVirtualFile(StringRef FilePath, StringRef Content) override {
76 Tool.mapVirtualFile(FilePath, Content);
H A DJSONCompilationDatabase.h68 loadFromFile(StringRef FilePath, std::string &ErrorMessage,
81 /// FIXME: Currently FilePath must be an absolute path inside the
84 getCompileCommands(StringRef FilePath) const override;
H A DCompilationDatabase.h130 StringRef FilePath) const = 0;
200 /// and 'FilePath' as positional argument.
202 getCompileCommands(StringRef FilePath) const override;
/freebsd-13-stable/contrib/llvm-project/clang/include/clang/Tooling/Refactoring/
H A DAtomicChange.h48 /// Creates an atomic change for \p FilePath with a customized key.
49 AtomicChange(llvm::StringRef FilePath, llvm::StringRef Key) argument
50 : Key(Key), FilePath(FilePath) {}
71 const std::string &getFilePath() const { return FilePath; }
132 AtomicChange(std::string Key, std::string FilePath, std::string Error,
139 std::string FilePath; member in class:clang::tooling::AtomicChange
175 /// \p FilePath, i.e. callers are responsible for ensuring all changes are for
183 applyAtomicChanges(llvm::StringRef FilePath, llvm::StringRef Code,
/freebsd-13-stable/contrib/llvm-project/clang/lib/Tooling/Refactoring/
H A DAtomicChange.cpp30 : Key(E.getKey()), FilePath(E.getFilePath()), Error(E.getError()),
41 std::string FilePath; member in struct:__anon2400::NormalizedAtomicChange
57 Io.mapRequired("FilePath", Doc.FilePath);
72 Io.mapRequired("FilePath", Keys->FilePath);
144 createReplacementsForHeaders(llvm::StringRef FilePath, llvm::StringRef Code, argument
160 tooling::Replacement(FilePath, UINT_MAX, 0, ReplacementText));
168 HeaderReplacements.add(Replacement(FilePath, UINT_MAX, 1, Header));
181 // file path in all replacements and replaces them with \p FilePath
183 combineReplacementsInChanges(llvm::StringRef FilePath, llvm::ArrayRef<AtomicChange> Changes) 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) argument
301 applyAtomicChanges(llvm::StringRef FilePath, llvm::StringRef Code, llvm::ArrayRef<AtomicChange> Changes, const ApplyChangesSpec &Spec) argument
[all...]
/freebsd-13-stable/contrib/llvm-project/clang/lib/Tooling/Core/
H A DDiagnostic.cpp29 FilePath = std::string(Sources.getFilename(Loc));
34 if (!FilePath.empty())
41 FilePath = std::string(Sources.getFilename(Range.getBegin()));
42 if (!FilePath.empty()) {
H A DReplacement.cpp45 Replacement::Replacement() : FilePath(InvalidLocation) {}
47 Replacement::Replacement(StringRef FilePath, unsigned Offset, unsigned Length, argument
49 : FilePath(std::string(FilePath)), ReplacementRange(Offset, Length),
65 return FilePath != InvalidLocation;
70 auto Entry = SM.getFileManager().getFile(FilePath);
90 Stream << FilePath << ": " << ReplacementRange.getOffset() << ":+"
126 this->FilePath = std::string(Entry ? Entry->getName() : InvalidLocation);
369 : MergeSecond(MergeSecond), Delta(D), FilePath(R.getFilePath()),
419 Replacement asReplacement() const { return {FilePath, Offse
435 const StringRef FilePath; member in class:__anon2386::MergedReplacement
[all...]
/freebsd-13-stable/contrib/llvm-project/llvm/lib/Support/
H A DProcess.cpp56 SmallString<128> FilePath(Dir);
57 path::append(FilePath, FileName);
58 if (fs::exists(Twine(FilePath))) {
59 FoundPath = std::string(FilePath.str());
/freebsd-13-stable/contrib/llvm-project/llvm/include/llvm/Support/
H A DFileOutputBuffer.h43 /// When F_modify is specified and \p FilePath refers to an existing on-disk
46 /// \p Size. It is an error to specify F_modify and Size=-1 if \p FilePath
49 create(StringRef FilePath, size_t Size, unsigned Flags = 0);
/freebsd-13-stable/contrib/llvm-project/clang/lib/Tooling/
H A DGuessTargetAndModeCompilationDatabase.cpp33 getCompileCommands(StringRef FilePath) const override {
34 return addTargetAndMode(Base->getCompileCommands(FilePath));
H A DRefactoring.cpp78 const std::string &FilePath = FileAndReplaces.first; local
82 if (auto File = Files.getFile(FilePath))
88 auto CurStyle = format::getStyle(Style, FilePath, "LLVM");
H A DExpandResponseFilesCompilationDatabase.cpp41 getCompileCommands(StringRef FilePath) const override {
42 return expand(Base->getCompileCommands(FilePath));
/freebsd-13-stable/contrib/llvm-project/clang/include/clang/Tooling/Core/
H A DDiagnostic.h43 std::string FilePath; member in struct:clang::tooling::DiagnosticMessage
56 std::string FilePath; member in struct:clang::tooling::FileByteRange
/freebsd-13-stable/contrib/llvm-project/clang/lib/Driver/ToolChains/
H A DAMDGPU.cpp33 StringRef FilePath = LI->path(); local
34 StringRef FileName = llvm::sys::path::filename(FilePath);
45 OCML = FilePath;
47 OCKL = FilePath;
49 OpenCL = FilePath;
51 HIP = FilePath;
53 FiniteOnly.Off = FilePath;
55 FiniteOnly.On = FilePath;
57 DenormalsAreZero.On = FilePath;
59 DenormalsAreZero.Off = FilePath;
[all...]
H A DCuda.cpp234 std::string FilePath = LibDevicePath + "/libdevice.10.bc"; local
235 if (FS.exists(FilePath)) {
242 LibDeviceMap[GpuArchName] = FilePath;
250 StringRef FilePath = LI->path(); local
251 StringRef FileName = llvm::sys::path::filename(FilePath);
259 LibDeviceMap[GpuArch] = FilePath.str();
264 LibDeviceMap["sm_20"] = std::string(FilePath);
265 LibDeviceMap["sm_21"] = std::string(FilePath);
266 LibDeviceMap["sm_32"] = std::string(FilePath);
268 LibDeviceMap["sm_30"] = std::string(FilePath);
[all...]
H A DNaCl.cpp215 std::string FilePath(getDriver().Dir + "/../");
225 file_paths.push_back(FilePath + "x86_64-nacl/lib32");
226 file_paths.push_back(FilePath + "i686-nacl/usr/lib");
231 file_paths.push_back(FilePath + "x86_64-nacl/lib");
232 file_paths.push_back(FilePath + "x86_64-nacl/usr/lib");
237 file_paths.push_back(FilePath + "arm-nacl/lib");
238 file_paths.push_back(FilePath + "arm-nacl/usr/lib");
243 file_paths.push_back(FilePath + "mipsel-nacl/lib");
244 file_paths.push_back(FilePath + "mipsel-nacl/usr/lib");
/freebsd-13-stable/stand/efi/loader/
H A Defi_main.c148 img->FilePath == NULL) ? 1 : 0;
151 (DevicePathType(img->FilePath) != MEDIA_DEVICE_PATH ||
152 DevicePathSubType(img->FilePath) != MEDIA_FILEPATH_DP ||
153 DevicePathNodeLength(img->FilePath) <=
/freebsd-13-stable/contrib/llvm-project/clang/lib/Frontend/
H A DPrecompiledPreamble.cpp653 PrecompiledPreamble::TempPCHFile::TempPCHFile(std::string FilePath) argument
654 : FilePath(std::move(FilePath)) {
655 TemporaryFiles::getInstance().addFile(*this->FilePath);
659 FilePath = std::move(Other.FilePath);
660 Other.FilePath = None;
667 FilePath = std::move(Other.FilePath);
668 Other.FilePath
[all...]
/freebsd-13-stable/contrib/llvm-project/clang/lib/Basic/
H A DFileManager.cpp491 SmallString<128> FilePath(Filename);
492 FixupRelativePath(FilePath);
493 return FS->getBufferForFile(FilePath, FileSize, RequiresNullTerminator,
511 SmallString<128> FilePath(Path);
512 FixupRelativePath(FilePath);
514 return FileSystemStatCache::get(FilePath.c_str(), Status, isFile, F,
521 SmallString<128> FilePath(Path);
522 FixupRelativePath(FilePath);
524 llvm::ErrorOr<llvm::vfs::Status> S = FS->status(FilePath.c_str());

Completed in 118 milliseconds

123