| /freebsd-12.1/contrib/googletest/googletest/test/ |
| H A D | googletest-filepath-test.cc | 240 FilePath actual = FilePath::MakeFileName(FilePath("foo"), FilePath("bar"), in TEST() 246 FilePath actual = FilePath::MakeFileName(FilePath("foo"), FilePath("bar"), in TEST() 252 FilePath actual = FilePath::MakeFileName(FilePath("foo" GTEST_PATH_SEP_), in TEST() 264 FilePath actual = FilePath::MakeFileName(FilePath(""), FilePath("bar"), in TEST() 270 FilePath actual = FilePath::MakeFileName(FilePath(""), FilePath("bar"), in TEST() 276 FilePath actual = FilePath::ConcatPaths(FilePath("foo"), in TEST() 282 FilePath actual = FilePath::ConcatPaths(FilePath("foo" GTEST_PATH_SEP_), in TEST() 288 FilePath actual = FilePath::ConcatPaths(FilePath(""), in TEST() 294 FilePath actual = FilePath::ConcatPaths(FilePath("foo"), FilePath("")); in TEST() 299 FilePath actual = FilePath::ConcatPaths(FilePath(""), in TEST() [all …]
|
| H A D | googletest-options-test.cc | 54 FilePath GetAbsolutePathOf(const FilePath& relative_path) { in GetAbsolutePathOf() 55 return FilePath::ConcatPaths(FilePath::GetCurrentDir(), relative_path); in GetAbsolutePathOf() 124 original_working_dir_ = FilePath::GetCurrentDir(); in SetUp() 128 FilePath::GetCurrentDir().string()); in SetUp() 135 FilePath original_working_dir_; 140 EXPECT_EQ(FilePath::ConcatPaths(original_working_dir_, in TEST_F() 147 EXPECT_EQ(FilePath::ConcatPaths(original_working_dir_, in TEST_F() 154 EXPECT_EQ(FilePath::ConcatPaths(original_working_dir_, in TEST_F() 162 FilePath::ConcatPaths( in TEST_F() 178 EXPECT_EQ(FilePath("c:\\tmp\\filename.abc").string(), in TEST_F() [all …]
|
| /freebsd-12.1/contrib/googletest/googletest/src/ |
| H A D | gtest-filepath.cc | 97 FilePath FilePath::GetCurrentDir() { in GetCurrentDir() 122 FilePath FilePath::RemoveExtension(const char* extension) const { in RemoveExtension() 153 FilePath FilePath::RemoveDirectoryName() const { in RemoveDirectoryName() 164 FilePath FilePath::RemoveFileName() const { in RemoveFileName() 172 return FilePath(dir); in RemoveFileName() 181 FilePath FilePath::MakeFileName(const FilePath& directory, in MakeFileName() 197 FilePath FilePath::ConcatPaths(const FilePath& directory, in ConcatPaths() 284 FilePath FilePath::GenerateUniqueFileName(const FilePath& directory, in GenerateUniqueFileName() 287 FilePath full_pathname; in GenerateUniqueFileName() 344 FilePath FilePath::RemoveTrailingPathSeparator() const { in RemoveTrailingPathSeparator() [all …]
|
| /freebsd-12.1/contrib/googletest/googletest/include/gtest/internal/ |
| H A D | gtest-filepath.h | 62 class GTEST_API_ FilePath { 64 FilePath() : pathname_("") { } in FilePath() function 65 FilePath(const FilePath& rhs) : pathname_(rhs.pathname_) { } in FilePath() function 71 FilePath& operator=(const FilePath& rhs) { 76 void Set(const FilePath& rhs) { in Set() 84 static FilePath GetCurrentDir(); 90 static FilePath MakeFileName(const FilePath& directory, 98 static FilePath ConcatPaths(const FilePath& directory, 109 static FilePath GenerateUniqueFileName(const FilePath& directory, 127 FilePath RemoveDirectoryName() const; [all …]
|
| /freebsd-12.1/contrib/llvm/tools/clang/lib/Tooling/Refactoring/ |
| H A D | AtomicChange.cpp | 42 std::string FilePath; member 58 Io.mapRequired("FilePath", Doc.FilePath); in mapping() 73 Io.mapRequired("FilePath", Keys->FilePath); in mapping() 184 combineReplacementsInChanges(llvm::StringRef FilePath, in combineReplacementsInChanges() argument 204 FilePath = FE->getName(); in AtomicChange() 205 Key = FilePath + ":" + std::to_string(FileIDAndOffset.second); in AtomicChange() 208 AtomicChange::AtomicChange(std::string Key, std::string FilePath, in AtomicChange() argument 213 : Key(std::move(Key)), FilePath(std::move(FilePath)), in AtomicChange() 219 if (Key != Other.Key || FilePath != Other.FilePath || Error != Other.Error) in operator ==() 296 applyAtomicChanges(llvm::StringRef FilePath, llvm::StringRef Code, in applyAtomicChanges() argument [all …]
|
| /freebsd-12.1/contrib/llvm/tools/clang/include/clang/Tooling/Refactoring/ |
| H A D | AtomicChange.h | 46 AtomicChange(llvm::StringRef FilePath, llvm::StringRef Key) in AtomicChange() argument 47 : Key(Key), FilePath(FilePath) {} in AtomicChange() 68 const std::string &getFilePath() const { return FilePath; } in getFilePath() 127 AtomicChange(std::string Key, std::string FilePath, std::string Error, 134 std::string FilePath; variable 172 applyAtomicChanges(llvm::StringRef FilePath, llvm::StringRef Code,
|
| /freebsd-12.1/contrib/llvm/tools/clang/include/clang/Tooling/ |
| H A D | ReplacementsYaml.h | 35 : FilePath(""), Offset(0), Length(0), ReplacementText("") {} in LLVM_YAML_IS_SEQUENCE_VECTOR() 38 : FilePath(R.getFilePath()), Offset(R.getOffset()), in LLVM_YAML_IS_SEQUENCE_VECTOR() 42 return clang::tooling::Replacement(FilePath, Offset, Length, in LLVM_YAML_IS_SEQUENCE_VECTOR() 46 std::string FilePath; in LLVM_YAML_IS_SEQUENCE_VECTOR() 55 Io.mapRequired("FilePath", Keys->FilePath); in LLVM_YAML_IS_SEQUENCE_VECTOR()
|
| H A D | AllTUsExecution.h | 61 void mapVirtualFile(StringRef FilePath, StringRef Content) override { in mapVirtualFile() argument 62 OverlayFiles[FilePath] = Content; in mapVirtualFile()
|
| H A D | StandaloneExecution.h | 78 void mapVirtualFile(StringRef FilePath, StringRef Content) override { in mapVirtualFile() argument 79 Tool.mapVirtualFile(FilePath, Content); in mapVirtualFile()
|
| H A D | JSONCompilationDatabase.h | 69 loadFromFile(StringRef FilePath, std::string &ErrorMessage, 85 getCompileCommands(StringRef FilePath) const override;
|
| H A D | CompilationDatabase.h | 124 StringRef FilePath) const = 0; 196 getCompileCommands(StringRef FilePath) const override;
|
| H A D | DiagnosticsYaml.h | 33 Io.mapOptional("FilePath", M.FilePath); in LLVM_YAML_IS_SEQUENCE_VECTOR() 70 Io.mapRequired("FilePath", Keys->Message.FilePath); in LLVM_YAML_IS_SEQUENCE_VECTOR()
|
| /freebsd-12.1/contrib/llvm/tools/clang/lib/Driver/ToolChains/ |
| H A D | Cuda.cpp | 167 if (FS.exists(FilePath)) { in CudaInstallationDetector() 181 StringRef FilePath = LI->path(); in CudaInstallationDetector() local 195 LibDeviceMap["sm_20"] = FilePath; in CudaInstallationDetector() 196 LibDeviceMap["sm_21"] = FilePath; in CudaInstallationDetector() 197 LibDeviceMap["sm_32"] = FilePath; in CudaInstallationDetector() 199 LibDeviceMap["sm_30"] = FilePath; in CudaInstallationDetector() 205 LibDeviceMap["sm_60"] = FilePath; in CudaInstallationDetector() 206 LibDeviceMap["sm_61"] = FilePath; in CudaInstallationDetector() 207 LibDeviceMap["sm_62"] = FilePath; in CudaInstallationDetector() 209 LibDeviceMap["sm_35"] = FilePath; in CudaInstallationDetector() [all …]
|
| H A D | NaCl.cpp | 215 std::string FilePath(getDriver().Dir + "/../"); in NaClToolChain() local 225 file_paths.push_back(FilePath + "x86_64-nacl/lib32"); in NaClToolChain() 226 file_paths.push_back(FilePath + "i686-nacl/usr/lib"); in NaClToolChain() 231 file_paths.push_back(FilePath + "x86_64-nacl/lib"); in NaClToolChain() 232 file_paths.push_back(FilePath + "x86_64-nacl/usr/lib"); in NaClToolChain() 237 file_paths.push_back(FilePath + "arm-nacl/lib"); in NaClToolChain() 238 file_paths.push_back(FilePath + "arm-nacl/usr/lib"); in NaClToolChain() 243 file_paths.push_back(FilePath + "mipsel-nacl/lib"); in NaClToolChain() 244 file_paths.push_back(FilePath + "mipsel-nacl/usr/lib"); in NaClToolChain()
|
| /freebsd-12.1/contrib/llvm/tools/clang/lib/Basic/ |
| H A D | FileManager.cpp | 428 SmallString<128> FilePath(Entry->getName()); in getBufferForFile() local 429 FixupRelativePath(FilePath); in getBufferForFile() 430 return FS->getBufferForFile(FilePath, FileSize, in getBufferForFile() 439 SmallString<128> FilePath(Filename); in getBufferForFile() local 440 FixupRelativePath(FilePath); in getBufferForFile() 456 SmallString<128> FilePath(Path); in getStatValue() local 457 FixupRelativePath(FilePath); in getStatValue() 459 return FileSystemStatCache::get(FilePath.c_str(), Data, isFile, F, in getStatValue() 465 SmallString<128> FilePath(Path); in getNoncachedStatValue() local 466 FixupRelativePath(FilePath); in getNoncachedStatValue() [all …]
|
| /freebsd-12.1/contrib/llvm/lib/Support/ |
| H A D | Process.cpp | 56 SmallString<128> FilePath(Dir); in FindInEnvPath() local 57 path::append(FilePath, FileName); in FindInEnvPath() 58 if (fs::exists(Twine(FilePath))) { in FindInEnvPath() 59 FoundPath = FilePath.str(); in FindInEnvPath()
|
| /freebsd-12.1/contrib/llvm/tools/clang/lib/Frontend/ |
| H A D | PrecompiledPreamble.cpp | 544 PrecompiledPreamble::TempPCHFile::TempPCHFile(std::string FilePath) in TempPCHFile() argument 545 : FilePath(std::move(FilePath)) { in TempPCHFile() 546 TemporaryFiles::getInstance().addFile(*this->FilePath); in TempPCHFile() 550 FilePath = std::move(Other.FilePath); in TempPCHFile() 551 Other.FilePath = None; in TempPCHFile() 558 FilePath = std::move(Other.FilePath); in operator =() 559 Other.FilePath = None; in operator =() 566 if (FilePath) { in RemoveFileIfPresent() 567 TemporaryFiles::getInstance().removeFile(*FilePath); in RemoveFileIfPresent() 568 FilePath = None; in RemoveFileIfPresent() [all …]
|
| /freebsd-12.1/stand/efi/loader/ |
| H A D | efi_main.c | 146 img->FilePath == NULL) ? 1 : 0; in efi_main() 149 (DevicePathType(img->FilePath) != MEDIA_DEVICE_PATH || in efi_main() 150 DevicePathSubType(img->FilePath) != MEDIA_FILEPATH_DP || in efi_main() 151 DevicePathNodeLength(img->FilePath) <= in efi_main()
|
| /freebsd-12.1/contrib/llvm/tools/clang/lib/Tooling/Core/ |
| H A D | Replacement.cpp | 46 Replacement::Replacement() : FilePath(InvalidLocation) {} in Replacement() 48 Replacement::Replacement(StringRef FilePath, unsigned Offset, unsigned Length, in Replacement() argument 50 : FilePath(FilePath), ReplacementRange(Offset, Length), in Replacement() 66 return FilePath != InvalidLocation; in isApplicable() 71 const FileEntry *Entry = SM.getFileManager().getFile(FilePath); in apply() 91 Stream << FilePath << ": " << ReplacementRange.getOffset() << ":+" in toString() 127 this->FilePath = 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 __anonf61fa6bc0211::MergedReplacement
|
| H A D | Diagnostic.cpp | 28 FilePath = Sources.getFilename(Loc); in DiagnosticMessage() 33 if (!FilePath.empty()) in DiagnosticMessage()
|
| /freebsd-12.1/contrib/llvm/tools/clang/lib/Tooling/ |
| H A D | Refactoring.cpp | 79 const std::string &FilePath = FileAndReplaces.first; in formatAndApplyAllReplacements() local 82 const FileEntry *Entry = Files.getFile(FilePath); in formatAndApplyAllReplacements() 86 auto CurStyle = format::getStyle(Style, FilePath, "LLVM"); in formatAndApplyAllReplacements()
|
| H A D | JSONCompilationDatabase.cpp | 191 JSONCompilationDatabase::loadFromFile(StringRef FilePath, in loadFromFile() argument 195 llvm::MemoryBuffer::getFile(FilePath); in loadFromFile() 221 JSONCompilationDatabase::getCompileCommands(StringRef FilePath) const { in getCompileCommands() 223 llvm::sys::path::native(FilePath, NativeFilePath); in getCompileCommands()
|
| H A D | CompilationDatabase.cpp | 389 FixedCompilationDatabase::getCompileCommands(StringRef FilePath) const { in getCompileCommands() 391 Result[0].CommandLine.push_back(FilePath); in getCompileCommands() 392 Result[0].Filename = FilePath; in getCompileCommands()
|
| /freebsd-12.1/contrib/llvm/lib/ExecutionEngine/RuntimeDyld/ |
| H A D | RuntimeDyldCheckerImpl.h | 68 void registerSection(StringRef FilePath, unsigned SectionID); 69 void registerStubMap(StringRef FilePath, unsigned SectionID,
|
| /freebsd-12.1/contrib/llvm/tools/clang/include/clang/Tooling/Core/ |
| H A D | Replacement.h | 95 Replacement(StringRef FilePath, unsigned Offset, unsigned Length, 121 StringRef getFilePath() const { return FilePath; } in getFilePath() 141 std::string FilePath; variable
|