| /llvm-project-15.0.7/llvm/utils/unittest/googletest/src/ |
| H A D | gtest-filepath.cc | 94 FilePath FilePath::GetCurrentDir() { in GetCurrentDir() 120 FilePath FilePath::RemoveExtension(const char* extension) const { in RemoveExtension() 151 FilePath FilePath::RemoveDirectoryName() const { in RemoveDirectoryName() 162 FilePath FilePath::RemoveFileName() const { in RemoveFileName() 170 return FilePath(dir); in RemoveFileName() 179 FilePath FilePath::MakeFileName(const FilePath& directory, in MakeFileName() 195 FilePath FilePath::ConcatPaths(const FilePath& directory, in ConcatPaths() 279 FilePath FilePath::GenerateUniqueFileName(const FilePath& directory, in GenerateUniqueFileName() 282 FilePath full_pathname; in GenerateUniqueFileName() 339 FilePath FilePath::RemoveTrailingPathSeparator() const { in RemoveTrailingPathSeparator() [all …]
|
| /llvm-project-15.0.7/llvm/utils/unittest/googletest/include/gtest/internal/ |
| H A D | gtest-filepath.h | 66 class GTEST_API_ FilePath { 68 FilePath() : pathname_("") { } in FilePath() function 69 FilePath(const FilePath& rhs) : pathname_(rhs.pathname_) { } in FilePath() function 75 FilePath& operator=(const FilePath& rhs) { 80 void Set(const FilePath& rhs) { in Set() 88 static FilePath GetCurrentDir(); 94 static FilePath MakeFileName(const FilePath& directory, 102 static FilePath ConcatPaths(const FilePath& directory, 113 static FilePath GenerateUniqueFileName(const FilePath& directory, 131 FilePath RemoveDirectoryName() const; [all …]
|
| /llvm-project-15.0.7/clang-tools-extra/clang-include-fixer/find-all-symbols/ |
| H A D | PathConfig.cpp | 19 llvm::StringRef FilePath; in getIncludePath() local 24 FilePath = SM.getFilename(Loc); in getIncludePath() 25 if (FilePath.empty()) in getIncludePath() 27 if (!FilePath.endswith(".inc")) in getIncludePath() 34 FilePath = Collector->getMappedHeader(FilePath); in getIncludePath() 35 SmallString<256> CleanedFilePath = FilePath; in getIncludePath()
|
| H A D | SymbolInfo.cpp | 30 io.mapRequired("FilePath", Symbol.Symbol.FilePath); in mapping() 72 llvm::StringRef FilePath, in SymbolInfo() argument 74 : Name(Name), Type(Type), FilePath(FilePath), Contexts(Contexts) {} in SymbolInfo() 77 return std::tie(Name, Type, FilePath, Contexts) == in operator ==() 78 std::tie(Symbol.Name, Symbol.Type, Symbol.FilePath, Symbol.Contexts); in operator ==() 82 return std::tie(Name, Type, FilePath, Contexts) < in operator <() 83 std::tie(Symbol.Name, Symbol.Type, Symbol.FilePath, Symbol.Contexts); in operator <()
|
| H A D | SymbolInfo.h | 74 SymbolInfo(llvm::StringRef Name, SymbolKind Type, llvm::StringRef FilePath, 77 void SetFilePath(llvm::StringRef Path) { FilePath = std::string(Path); } in SetFilePath() 89 llvm::StringRef getFilePath() const { return FilePath; } in getFilePath() 111 std::string FilePath;
|
| /llvm-project-15.0.7/clang/unittests/Tooling/ |
| H A D | DiagnosticsYamlTest.cpp | 25 const std::string &FilePath, const StringMap<Replacements> &Fix, in makeMessage() argument 30 DiagMessage.FilePath = FilePath; in makeMessage() 38 const std::string &FilePath) { in makeByteRange() argument 42 Range.FilePath = FilePath; in makeByteRange() 48 const std::string &FilePath, in makeDiagnostic() argument 180 EXPECT_EQ("path/to/source.cpp", D1.Message.FilePath); in TEST() 193 EXPECT_EQ("path/to/header.h", D2.Message.FilePath); in TEST() 201 EXPECT_EQ("path/to/source.cpp", D2.Message.Ranges[0].FilePath); in TEST() 209 EXPECT_EQ("path/to/source2.cpp", D3.Message.FilePath); in TEST() 213 EXPECT_EQ("path/to/note1.cpp", D3.Notes[0].FilePath); in TEST() [all …]
|
| /llvm-project-15.0.7/clang-tools-extra/modularize/ |
| H A D | ModuleAssistant.cpp | 172 std::string FilePath; in addModuleDescription() local 181 FilePath = std::string(HeaderFilePath); in addModuleDescription() 186 llvm::errs() << "warning: " << FilePath in addModuleDescription() 193 std::replace(FilePath.begin(), FilePath.end(), '\\', '/'); in addModuleDescription() 211 CurrentModule->HeaderFileNames.push_back(FilePath); in addModuleDescription() 256 llvm::SmallString<256> FilePath; in writeModuleMap() local 260 FilePath = HeaderPrefix; in writeModuleMap() 262 llvm::sys::path::append(FilePath, ModuleMapPath); in writeModuleMap() 263 llvm::sys::path::native(FilePath); in writeModuleMap() 265 FilePath = ModuleMapPath; in writeModuleMap() [all …]
|
| /llvm-project-15.0.7/clang/lib/Tooling/Refactoring/ |
| H A D | AtomicChange.cpp | 41 std::string FilePath; member 57 Io.mapRequired("FilePath", Doc.FilePath); in mapping() 72 Io.mapRequired("FilePath", Keys->FilePath); in mapping() 183 combineReplacementsInChanges(llvm::StringRef FilePath, in combineReplacementsInChanges() argument 203 FilePath = std::string(FE->getName()); in AtomicChange() 204 Key = FilePath + ":" + std::to_string(FileIDAndOffset.second); in AtomicChange() 213 AtomicChange::AtomicChange(std::string Key, std::string FilePath, in AtomicChange() argument 218 : Key(std::move(Key)), FilePath(std::move(FilePath)), in AtomicChange() 224 if (Key != Other.Key || FilePath != Other.FilePath || Error != Other.Error) in operator ==() 301 applyAtomicChanges(llvm::StringRef FilePath, llvm::StringRef Code, in applyAtomicChanges() argument [all …]
|
| /llvm-project-15.0.7/clang-tools-extra/test/clang-include-fixer/Inputs/ |
| H A D | fake_yaml_db.yaml | 8 FilePath: foo.h 19 FilePath: foobar.h 30 FilePath: ../include/bar.h 41 FilePath: ../include/bar.h 52 FilePath: ../include/zbar.h 59 FilePath: var.h 68 FilePath: test/clang-include-fixer/baz.h
|
| /llvm-project-15.0.7/clang-tools-extra/test/clang-apply-replacements/Inputs/basic/ |
| H A D | file1.yaml | 7 FilePath: $(path)/basic.h 10 - FilePath: $(path)/basic.h 14 - FilePath: $(path)/basic.h 18 - FilePath: $(path)/basic.h 22 - FilePath: $(path)/../basic/basic.h
|
| /llvm-project-15.0.7/clang-tools-extra/test/clang-apply-replacements/Inputs/relative-paths/ |
| H A D | file1.yaml | 8 FilePath: ../relative-path.h 11 - FilePath: ../basic.h 15 - FilePath: $(path)/basic.h 19 - FilePath: ../basic.h 23 - FilePath: ../../relative-paths/basic.h
|
| /llvm-project-15.0.7/clang-tools-extra/test/clang-apply-replacements/Inputs/format/ |
| H A D | yes.yaml | 9 FilePath: $(path)/yes.cpp 12 - FilePath: $(path)/yes.cpp 16 - FilePath: $(path)/yes.cpp 20 - FilePath: $(path)/yes.cpp 24 - FilePath: $(path)/yes.cpp
|
| /llvm-project-15.0.7/clang/include/clang/Tooling/Refactoring/ |
| H A D | AtomicChange.h | 49 AtomicChange(llvm::StringRef FilePath, llvm::StringRef Key) in AtomicChange() argument 50 : Key(Key), FilePath(FilePath) {} in AtomicChange() 71 const std::string &getFilePath() const { return FilePath; } in getFilePath() 134 AtomicChange(std::string Key, std::string FilePath, std::string Error, 141 std::string FilePath; variable 185 applyAtomicChanges(llvm::StringRef FilePath, llvm::StringRef Code,
|
| /llvm-project-15.0.7/clang-tools-extra/test/clang-apply-replacements/Inputs/conflict/ |
| H A D | file1.yaml | 7 FilePath: $(path)/common.h 10 - FilePath: $(path)/common.h 14 - FilePath: $(path)/common.h 18 - FilePath: $(path)/common.h
|
| H A D | file2.yaml | 7 FilePath: $(path)/common.h 10 - FilePath: $(path)/common.h 14 - FilePath: $(path)/common.h 18 - FilePath: $(path)/common.h
|
| /llvm-project-15.0.7/clang-tools-extra/test/clang-apply-replacements/Inputs/ignore-conflict/ |
| H A D | file1.yaml | 7 FilePath: $(path)/ignore-conflict.cpp 10 - FilePath: $(path)/ignore-conflict.cpp 17 FilePath: $(path)/ignore-conflict.cpp 20 - FilePath: $(path)/ignore-conflict.cpp
|
| /llvm-project-15.0.7/clang-tools-extra/clang-doc/assets/ |
| H A D | index.js | 12 function computeRelativePath(FilePath, CurrentDirectory) { argument 13 var Path = FilePath; 16 return FilePath.substring(Path.length + 1); 23 if (Dir == FilePath) 28 Result = append(Result, FilePath.substring(Dir.length))
|
| /llvm-project-15.0.7/clang/include/clang/IndexSerialization/ |
| H A D | SerializablePathCollection.h | 61 struct FilePath { struct 65 FilePath(const DirPath &Dir, const StringPool::StringOffsetSize &Filename) in FilePath() argument 76 llvm::ArrayRef<FilePath> getFilePaths() const; 82 std::vector<FilePath> FilePaths; 108 ArrayRef<PathPool::FilePath> getFilePaths() const { in getFilePaths()
|
| /llvm-project-15.0.7/clang/include/clang/Tooling/ |
| H A D | ReplacementsYaml.h | 36 : FilePath(R.getFilePath()), Offset(R.getOffset()), in LLVM_YAML_IS_SEQUENCE_VECTOR() 40 return clang::tooling::Replacement(FilePath, Offset, Length, in LLVM_YAML_IS_SEQUENCE_VECTOR() 44 std::string FilePath; in LLVM_YAML_IS_SEQUENCE_VECTOR() 53 Io.mapRequired("FilePath", Keys->FilePath); in LLVM_YAML_IS_SEQUENCE_VECTOR()
|
| /llvm-project-15.0.7/clang-tools-extra/test/clang-apply-replacements/Inputs/identical-in-TU/ |
| H A D | file1.yaml | 7 FilePath: $(path)/identical_in_TU.cpp 10 - FilePath: $(path)/identical_in_TU.cpp 14 - FilePath: $(path)/identical_in_TU.cpp
|
| H A D | file2.yaml | 7 FilePath: $(path)/identical-in-TU.cpp 10 - FilePath: $(path)/identical-in-TU.cpp 14 - FilePath: $(path)/identical-in-TU.cpp
|
| /llvm-project-15.0.7/clang/lib/Driver/ToolChains/ |
| H A D | Cuda.cpp | 219 if (FS.exists(FilePath)) { in CudaInstallationDetector() 226 LibDeviceMap[GpuArchName] = FilePath; in CudaInstallationDetector() 234 StringRef FilePath = LI->path(); in CudaInstallationDetector() local 243 LibDeviceMap[GpuArch] = FilePath.str(); in CudaInstallationDetector() 248 LibDeviceMap["sm_20"] = std::string(FilePath); in CudaInstallationDetector() 249 LibDeviceMap["sm_21"] = std::string(FilePath); in CudaInstallationDetector() 250 LibDeviceMap["sm_32"] = std::string(FilePath); in CudaInstallationDetector() 252 LibDeviceMap["sm_30"] = std::string(FilePath); in CudaInstallationDetector() 258 LibDeviceMap["sm_60"] = std::string(FilePath); in CudaInstallationDetector() 259 LibDeviceMap["sm_61"] = std::string(FilePath); in CudaInstallationDetector() [all …]
|
| /llvm-project-15.0.7/llvm/lib/CodeGen/ |
| H A D | JMCInstrumenter.cpp | 82 SmallString<256> FilePath(SP.getDirectory()); in getFlagName() local 83 sys::path::append(FilePath, PathStyle, SP.getFilename()); in getFlagName() 84 sys::path::native(FilePath, PathStyle); in getFlagName() 85 sys::path::remove_dots(FilePath, /*remove_dot_dot=*/true, PathStyle); in getFlagName() 94 for (auto C : sys::path::filename(FilePath, PathStyle)) in getFlagName() 97 sys::path::remove_filename(FilePath, PathStyle); in getFlagName() 99 utohexstr(djbHash(FilePath), /*LowerCase=*/false, in getFlagName()
|
| /llvm-project-15.0.7/clang/lib/Tooling/Core/ |
| H A D | Diagnostic.cpp | 29 FilePath = std::string(Sources.getFilename(Loc)); in DiagnosticMessage() 34 if (!FilePath.empty()) in DiagnosticMessage() 41 FilePath = std::string(Sources.getFilename(Range.getBegin())); in FileByteRange() 42 if (!FilePath.empty()) { in FileByteRange()
|
| /llvm-project-15.0.7/llvm/lib/Support/ |
| H A D | Process.cpp | 59 SmallString<128> FilePath(Dir); in FindInEnvPath() local 60 path::append(FilePath, FileName); in FindInEnvPath() 61 if (fs::exists(Twine(FilePath))) { in FindInEnvPath() 62 FoundPath = std::string(FilePath.str()); in FindInEnvPath()
|