/llvm-project/third-party/unittest/googletest/src/ |
H A D | gtest-filepath.cc | 30 #include "gtest/internal/gtest-filepath.h" 101 FilePath FilePath::GetCurrentDir() { in GetCurrentDir() 109 return FilePath(kCurrentDirectoryString); in GetCurrentDir() 112 return FilePath(_getcwd(cwd, sizeof(cwd)) == nullptr ? "" : cwd); in GetCurrentDir() 120 return FilePath(result == nullptr ? kCurrentDirectoryString : cwd); in GetCurrentDir() 122 return FilePath(result == nullptr ? "" : cwd); in GetCurrentDir() 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 …]
|
/llvm-project/third-party/unittest/googletest/include/gtest/internal/ |
H A D | gtest-filepath.h | 30 // Google Test filepath utilities 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 { 71 FilePath() : pathname_("") {} in FilePath() function 72 FilePath(const FilePath& rhs) : pathname_(rhs.pathname_) {} in FilePath() function 74 explicit FilePath(const std::string& pathname) : pathname_(pathname) { in FilePath() function 78 FilePath& operator=(const FilePath& rhs) { 83 void Set(const FilePath& rhs) { pathname_ = rhs.pathname_; } in Set() 89 static FilePath GetCurrentDir(); [all …]
|
/llvm-project/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 53 makeMessage(Message, FileOffset, FilePath, Fix, Ranges), {}, in makeDiagnostic() 64 " FilePath: 'path/to/source.cpp'\n" 67 " - FilePath [all...] |
/llvm-project/clang-tools-extra/clangd/refactor/tweaks/ |
H A D | ScopifyEnum.cpp | 65 llvm::Expected<StringRef> getContentForFile(StringRef FilePath); 68 llvm::Error addReplacement(StringRef FilePath, StringRef Content, 114 static const auto MakeReplacement = [](StringRef FilePath, in addClassKeywordToDeclarations() 116 return tooling::Replacement(FilePath, Offset, 0, "class "); in addClassKeywordToDeclarations() 149 const auto MakeReplacement = [&EnumName](StringRef FilePath, in scopifyEnumValue() 155 return tooling::Replacement(FilePath, Offset, Length, {}); in scopifyEnumValue() 163 const auto MakeReplacement = [&](StringRef FilePath, StringRef Content, in scopifyEnumValue() argument 189 return tooling::Replacement(FilePath, Offset, in scopifyEnumValue() 191 return tooling::Replacement(FilePath, Offset + EnumName.size(), in scopifyEnumValue() 195 : tooling::Replacement(FilePath, Offset, 0, in scopifyEnumValue() [all …]
|
/llvm-project/clang/lib/Tooling/Refactoring/ |
H A D | AtomicChange.cpp | 30 : Key(E.getKey()), FilePath(E.getFilePath()), Error(E.getError()), in NormalizedAtomicChange() 41 std::string FilePath; member 57 Io.mapRequired("FilePath", Doc.FilePath); in mapping() 72 Io.mapRequired("FilePath", Keys->FilePath); in mapping() 144 createReplacementsForHeaders(llvm::StringRef FilePath, llvm::StringRef Code, in createReplacementsForHeaders() argument 160 tooling::Replacement(FilePath, UINT_MAX, 0, ReplacementText)); in createReplacementsForHeaders() 168 HeaderReplacements.add(Replacement(FilePath, UINT_MAX, 1, Header)); in createReplacementsForHeaders() 181 // file path in all replacements and replaces them with \p FilePath 183 combineReplacementsInChanges(llvm::StringRef FilePath,llvm::ArrayRef<AtomicChange> Changes) combineReplacementsInChanges() 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) AtomicChange() argument 301 applyAtomicChanges(llvm::StringRef FilePath,llvm::StringRef Code,llvm::ArrayRef<AtomicChange> Changes,const ApplyChangesSpec & Spec) applyAtomicChanges() argument [all...] |
/llvm-project/clang/test/Driver/ |
H A D | arch-specific-libdir.c | 6 // RUN: | FileCheck --check-prefixes=FILEPATH,ARCHDIR-i386 %s 10 // RUN: | FileCheck --check-prefixes=FILEPATH,NO-ARCHDIR %s 14 // RUN: | FileCheck --check-prefixes=FILEPATH,ARCHDIR-i386 %s 18 // RUN: | FileCheck --check-prefixes=FILEPATH,NO-ARCHDIR %s 22 // RUN: | FileCheck --check-prefixes=FILEPATH,ARCHDIR-x86_64 %s 26 // RUN: | FileCheck --check-prefixes=FILEPATH,NO-ARCHDIR %s 30 // RUN: | FileCheck --check-prefixes=FILEPATH,ARCHDIR-arm %s 34 // RUN: | FileCheck --check-prefixes=FILEPATH,NO-ARCHDIR %s 38 // RUN: | FileCheck --check-prefixes=FILEPATH,ARCHDIR-aarch64 %s 42 // RUN: | FileCheck --check-prefixes=FILEPATH,NO-ARCHDIR %s [all …]
|
/llvm-project/clang/lib/Format/ |
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) { in matchFilePath() argument 26 assert(!FilePath.empty()); in matchFilePath() 28 const auto FilePathBack = FilePath.back(); in matchFilePath() 31 // character of `FilePath`. in matchFilePath() 37 const auto End = FilePath.size(); // End of `FilePath`. in matchFilePath() 44 switch (const auto F = FilePath[J]; Pattern[I]) { in matchFilePath() 61 const auto K = FilePath.find(Separator, J); // Index of next `Separator`. in matchFilePath() 76 J = K; // Skip to next `Separator` in `FilePath` in matchFilePath() [all...] |
/llvm-project/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/clang-tools-extra/test/clang-tidy/infrastructure/ |
H A D | export-diagnostics.cpp | 33 // CHECK-YAML-NEXT: FilePath: '{{.*}}-input.cpp' 38 // CHECK-YAML-NEXT: FilePath: '{{.*}}-input.cpp' 42 // CHECK-YAML-NEXT: FilePath: '' 46 // CHECK-YAML-NEXT: FilePath: '{{.*}}-input.cpp' 49 // CHECK-YAML-NEXT: - FilePath: '{{.*}}-input.cpp' 54 // CHECK-YAML-NEXT: FilePath: '{{.*}}-input.cpp' 62 // CHECK-YAML-NEXT: FilePath: '{{.*}}-input.cpp' 66 // CHECK-YAML-NEXT: - FilePath: '{{.*}}-input.cpp' 74 // CHECK-YAML-NEXT: FilePath: '{{.*}}-input.cpp' 78 // CHECK-YAML-NEXT: - FilePath: '{{.*}}-input.cpp' [all …]
|
/llvm-project/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.ends_with(".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 <()
|
/llvm-project/clang-tools-extra/modularize/ |
H A D | ModuleAssistant.cpp | 174 std::string FilePath; in addModuleDescription() 181 FilePath = std::string(NativePath.substr(NativePrefix.size() + 1)); in addModuleDescription() 183 FilePath = std::string(HeaderFilePath); in addModuleDescription() 188 llvm::errs() << "warning: " << FilePath in addModuleDescription() 195 std::replace(FilePath.begin(), FilePath.end(), '\\', '/'); in addModuleDescription() 197 for (llvm::sys::path::const_iterator I = llvm::sys::path::begin(FilePath), in addModuleDescription() 198 E = llvm::sys::path::end(FilePath); in addModuleDescription() 213 CurrentModule->HeaderFileNames.push_back(FilePath); in addModuleDescription() 258 llvm::SmallString<256> FilePath; in writeModuleMap() 172 std::string FilePath; addModuleDescription() local 256 llvm::SmallString<256> FilePath; writeModuleMap() local [all...] |
/llvm-project/llvm/cmake/platforms/ |
H A D | iOS.cmake | 44 SET(CMAKE_AR ${CMAKE_AR_val} CACHE FILEPATH "Archiver") 53 SET(CMAKE_RANLIB ${CMAKE_RANLIB_val} CACHE FILEPATH "Ranlib") 62 SET(CMAKE_STRIP ${CMAKE_STRIP_val} CACHE FILEPATH "Strip") 71 SET(CMAKE_DSYMUTIL ${CMAKE_DSYMUTIL_val} CACHE FILEPATH "Dsymutil") 80 SET(CMAKE_LIBTOOL ${CMAKE_LIBTOOL_val} CACHE FILEPATH "Libtool") 89 SET(CMAKE_CODESIGN ${CMAKE_CODESIGN_val} CACHE FILEPATH "Codesign") 100 FILEPATH "Codesign_Allocate")
|
/llvm-project/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/llvm/utils/filecheck_lint/ |
H A D | filecheck_lint.py | 124 filepath: the path to the file in which the typo was found 130 filepath: pathlib.Path 137 filepath: pathlib.Path, 142 self.filepath = filepath 148 return f"{self.filepath}:" + self.filerange.as_str() + f": {self.summary()}" 205 filepath: pathlib.Path, 212 filepath: the path to the file to check for typos in directives 272 yield Diagnostic(filepath, filerange, potential_directive, best_match) 280 for filepath in argv[1:]: 281 logging.info("Checking %s", filepath) [all …]
|
/llvm-project/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/clang-tools-extra/test/clang-apply-replacements/Inputs/yml-basic/ |
H A D | file1.yml | 7 FilePath: $(path)/basic.h 10 - FilePath: $(path)/basic.h 14 - FilePath: $(path)/basic.h 18 - FilePath: $(path)/basic.h 22 - FilePath: $(path)/../yml-basic/basic.h
|
/llvm-project/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/clang-tools-extra/clang-doc/assets/ |
H A D | index.js | 12 computeRelativePath(FilePath, CurrentDirectory) global() argument
|
/llvm-project/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/clang-tools-extra/clang-tidy/misc/ |
H A D | HeaderIncludeCycleCheck.cpp | 70 std::optional<llvm::StringRef> FilePath = SM.getNonBuiltinFilenameForID(Id); in FileChanged() local 72 FilePath ? llvm::sys::path::filename(*FilePath) : llvm::StringRef(); in FileChanged() 83 void InclusionDirective(SourceLocation, const Token &, StringRef FilePath, in InclusionDirective() argument 91 llvm::StringRef FileName = llvm::sys::path::filename(FilePath); in InclusionDirective() 119 const std::optional<StringRef> FilePath = SM.getNonBuiltinFilenameForID(Id); in checkForDoubleInclude() local 120 if (!FilePath || isFileIgnored(*FilePath)) in checkForDoubleInclude()
|
/llvm-project/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/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) 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 177 /// \p FilePath, i.e. callers are responsible for ensuring all changes are for 185 applyAtomicChanges(llvm::StringRef FilePath, llvm::StringRef Code,
|
/llvm-project/compiler-rt/test/dfsan/ |
H A D | stack_trace.c | 30 // CHECK: #0 {{.*}} in main [[FILEPATH:.*]]/stack_trace.c:[[# @LINE - 5 ]] in main() 37 // CHECK: #0 {{.*}} in bar.dfsan [[FILEPATH]]/stack_trace.c:13 in main() 38 // CHECK-COUNT-8: #{{[1-9]+}} {{.*}} in bar.dfsan [[FILEPATH]]/stack_trace.c:16 in main() 39 // CHECK: #9 {{.*}} in baz.dfsan [[FILEPATH]]/stack_trace.c:20 in main() 40 // CHECK: #10 {{.*}} in main [[FILEPATH]]/stack_trace.c:[[# @LINE - 7 ]] in main()
|