/freebsd-current/contrib/googletest/googletest/include/gtest/internal/ |
H A D | gtest-filepath.h | 58 // FilePath - a class for file and directory pathname manipulation which 63 // A FilePath with a value ending in a path separator ("like/this/") represents 69 class GTEST_API_ FilePath { class in namespace:testing::internal 71 FilePath() : pathname_("") {} function in class:testing::internal::FilePath 72 FilePath(const FilePath& rhs) : pathname_(rhs.pathname_) {} function in class:testing::internal::FilePath 74 explicit FilePath(const std::string& pathname) : pathname_(pathname) { function in class:testing::internal::FilePath 78 FilePath& operator=(const FilePath& rhs) { 83 void Set(const FilePath [all...] |
/freebsd-current/contrib/googletest/googletest/test/ |
H A D | googletest-filepath-test.cc | 65 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 D | googletest-options-test.cc | 59 FilePath GetAbsolutePathOf(const FilePath& relative_path) { 60 return FilePath::ConcatPaths(FilePath::GetCurrentDir(), relative_path); 77 EXPECT_EQ(GetAbsolutePathOf(FilePath("test_detail.xml")).string(), 83 EXPECT_EQ(GetAbsolutePathOf(FilePath("filename.abc")).string(), 90 GetAbsolutePathOf(FilePath(std::string("path") + GTEST_PATH_SEP_ + 131 original_working_dir_ = FilePath::GetCurrentDir(); 135 FilePath::GetCurrentDir().string()); 142 FilePath original_working_dir [all...] |
/freebsd-current/contrib/googletest/googletest/src/ |
H A D | gtest-filepath.cc | 101 FilePath FilePath::GetCurrentDir() { 109 return FilePath(kCurrentDirectoryString); 112 return FilePath(_getcwd(cwd, sizeof(cwd)) == nullptr ? "" : cwd); 120 return FilePath(result == nullptr ? kCurrentDirectoryString : cwd); 122 return FilePath(result == nullptr ? "" : cwd); 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-current/contrib/llvm-project/clang/lib/Format/ |
H A D | MatchFilePath.h | 17 bool matchFilePath(llvm::StringRef Pattern, llvm::StringRef FilePath);
|
H A D | MatchFilePath.cpp | 22 // Check whether `FilePath` matches `Pattern` based on POSIX 2.13.1, 2.13.2, and 24 bool matchFilePath(StringRef Pattern, StringRef FilePath) { argument 26 assert(!FilePath.empty()); 29 // character of `FilePath`. 30 if (const auto C = Pattern.back(); !strchr("?*]", C) && C != FilePath.back()) 35 const auto End = FilePath.size(); // End of `FilePath`. 42 switch (const auto F = FilePath[J]; Pattern[I]) { 54 const auto K = FilePath.find(Separator, J); // Index of next `Separator`. 65 J = K; // Skip to next `Separator` in `FilePath` [all...] |
/freebsd-current/contrib/llvm-project/clang/include/clang/Tooling/ |
H A D | ReplacementsYaml.h | 36 : FilePath(R.getFilePath()), Offset(R.getOffset()), 40 return clang::tooling::Replacement(FilePath, Offset, Length, 44 std::string FilePath; member in struct:llvm::yaml::MappingTraits::NormalizedReplacement 53 Io.mapRequired("FilePath", Keys->FilePath);
|
H A D | AllTUsExecution.h | 59 void mapVirtualFile(StringRef FilePath, StringRef Content) override { 60 OverlayFiles[FilePath] = std::string(Content);
|
H A D | StandaloneExecution.h | 76 void mapVirtualFile(StringRef FilePath, StringRef Content) override { 77 Tool.mapVirtualFile(FilePath, Content);
|
H A D | JSONCompilationDatabase.h | 68 loadFromFile(StringRef FilePath, std::string &ErrorMessage, 81 /// FIXME: Currently FilePath must be an absolute path inside the 84 getCompileCommands(StringRef FilePath) const override;
|
/freebsd-current/contrib/llvm-project/llvm/include/llvm/InterfaceStub/ |
H A D | ELFObjHandler.h | 33 /// @param FilePath File path for writing the ELF binary. 37 Error writeBinaryStub(StringRef FilePath, const IFSStub &Stub,
|
/freebsd-current/contrib/llvm-project/clang/include/clang/Tooling/Refactoring/ |
H A D | AtomicChange.h | 48 /// 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; } 134 AtomicChange(std::string Key, std::string FilePath, std::string Error, 141 std::string FilePath; member in class:clang::tooling::AtomicChange 177 /// \p FilePath, i.e. callers are responsible for ensuring all changes are for 185 applyAtomicChanges(llvm::StringRef FilePath, llvm::StringRef Code,
|
/freebsd-current/contrib/llvm-project/clang/lib/Tooling/Refactoring/ |
H A D | AtomicChange.cpp | 30 : Key(E.getKey()), FilePath(E.getFilePath()), Error(E.getError()), 41 std::string FilePath; member in struct:__anon1059::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-current/contrib/llvm-project/clang/lib/Tooling/Core/ |
H A D | Diagnostic.cpp | 29 FilePath = std::string(Sources.getFilename(Loc)); 34 if (!FilePath.empty()) 41 FilePath = std::string(Sources.getFilename(Range.getBegin())); 42 if (!FilePath.empty()) {
|
/freebsd-current/contrib/llvm-project/llvm/lib/Support/ |
H A D | Process.cpp | 59 SmallString<128> FilePath(Dir); 60 path::append(FilePath, FileName); 61 if (fs::exists(Twine(FilePath))) { 62 FoundPath = std::string(FilePath);
|
/freebsd-current/contrib/llvm-project/clang/include/clang/IndexSerialization/ |
H A D | SerializablePathCollection.h | 60 struct FilePath { struct in class:clang::index::PathPool 64 FilePath(const DirPath &Dir, const StringPool::StringOffsetSize &Filename) function in struct:clang::index::PathPool::FilePath 75 llvm::ArrayRef<FilePath> getFilePaths() const; 81 std::vector<FilePath> FilePaths; 107 ArrayRef<PathPool::FilePath> getFilePaths() const {
|
/freebsd-current/contrib/llvm-project/llvm/include/llvm/Support/ |
H A D | FileOutputBuffer.h | 43 /// 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-current/contrib/llvm-project/clang/lib/Tooling/ |
H A D | GuessTargetAndModeCompilationDatabase.cpp | 33 getCompileCommands(StringRef FilePath) const override { 34 return addTargetAndMode(Base->getCompileCommands(FilePath));
|
H A D | Refactoring.cpp | 78 const std::string &FilePath = FileAndReplaces.first; local 81 FileEntryRef Entry = llvm::cantFail(Files.getFileRef(FilePath)); 85 auto CurStyle = format::getStyle(Style, FilePath, "LLVM");
|
H A D | ExpandResponseFilesCompilationDatabase.cpp | 42 getCompileCommands(StringRef FilePath) const override { 43 return expand(Base->getCompileCommands(FilePath));
|
/freebsd-current/contrib/llvm-project/clang/include/clang/Tooling/Core/ |
H A D | Diagnostic.h | 35 std::string FilePath; member in struct:clang::tooling::FileByteRange 55 std::string FilePath; member in struct:clang::tooling::DiagnosticMessage
|
/freebsd-current/contrib/llvm-project/llvm/lib/CodeGen/ |
H A D | JMCInstrumenter.cpp | 89 SmallString<256> FilePath(SP.getDirectory()); 90 sys::path::append(FilePath, PathStyle, SP.getFilename()); 91 sys::path::native(FilePath, PathStyle); 92 sys::path::remove_dots(FilePath, /*remove_dot_dot=*/true, PathStyle); 101 for (auto C : sys::path::filename(FilePath, PathStyle)) 104 sys::path::remove_filename(FilePath, PathStyle); 106 utohexstr(djbHash(FilePath), /*LowerCase=*/false,
|
/freebsd-current/stand/efi/loader/ |
H A D | efi_main.c | 153 img->FilePath == NULL) ? 1 : 0; 156 (DevicePathType(img->FilePath) != MEDIA_DEVICE_PATH || 157 DevicePathSubType(img->FilePath) != MEDIA_FILEPATH_DP || 158 DevicePathNodeLength(img->FilePath) <=
|
/freebsd-current/contrib/llvm-project/clang/lib/Driver/ToolChains/ |
H A D | Cuda.cpp | 220 std::string FilePath = LibDevicePath + "/libdevice.10.bc"; local 221 if (FS.exists(FilePath)) { 228 LibDeviceMap[GpuArchName] = FilePath; 236 StringRef FilePath = LI->path(); local 237 StringRef FileName = llvm::sys::path::filename(FilePath); 245 LibDeviceMap[GpuArch] = FilePath.str(); 250 LibDeviceMap["sm_20"] = std::string(FilePath); 251 LibDeviceMap["sm_21"] = std::string(FilePath); 252 LibDeviceMap["sm_32"] = std::string(FilePath); 254 LibDeviceMap["sm_30"] = std::string(FilePath); [all...] |
H A D | NaCl.cpp | 213 std::string FilePath(getDriver().Dir + "/../"); 223 file_paths.push_back(FilePath + "x86_64-nacl/lib32"); 224 file_paths.push_back(FilePath + "i686-nacl/usr/lib"); 229 file_paths.push_back(FilePath + "x86_64-nacl/lib"); 230 file_paths.push_back(FilePath + "x86_64-nacl/usr/lib"); 235 file_paths.push_back(FilePath + "arm-nacl/lib"); 236 file_paths.push_back(FilePath + "arm-nacl/usr/lib"); 241 file_paths.push_back(FilePath + "mipsel-nacl/lib"); 242 file_paths.push_back(FilePath + "mipsel-nacl/usr/lib");
|