/llvm-project/lldb/test/API/functionalities/load_using_paths/ |
H A D | TestLoadUsingPaths.py | 40 """Test that we can load a module by providing a set of search paths.""" 50 self, "Break here to do the load using paths", lldb.SBFileSpec("main.cpp") 54 paths = lldb.SBStringList() 55 paths.AppendString(self.wd) 56 paths.AppendString(os.path.join(self.wd, "no_such_dir")) 61 token = process.LoadImageUsingPaths(lib_spec, paths, out_spec, error) 73 # Now add the correct dir to the paths list and try again: 74 paths.AppendString(self.hidden_dir) 75 token = process.LoadImageUsingPaths(lib_spec, paths, out_spec, error) 109 paths.Clear() [all …]
|
/llvm-project/clang-tools-extra/test/clang-apply-replacements/ |
H A D | relative-paths.cpp | 1 // RUN: mkdir -p %T/Inputs/relative-paths 2 // RUN: mkdir -p %T/Inputs/relative-paths/subdir 3 // RUN: grep -Ev "// *[A-Z-]+:" %S/Inputs/relative-paths/basic.h > %T/Inputs/relative-paths/basic.h 4 …RUN: sed "s#\$(path)#%/T/Inputs/relative-paths#" %S/Inputs/relative-paths/file1.yaml > %T/Inputs/r… 5 …RUN: sed "s#\$(path)#%/T/Inputs/relative-paths#" %S/Inputs/relative-paths/file2.yaml > %T/Inputs/r… 6 // RUN: clang-apply-replacements %T/Inputs/relative-paths 7 // RUN: FileCheck -input-file=%T/Inputs/relative-paths/basic.h %S/Inputs/relative-paths/basic.h
|
/llvm-project/clang/test/Modules/ |
H A D | header-search-paths-mismatch.c | 13 // By default, mismatched header search paths are ignored, old PCM file gets reused. 22 // RUN: %clang_cc1 -module-file-info %t/cache1/Mod.pcm | FileCheck %s --check-prefix=HS-PATHS 23 // HS-PATHS: Header search paths: 24 // HS-PATHS-NEXT: User entries: 25 // HS-PATHS-NEXT: one 27 // When skipping serialization of header search paths, mismatches cannot be detected, old PCM file … 30 // RUN: -fsyntax-only %t/tu.c -fmodules-skip-header-search-paths -I %t/one 32 // RUN: -fsyntax-only %t/tu.c -fmodules-skip-header-search-paths -I %t/two -Rmodule-build 2>&1 \ 35 // RUN: %clang_cc1 -module-file-info %t/cache2/Mod.pcm | FileCheck %s --check-prefix=NO-HS-PATHS 36 // NO-HS-PATHS-NOT: Header search paths:
|
/llvm-project/llvm/test/Object/ |
H A D | archive-thin-paths.test | 4 RUN: mkdir -p archive-thin-paths.dir 5 RUN: echo foo > archive-thin-paths.dir/foo.o 7 RUN: rm -f archive-thin-paths.a 8 RUN: llvm-ar rcsT archive-thin-paths.a archive-thin-paths.dir\foo.o 9 RUN: grep archive-thin-paths.dir/foo.o archive-thin-paths.a
|
/llvm-project/clang/include/clang/IndexSerialization/ |
H A D | SerializablePathCollection.h | 1 //===--- SerializablePathCollection.h -- Index of paths ---------*- C++ -*-===// 42 /// Pool of filesystem paths backed by a StringPool 72 /// \returns offset in Paths and size of newly added directory. 80 StringPool Paths; 84 /// Stores file paths and produces serialization-friendly representation. 89 PathPool Paths; variable 102 /// \returns buffer containing all the paths. 103 llvm::StringRef getPathsBuffer() const { return Paths.getPaths(); } in getPathsBuffer() 105 /// \returns file paths (no directories) backed by buffer exposed in 108 return Paths.getFilePaths(); in getFilePaths() [all …]
|
/llvm-project/utils/bazel/llvm-project-overlay/mlir/ |
H A D | tblgen.bzl | 6 load("@bazel_skylib//lib:paths.bzl", "paths") 9 "Holds TableGen files and the dependencies and include paths necessary to" + 15 " are the absolute directory paths that will be added with '-I'." 51 """Obtain the includes paths for a target and its transitive dependencies. 54 includes: a list of include paths 57 a collection of the transitive include paths 74 prefixed_includes.append(paths.join(ctx.genfiles_dir.path, include)) 75 prefixed_includes.append(paths.join(ctx.bin_dir.path, include)) 79 """Resolves include paths to paths relative to the execution root. 81 Relative paths are interpreted as relative to the current label's package. [all …]
|
/llvm-project/clang/lib/Driver/ToolChains/ |
H A D | Hurd.cpp | 27 /// a target-triple directory in the library and header search paths. 82 // The selection of paths to try here is designed to match the patterns which in Hurd() 86 // to the link paths. in Hurd() 87 path_list &Paths = getFilePaths(); in Hurd() local 96 Generic_GCC::AddMultilibPaths(D, SysRoot, OSLibDir, MultiarchTriple, Paths); in Hurd() 99 // of the requested system root, add its parent library paths to in Hurd() 104 addPathIfExists(D, D.Dir + "/../lib/" + MultiarchTriple, Paths); in Hurd() 105 addPathIfExists(D, D.Dir + "/../" + OSLibDir, Paths); in Hurd() 108 addPathIfExists(D, SysRoot + "/lib/" + MultiarchTriple, Paths); in Hurd() 109 addPathIfExists(D, SysRoot + "/lib/../" + OSLibDir, Paths); in Hurd() [all …]
|
/llvm-project/clang/include/clang/AST/ |
H A D | CXXInheritance.h | 72 /// calculated when recording paths. AS_none is a special value 87 /// BasePaths - Represents the set of paths from a derived class to 98 /// There are two potential BasePaths to represent paths from D to a 100 /// and another is (D,0)->(C,0)->(A,1). These two paths actually 122 /// Paths - The actual set of paths that can be taken from the 124 std::list<CXXBasePath> Paths; variable 148 /// to help build the set of paths. 152 /// ambiguous paths while it is looking for a path from a derived 156 /// RecordPaths - Whether Sema::IsDerivedFrom should record paths 157 /// while it is determining whether there are paths from a derived [all …]
|
/llvm-project/clang/lib/AST/ |
H A D | CXXInheritance.cpp | 34 /// isAmbiguous - Determines whether the set of paths provided is 35 /// ambiguous, i.e., there are two or more paths that refer to 46 Paths.clear(); in clear() 57 Paths.swap(Other.Paths); in swap() 67 CXXBasePaths Paths(/*FindAmbiguities=*/false, /*RecordPaths=*/false, in isDerivedFrom() 69 return isDerivedFrom(Base, Paths); in isDerivedFrom() 73 CXXBasePaths &Paths) const { in isDerivedFrom() 77 Paths.setOrigin(const_cast<CXXRecordDecl*>(this)); in isDerivedFrom() 85 Paths); in isDerivedFrom() 68 CXXBasePaths Paths(/*FindAmbiguities=*/false, /*RecordPaths=*/false, isDerivedFrom() local 93 CXXBasePaths Paths(/*FindAmbiguities=*/false, /*RecordPaths=*/false, isVirtuallyDerivedFrom() local 308 lookupInBases(BaseMatchesCallback BaseMatches,CXXBasePaths & Paths,bool LookupInDependent) const lookupInBases() argument 402 CXXBasePaths Paths(false, false, false); hasMemberName() local 448 CXXBasePaths Paths; lookupDependentName() local [all...] |
/llvm-project/llvm/unittests/Support/ |
H A D | Path.cpp | 124 const std::tuple<StringRef, bool, bool> Paths[] = { in TEST() 139 for (const auto &Path : Paths) { in TEST() 152 SmallVector<StringRef, 40> paths; in TEST() 153 paths.push_back(""); in TEST() 154 paths.push_back("."); in TEST() 155 paths.push_back(".."); in TEST() 156 paths.push_back("foo"); in TEST() 157 paths.push_back("/"); in TEST() 158 paths.push_back("/foo"); in TEST() 159 paths in TEST() 123 const std::tuple<StringRef, bool, bool> Paths[] = { TEST() local 151 SmallVector<StringRef, 40> paths; TEST() local 282 SmallVector<StringRef, 40> paths; TEST() local 413 SmallVector<std::pair<StringRef, path::Style>, 4> Paths; TEST() local 1301 SmallString<64> Paths[4]; TEST_F() local [all...] |
/llvm-project/lld/test/MachO/ |
H A D | syslibroot.test | 8 CHECK-NONEXISTENT-SYSLIBROOT: Library search paths: 9 CHECK-NONEXISTENT-SYSLIBROOT-NEXT: Framework search paths: 17 CHECK-SYSLIBROOT: Library search paths: 25 CHECK-ABSOLUTE-PATH-REROOTED: Library search paths: 32 CHECK-PATH-WITHOUT-REROOT: Library search paths: 40 CHECK-SYSLIBROOT-MATRIX: Library search paths: 48 CHECK-SYSLIBROOT-IGNORED: Library search paths: 57 CHECK-SYSLIBROOT-FRAMEWORK: Framework search paths: 67 CHECK-SYSLIBROOT-FRAMEWORK-MATRIX: Framework search paths: 76 CHECK-SYSLIBROOT-FRAMEWORK-IGNORED: Framework search paths:
|
/llvm-project/llvm/test/tools/llvm-ar/ |
H A D | absolute-paths.test | 1 MSVC's lib.exe produces archives with absolute paths to the members. It's useful 8 RUN: llvm-ar t %S/Inputs/absolute-paths.lib | FileCheck %s --check-prefix=CHECK-LIST 13 RUN: llvm-ar xP %S/Inputs/absolute-paths.lib 'C:/src/llvm-project/build/dne/a.o' 18 RUN: llvm-ar xP %S/Inputs/absolute-paths.lib C:/src/llvm-project/build/dne/b.o 23 archive with absolute paths. Extracting all objects doesn't need P because we 26 RUN: llvm-ar x %S/Inputs/absolute-paths.lib 31 RUN: llvm-ar x %S/Inputs/absolute-paths.lib --output=dir/
|
/llvm-project/clang/lib/IndexSerialization/ |
H A D | SerializablePathCollection.cpp | 1 //===--- SerializablePathCollection.cpp -- Index of paths -------*- C++ -*-===// 25 FilePaths.emplace_back(DirPath(Root, Dir), Paths.add(Filename)); in addFilePath() 30 return Paths.add(Dir); in addDirPath() 37 StringRef PathPool::getPaths() const { return Paths.getBuffer(); } in getPaths() 44 WorkDirPath(Paths.addDirPath(WorkDir)), in SerializablePathCollection() 45 SysRootPath(Paths.addDirPath(SysRoot)), in SerializablePathCollection() 46 OutputFilePath(Paths.addDirPath(OutputFile)) {} in SerializablePathCollection() 55 Paths.addFilePath(Dir.Root, Dir.Path, sys::path::filename(FE.getName())); in tryStoreFilePath() 88 PathPool::DirPath Result(Root, Paths.addDirPath(Dir)); in tryStoreDirPath()
|
/llvm-project/llvm/utils/ |
H A D | wciia.py | 30 # paths must be in ( ... ) so strip them 36 paths = filesfolders[lpar + 1 : rpar] 37 # split paths 38 owner["paths"] = [] 39 for path in paths.split(): 40 owner["paths"].append(path) 82 if "paths" in owner: 83 for path in owner["paths"]:
|
/llvm-project/clang/utils/analyzer/ |
H A D | SATestUtils.py | 9 def which(command: str, paths: Optional[str] = None) -> Optional[str]: 10 """which(command, [paths]) - Look up the given command in the paths string 13 if paths is None: 14 paths = os.environ.get("PATH", "") 21 if not paths: 22 paths = os.defpath 31 # Search the paths... 32 for path in paths.split(os.pathsep):
|
/llvm-project/clang-tools-extra/test/modularize/ |
H A D | ProblemsInconsistent.modularize | 16 # CHECK-NEXT: 'FUNC_STYLE(1, 0);' expanded to: '1||0' with respect to these inclusion paths: 23 # CHECK-NEXT: 'FUNC_STYLE(1, 0);' expanded to: '1&&0' with respect to these inclusion paths: 34 # CHECK-NEXT: 'SYMBOL' expanded to: '1' with respect to these inclusion paths: 41 # CHECK-NEXT: 'SYMBOL' expanded to: '2' with respect to these inclusion paths: 52 # CHECK-NEXT: 'defined(SYMBOL1)' expanded to: 'true' with respect to these inclusion paths: 59 # CHECK-NEXT: 'defined(SYMBOL1)' expanded to: 'false' with respect to these inclusion paths: 67 # CHECK-NEXT: 'SYMBOL1' expanded to: 'true' with respect to these inclusion paths: 70 # CHECK-NEXT: 'SYMBOL1' expanded to: 'false' with respect to these inclusion paths: 77 # CHECK-NEXT: 'SYMBOL2' expanded to: 'false' with respect to these inclusion paths: 80 # CHECK-NEXT: 'SYMBOL2' expanded to: 'true' with respect to these inclusion paths: [all …]
|
/llvm-project/clang/lib/Basic/ |
H A D | ProfileList.cpp | 29 create(const std::vector<std::string> &Paths, llvm::vfs::FileSystem &VFS, 33 createOrDie(const std::vector<std::string> &Paths, 47 ProfileSpecialCaseList::create(const std::vector<std::string> &Paths, in create() argument 51 if (PSCL->createInternal(Paths, VFS, Error)) in create() 57 ProfileSpecialCaseList::createOrDie(const std::vector<std::string> &Paths, in createOrDie() argument 60 if (auto PSCL = create(Paths, VFS, Error)) in createOrDie() 67 ProfileList::ProfileList(ArrayRef<std::string> Paths, SourceManager &SM) in ProfileList() argument 69 Paths, SM.getFileManager().getVirtualFileSystem())), in ProfileList()
|
/llvm-project/llvm/lib/Support/ |
H A D | FileCollector.cpp | 106 PathStorage Paths; in canonicalize() local 107 Paths.VirtualPath = SrcPath; in canonicalize() 108 makeAbsolute(Paths.VirtualPath); in canonicalize() 113 Paths.CopyFrom = Paths.VirtualPath; in canonicalize() 114 updateWithRealPath(Paths.CopyFrom); in canonicalize() 117 sys::path::remove_dots(Paths.VirtualPath, /*remove_dot_dot=*/true); in canonicalize() 119 return Paths; in canonicalize() 123 PathCanonicalizer::PathStorage Paths = Canonicalizer.canonicalize(SrcPath); in addFileImpl() local 126 sys::path::append(DstPath, sys::path::relative_path(Paths.CopyFrom)); in addFileImpl() 129 // this we map different virtual src paths to the same entry in the VFS in addFileImpl() [all …]
|
/llvm-project/llvm/include/llvm/Support/ |
H A D | Automaton.h | 17 // input symbols will produce one path through the DFA but multiple paths 56 /// The internal class that maintains all possible paths through an NFA based 79 /// The returned paths. This is populated during getPaths. 80 SmallVector<NfaPath, 4> Paths; variable 123 Paths.clear(); in reset() 140 Paths.clear(); in getPaths() 148 Paths.push_back(std::move(P)); in getPaths() 150 return Paths; in getPaths() 186 /// use of transcription, which analyzes the possible paths in the original 249 /// Obtain a set of possible paths through the input nondeterministic [all …]
|
/llvm-project/llvm/utils/lit/lit/llvm/ |
H A D | config.py | 217 # For paths, we should be able to take a list of them and process 229 paths = [norm(p) for p in current_paths] 231 paths = [] 241 paths.remove(p) 244 paths = [p] + paths 245 value = os.pathsep.join(paths) 487 # Use the specified search paths. 569 paths = [ 574 paths [all...] |
/llvm-project/clang-tools-extra/test/clang-tidy/checkers/hicpp/ |
H A D | multiway-paths-covered-else.cpp | 1 // RUN: %check_clang_tidy %s hicpp-multiway-paths-covered %t \ 3 // RUN: {hicpp-multiway-paths-covered.WarnOnMissingElse: true}}'\ 18 // Could be considered as false positive because all paths are covered logically. in problematic_if() 33 // if logically all paths are covered, which is more the area of the static analyzer. in problematic_if() 49 // Ok, because all paths are covered in problematic_if()
|
/llvm-project/mlir/test/Dialect/Transform/ |
H A D | preload-library.mlir | 2 // RUN: -transform-preload-library=transform-library-paths=%p%{fs-sep}include%{fs-sep}test-interp… 7 // RUN: -transform-preload-library=transform-library-paths=%p%{fs-sep}include%{fs-sep}test-interp… 8 // RUN: -transform-preload-library=transform-library-paths=%p%{fs-sep}include%{fs-sep}test-interp… 13 // RUN: -transform-preload-library=transform-library-paths=%p%{fs-sep}include%{fs-sep}test-interp… 14 // RUN: -transform-preload-library=transform-library-paths=%p%{fs-sep}include%{fs-sep}test-interp…
|
/llvm-project/llvm/tools/llvm-cov/ |
H A D | CoverageReport.cpp | 93 /// Adjust column widths to fit long file paths and function names. 138 /// Get the number of redundant path components in each path in \p Paths. 139 unsigned getNumRedundantPathComponents(ArrayRef<std::string> Paths) { in getNumRedundantPathComponents() argument 142 SmallVector<StringRef, 8> FirstPathComponents{sys::path::begin(Paths[0]), in getNumRedundantPathComponents() 143 sys::path::end(Paths[0])}; in getNumRedundantPathComponents() 146 for (unsigned I = 1, E = Paths.size(); NumRedundant > 0 && I < E; ++I) { in getNumRedundantPathComponents() 147 StringRef Path = Paths[I]; in getNumRedundantPathComponents() 151 // useful parts of already-visited paths. in getNumRedundantPathComponents() 167 /// Determine the length of the longest redundant prefix of the paths in 168 /// \p Paths. [all …]
|
/llvm-project/llvm/utils/mlgo-utils/mlgo/corpus/ |
H A D | make_corpus_lib.py | 24 Returns an array of paths representing the relative path to the bitcode 27 paths = [ 32 return [os.path.relpath(full_path, start=bitcode_base_dir) for full_path in paths] 41 relative_paths: An array of relative paths to bitcode files that are copied 61 relative_output_paths: A list of paths to each bitcode file relative to the
|
/llvm-project/clang/test/SemaCXX/ |
H A D | return-noreturn.cpp | 180 } // expected-warning {{non-void function does not return a value in all control paths}} in testTernaryConditionalNoreturnTrueBranch() 184 } // expected-warning {{non-void function does not return a value in all control paths}} in testTernaryConditionalNoreturnFalseBranch() 188 } // expected-warning {{non-void function does not return a value in all control paths}} in testConditionallyExecutedComplexTernaryTrueBranch() 192 } // expected-warning {{non-void function does not return a value in all control paths}} in testConditionallyExecutedComplexTernaryFalseBranch() 212 } // expected-warning {{non-void function does not return a value in all control paths}} in testConditionallyExecutedComplexLogicalBranch() 216 } // expected-warning {{non-void function does not return a value in all control paths}} in testConditionallyExecutedComplexLogicalBranch2() 253 } // expected-warning {{non-void function does not return a value in all control paths}} 258 } // expected-warning {{non-void function does not return a value in all control paths}} 264 } // ok, both paths return.
|