/freebsd-12-stable/contrib/googletest/googletest/include/gtest/internal/ |
H A D | gtest-filepath.h | 51 // 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-12-stable/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 | 54 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-12-stable/contrib/googletest/googletest/src/ |
H A D | gtest-filepath.cc | 97 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-12-stable/contrib/llvm-project/clang/include/clang/Tooling/ |
H A D | ReplacementsYaml.h | 34 : FilePath(""), Offset(0), Length(0), ReplacementText("") {} 37 : FilePath(R.getFilePath()), Offset(R.getOffset()), 47 return clang::tooling::Replacement(FilePath, Offset, Length, 51 std::string FilePath; member in struct:llvm::yaml::MappingTraits::NormalizedReplacement 60 Io.mapRequired("FilePath", Keys->FilePath);
|
H A D | AllTUsExecution.h | 58 void mapVirtualFile(StringRef FilePath, StringRef Content) override { 59 OverlayFiles[FilePath] = Content;
|
H A D | StandaloneExecution.h | 75 void mapVirtualFile(StringRef FilePath, StringRef Content) override { 76 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;
|
H A D | CompilationDatabase.h | 130 StringRef FilePath) const = 0; 200 /// and 'FilePath' as positional argument. 202 getCompileCommands(StringRef FilePath) const override;
|
/freebsd-12-stable/contrib/llvm-project/clang/include/clang/Tooling/Refactoring/ |
H A D | AtomicChange.h | 44 /// Creates an atomic change for \p FilePath with a customized key. 45 AtomicChange(llvm::StringRef FilePath, llvm::StringRef Key) argument 46 : Key(Key), FilePath(FilePath) {} 67 const std::string &getFilePath() const { return FilePath; } 126 AtomicChange(std::string Key, std::string FilePath, std::string Error, 133 std::string FilePath; member in class:clang::tooling::AtomicChange 163 /// \p FilePath, i.e. callers are responsible for ensuring all changes are for 171 applyAtomicChanges(llvm::StringRef FilePath, llvm::StringRef Code,
|
/freebsd-12-stable/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:__anon3510::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 207 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 295 applyAtomicChanges(llvm::StringRef FilePath, llvm::StringRef Code, llvm::ArrayRef<AtomicChange> Changes, const ApplyChangesSpec &Spec) argument [all...] |
/freebsd-12-stable/contrib/llvm-project/llvm/lib/Support/ |
H A D | Process.cpp | 56 SmallString<128> FilePath(Dir); 57 path::append(FilePath, FileName); 58 if (fs::exists(Twine(FilePath))) { 59 FoundPath = FilePath.str();
|
/freebsd-12-stable/contrib/llvm-project/llvm/include/llvm/Support/ |
H A D | FileOutputBuffer.h | 45 /// When F_modify is specified and \p FilePath refers to an existing on-disk 48 /// \p Size. It is an error to specify F_modify and Size=-1 if \p FilePath 51 create(StringRef FilePath, size_t Size, unsigned Flags = 0);
|
/freebsd-12-stable/contrib/llvm-project/clang/lib/Tooling/Core/ |
H A D | Diagnostic.cpp | 28 FilePath = Sources.getFilename(Loc); 33 if (!FilePath.empty())
|
H A D | Replacement.cpp | 45 Replacement::Replacement() : FilePath(InvalidLocation) {} 47 Replacement::Replacement(StringRef FilePath, unsigned Offset, unsigned Length, argument 49 : FilePath(FilePath), ReplacementRange(Offset, Length), 65 return FilePath != InvalidLocation; 70 auto Entry = SM.getFileManager().getFile(FilePath); 90 Stream << FilePath << ": " << ReplacementRange.getOffset() << ":+" 126 this->FilePath = 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:__anon3496::MergedReplacement [all...] |
/freebsd-12-stable/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 82 if (auto File = Files.getFile(FilePath)) 88 auto CurStyle = format::getStyle(Style, FilePath, "LLVM");
|
H A D | ExpandResponseFilesCompilationDatabase.cpp | 40 getCompileCommands(StringRef FilePath) const override { 41 return expand(Base->getCompileCommands(FilePath));
|
H A D | CommonOptionsParser.cpp | 61 StringRef FilePath) const { 62 return adjustCommands(Compilations->getCompileCommands(FilePath));
|
/freebsd-12-stable/stand/efi/loader/ |
H A D | efi_main.c | 148 img->FilePath == NULL) ? 1 : 0; 151 (DevicePathType(img->FilePath) != MEDIA_DEVICE_PATH || 152 DevicePathSubType(img->FilePath) != MEDIA_FILEPATH_DP || 153 DevicePathNodeLength(img->FilePath) <=
|
/freebsd-12-stable/contrib/llvm-project/clang/lib/Driver/ToolChains/ |
H A D | Cuda.cpp | 159 std::string FilePath = LibDevicePath + "/libdevice.10.bc"; local 160 if (FS.exists(FilePath)) { 167 LibDeviceMap[GpuArchName] = FilePath; 174 StringRef FilePath = LI->path(); local 175 StringRef FileName = llvm::sys::path::filename(FilePath); 183 LibDeviceMap[GpuArch] = FilePath.str(); 188 LibDeviceMap["sm_20"] = FilePath; 189 LibDeviceMap["sm_21"] = FilePath; 190 LibDeviceMap["sm_32"] = FilePath; 192 LibDeviceMap["sm_30"] = FilePath; [all...] |
H A D | NaCl.cpp | 214 std::string FilePath(getDriver().Dir + "/../"); 224 file_paths.push_back(FilePath + "x86_64-nacl/lib32"); 225 file_paths.push_back(FilePath + "i686-nacl/usr/lib"); 230 file_paths.push_back(FilePath + "x86_64-nacl/lib"); 231 file_paths.push_back(FilePath + "x86_64-nacl/usr/lib"); 236 file_paths.push_back(FilePath + "arm-nacl/lib"); 237 file_paths.push_back(FilePath + "arm-nacl/usr/lib"); 242 file_paths.push_back(FilePath + "mipsel-nacl/lib"); 243 file_paths.push_back(FilePath + "mipsel-nacl/usr/lib");
|
/freebsd-12-stable/contrib/llvm-project/clang/include/clang/Tooling/Core/ |
H A D | Diagnostic.h | 43 std::string FilePath; member in struct:clang::tooling::DiagnosticMessage
|
/freebsd-12-stable/contrib/llvm-project/clang/lib/Frontend/ |
H A D | PrecompiledPreamble.cpp | 554 PrecompiledPreamble::TempPCHFile::TempPCHFile(std::string FilePath) argument 555 : FilePath(std::move(FilePath)) { 556 TemporaryFiles::getInstance().addFile(*this->FilePath); 560 FilePath = std::move(Other.FilePath); 561 Other.FilePath = None; 568 FilePath = std::move(Other.FilePath); 569 Other.FilePath [all...] |
/freebsd-12-stable/contrib/llvm-project/clang/lib/Basic/ |
H A D | FileManager.cpp | 489 SmallString<128> FilePath(Filename); 490 FixupRelativePath(FilePath); 491 return FS->getBufferForFile(FilePath, FileSize, 509 SmallString<128> FilePath(Path); 510 FixupRelativePath(FilePath); 512 return FileSystemStatCache::get(FilePath.c_str(), Status, isFile, F, 519 SmallString<128> FilePath(Path); 520 FixupRelativePath(FilePath); 522 llvm::ErrorOr<llvm::vfs::Status> S = FS->status(FilePath.c_str());
|