Home
last modified time | relevance | path

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

12

/minix3/external/bsd/llvm/dist/llvm/utils/unittest/googletest/include/gtest/internal/
H A Dgtest-filepath.h59 class GTEST_API_ FilePath {
61 FilePath() : pathname_("") { } in FilePath() function
62 FilePath(const FilePath& rhs) : pathname_(rhs.pathname_) { } in FilePath() function
64 explicit FilePath(const char* pathname) : pathname_(pathname) { in FilePath() function
68 explicit FilePath(const String& pathname) : pathname_(pathname) { in FilePath() function
72 FilePath& operator=(const FilePath& rhs) {
77 void Set(const FilePath& rhs) { in Set()
85 static FilePath GetCurrentDir();
91 static FilePath MakeFileName(const FilePath& directory,
92 const FilePath& base_name,
[all …]
/minix3/external/bsd/llvm/dist/llvm/utils/unittest/googletest/src/
H A Dgtest-filepath.cc98 FilePath FilePath::GetCurrentDir() { in GetCurrentDir()
102 return FilePath(kCurrentDirectoryString); in GetCurrentDir()
105 return FilePath(_getcwd(cwd, sizeof(cwd)) == NULL ? "" : cwd); in GetCurrentDir()
108 return FilePath(getcwd(cwd, sizeof(cwd)) == NULL ? "" : cwd); in GetCurrentDir()
116 FilePath FilePath::RemoveExtension(const char* extension) const { in RemoveExtension()
119 return FilePath(String(pathname_.c_str(), pathname_.length() - 4)); in RemoveExtension()
127 const char* FilePath::FindLastPathSeparator() const { in FindLastPathSeparator()
146 FilePath FilePath::RemoveDirectoryName() const { in RemoveDirectoryName()
148 return last_sep ? FilePath(String(last_sep + 1)) : *this; in RemoveDirectoryName()
157 FilePath FilePath::RemoveFileName() const { in RemoveFileName()
[all …]
H A Dgtest.cc370 FilePath GetCurrentExecutableName() { in GetCurrentExecutableName()
371 FilePath result; in GetCurrentExecutableName()
374 result.Set(FilePath(g_executable_path).RemoveExtension("exe")); in GetCurrentExecutableName()
376 result.Set(FilePath(g_executable_path)); in GetCurrentExecutableName()
404 return String(internal::FilePath::ConcatPaths( in GetAbsolutePathToOutputFile()
405 internal::FilePath( in GetAbsolutePathToOutputFile()
407 internal::FilePath(kDefaultOutputFile)).ToString() ); in GetAbsolutePathToOutputFile()
409 internal::FilePath output_name(colon + 1); in GetAbsolutePathToOutputFile()
415 output_name = internal::FilePath::ConcatPaths( in GetAbsolutePathToOutputFile()
416 internal::FilePath(UnitTest::GetInstance()->original_working_dir()), in GetAbsolutePathToOutputFile()
[all …]
H A Dgtest-internal-inl.h405 GTEST_API_ FilePath GetCurrentExecutableName();
643 original_working_dir_.Set(FilePath::GetCurrentDir()); in AddTestInfo()
798 internal::FilePath original_working_dir_;
/minix3/external/bsd/llvm/dist/clang/include/clang/Tooling/
H A DReplacementsYaml.h36 : FilePath(""), Offset(0), Length(0), ReplacementText("") {} in LLVM_YAML_IS_SEQUENCE_VECTOR()
39 : FilePath(R.getFilePath()), Offset(R.getOffset()), in LLVM_YAML_IS_SEQUENCE_VECTOR()
43 return clang::tooling::Replacement(FilePath, Offset, Length, in LLVM_YAML_IS_SEQUENCE_VECTOR()
47 std::string FilePath; in LLVM_YAML_IS_SEQUENCE_VECTOR()
56 Io.mapRequired("FilePath", Keys->FilePath); in LLVM_YAML_IS_SEQUENCE_VECTOR()
H A DJSONCompilationDatabase.h57 loadFromFile(StringRef FilePath, std::string &ErrorMessage);
71 getCompileCommands(StringRef FilePath) const override;
H A DCompilationDatabase.h114 StringRef FilePath) const = 0;
194 getCompileCommands(StringRef FilePath) const override;
H A DTooling.h219 void mapVirtualFile(StringRef FilePath, StringRef Content);
271 void mapVirtualFile(StringRef FilePath, StringRef Content);
/minix3/external/bsd/llvm/dist/llvm/lib/Support/
H A DFileOutputBuffer.cpp39 FileOutputBuffer::create(StringRef FilePath, size_t Size, in create() argument
44 std::error_code EC = sys::fs::status(FilePath, Stat); in create()
63 EC = sys::fs::remove(FilePath); in create()
75 EC = sys::fs::createUniqueFile(Twine(FilePath) + ".tmp%%%%%%%", FD, in create()
93 new FileOutputBuffer(std::move(MappedFile), FilePath, TempFilePath)); in create()
H A DProcess.cpp63 SmallString<128> FilePath(Dir); in FindInEnvPath() local
64 path::append(FilePath, FileName); in FindInEnvPath()
65 if (fs::exists(Twine(FilePath))) { in FindInEnvPath()
66 FoundPath = FilePath.str(); in FindInEnvPath()
H A DMemoryBuffer.cpp175 MemoryBuffer::getFileSlice(const Twine &FilePath, uint64_t MapSize, in getFileSlice() argument
177 return getFileAux(FilePath, -1, MapSize, Offset, false, false); in getFileSlice()
/minix3/external/bsd/llvm/dist/clang/lib/Tooling/Core/
H A DReplacement.cpp32 : FilePath(InvalidLocation) {} in Replacement()
34 Replacement::Replacement(StringRef FilePath, unsigned Offset, unsigned Length, in Replacement() argument
36 : FilePath(FilePath), ReplacementRange(Offset, Length), in Replacement()
51 return FilePath != InvalidLocation; in isApplicable()
56 const FileEntry *Entry = SM.getFileManager().getFile(FilePath); in apply()
82 stream << FilePath << ": " << ReplacementRange.getOffset() << ":+" in toString()
113 llvm::SmallString<256> FilePath(Entry->getName()); in setFromSourceLocation() local
114 std::error_code EC = llvm::sys::fs::make_absolute(FilePath); in setFromSourceLocation()
115 this->FilePath = EC ? FilePath.c_str() : Entry->getName(); in setFromSourceLocation()
117 this->FilePath = InvalidLocation; in setFromSourceLocation()
/minix3/external/bsd/llvm/dist/clang/lib/Basic/
H A DFileManager.cpp431 SmallString<128> FilePath(Entry->getName()); in getBufferForFile() local
432 FixupRelativePath(FilePath); in getBufferForFile()
433 return FS->getBufferForFile(FilePath.str(), FileSize, in getBufferForFile()
442 SmallString<128> FilePath(Filename); in getBufferForFile() local
443 FixupRelativePath(FilePath); in getBufferForFile()
444 return FS->getBufferForFile(FilePath.c_str()); in getBufferForFile()
459 SmallString<128> FilePath(Path); in getStatValue() local
460 FixupRelativePath(FilePath); in getStatValue()
462 return FileSystemStatCache::get(FilePath.c_str(), Data, isFile, F, in getStatValue()
468 SmallString<128> FilePath(Path); in getNoncachedStatValue() local
[all …]
/minix3/external/bsd/llvm/dist/clang/include/clang/Tooling/Core/
H A DReplacement.h80 Replacement(StringRef FilePath, unsigned Offset,
104 StringRef getFilePath() const { return FilePath; } in getFilePath()
123 std::string FilePath; variable
/minix3/external/bsd/llvm/dist/llvm/lib/ExecutionEngine/RuntimeDyld/
H A DRuntimeDyldCheckerImpl.h63 void registerSection(StringRef FilePath, unsigned SectionID);
64 void registerStubMap(StringRef FilePath, unsigned SectionID,
/minix3/external/bsd/llvm/dist/clang/lib/Tooling/
H A DJSONCompilationDatabase.cpp145 JSONCompilationDatabase::loadFromFile(StringRef FilePath, in loadFromFile() argument
148 llvm::MemoryBuffer::getFile(FilePath); in loadFromFile()
173 JSONCompilationDatabase::getCompileCommands(StringRef FilePath) const { in getCompileCommands()
175 llvm::sys::path::native(FilePath, NativeFilePath); in getCompileCommands()
H A DCommonOptionsParser.cpp68 getCompileCommands(StringRef FilePath) const override { in getCompileCommands()
69 return adjustCommands(Compilations->getCompileCommands(FilePath)); in getCompileCommands()
H A DTooling.cpp197 void ToolInvocation::mapVirtualFile(StringRef FilePath, StringRef Content) { in mapVirtualFile() argument
199 llvm::sys::path::native(FilePath, PathStorage); in mapVirtualFile()
288 void ClangTool::mapVirtualFile(StringRef FilePath, StringRef Content) { in mapVirtualFile() argument
289 MappedFileContents.push_back(std::make_pair(FilePath, Content)); in mapVirtualFile()
H A DCompilationDatabase.cpp311 FixedCompilationDatabase::getCompileCommands(StringRef FilePath) const { in getCompileCommands()
313 Result[0].CommandLine.push_back(FilePath); in getCompileCommands()
/minix3/external/bsd/llvm/dist/clang/lib/Driver/
H A DMSVCToolChain.cpp312 SmallString<128> FilePath(PathSegment); in getVisualStudioBinariesFolder() local
313 llvm::sys::path::append(FilePath, "cl.exe"); in getVisualStudioBinariesFolder()
314 if (llvm::sys::fs::can_execute(FilePath.c_str()) && in getVisualStudioBinariesFolder()
315 !llvm::sys::fs::equivalent(FilePath.c_str(), clangProgramPath)) { in getVisualStudioBinariesFolder()
/minix3/external/bsd/llvm/dist/llvm/include/llvm/Support/
H A DFileOutputBuffer.h40 static std::error_code create(StringRef FilePath, size_t Size,
/minix3/external/bsd/llvm/dist/clang/unittests/AST/
H A DEvaluateAsRValueTest.cpp62 llvm::StringRef FilePath) override { in CreateASTConsumer() argument
/minix3/external/bsd/llvm/dist/llvm/lib/DebugInfo/
H A DDWARFDebugLine.cpp661 SmallString<16> FilePath; in getFileNameByIndex() local
674 sys::path::append(FilePath, CompDir); in getFileNameByIndex()
677 sys::path::append(FilePath, IncludeDir, FileName); in getFileNameByIndex()
678 Result = FilePath.str(); in getFileNameByIndex()
/minix3/external/bsd/llvm/dist/clang/lib/Lex/
H A DPPLexerChange.cpp237 StringRef FilePath = File->getDir()->getName(); in computeRelativePath() local
238 StringRef Path = FilePath; in computeRelativePath()
242 Result = FilePath.substr(Path.size()); in computeRelativePath()
/minix3/external/bsd/llvm/dist/llvm/lib/Support/Unix/
H A DProgram.inc78 SmallString<128> FilePath(Path);
79 sys::path::append(FilePath, Name);
80 if (sys::fs::can_execute(FilePath.c_str()))
81 return std::string(FilePath.str()); // Found the executable!

12