Home
last modified time | relevance | path

Searched refs:source_root (Results 1 - 25 of 25) sorted by relevance

/third_party/gn/src/gn/
H A Dsource_dir_unittest.cc16 std::string_view source_root("C:/source/root"); in TEST()
18 std::string_view source_root("/source/root"); in TEST()
23 source_root) == SourceFile()); in TEST()
29 source_root) == SourceFile()); in TEST()
34 source_root) == SourceFile()); in TEST()
40 source_root) == SourceFile("//foo")); in TEST()
44 source_root) == SourceFile("/foo")); in TEST()
49 base.ResolveRelativeFile(Value(nullptr, "foo"), &err, source_root) == in TEST()
53 base.ResolveRelativeFile(Value(nullptr, "./foo"), &err, source_root) == in TEST()
57 source_root) in TEST()
[all...]
H A Dsource_dir.cc81 std::string_view source_root) const { in ResolveRelativeAs()
85 return ResolveRelative(input_value, value_.str(), as_file, source_root); in ResolveRelativeAs()
90 std::string_view source_root) const { in ResolveRelativeFile()
100 ret.SetValue(ResolveRelative(input_string, value_.str(), true, source_root)); in ResolveRelativeFile()
107 std::string_view source_root) const { in ResolveRelativeDir()
110 input_value, err, source_root)); in ResolveRelativeDir()
117 std::string_view source_root, in ResolveRelativeAs()
126 ResolveRelativeAs(as_file, v, *v_value, err, source_root); in ResolveRelativeAs()
134 std::string_view source_root) const { in ResolveRelativeDir()
138 return ResolveRelativeDir(v, v.string_value(), err, source_root); in ResolveRelativeDir()
114 ResolveRelativeAs(bool as_file, const Value& v, Err* err, std::string_view source_root, const std::string* v_value) const ResolveRelativeAs() argument
[all...]
H A Dfilesystem_utils.cc362 bool MakeAbsolutePathRelativeIfPossible(std::string_view source_root, in MakeAbsolutePathRelativeIfPossible() argument
365 DCHECK(IsPathAbsolute(source_root)); in MakeAbsolutePathRelativeIfPossible()
371 // source_root or path. Trim them off for easier string manipulation. in MakeAbsolutePathRelativeIfPossible()
373 size_t source_root_len = AbsPathLenWithNoTrailingSlash(source_root); in MakeAbsolutePathRelativeIfPossible()
381 DCHECK(source_root.size() > 2 && source_root[0] != '/' && in MakeAbsolutePathRelativeIfPossible()
382 source_root[1] == ':' && IsSlash(source_root[2])); in MakeAbsolutePathRelativeIfPossible()
387 if (AreAbsoluteWindowsPathsEqual(source_root.substr(0, source_root_len), in MakeAbsolutePathRelativeIfPossible()
400 if (AreAbsoluteWindowsPathsEqual(source_root in MakeAbsolutePathRelativeIfPossible()
507 NormalizePath(std::string* path, std::string_view source_root) NormalizePath() argument
752 RebasePath(const std::string& input, const SourceDir& dest_dir, std::string_view source_root) RebasePath() argument
804 ResolvePath(const std::string& value, bool as_file, const base::FilePath& source_root) ResolvePath() argument
831 ResolveRelative(std::string_view input, const std::string& value, bool as_file, std::string_view source_root) ResolveRelative() argument
911 SourceDirForPath(const base::FilePath& source_root, const base::FilePath& path) SourceDirForPath() argument
953 SourceDirForCurrentDirectory(const base::FilePath& source_root) SourceDirForCurrentDirectory() argument
[all...]
H A Dpath_output_unittest.cc17 std::string_view source_root("/source/root"); in TEST()
18 PathOutput writer(build_dir, source_root, ESCAPE_NONE); in TEST()
59 std::string_view source_root("/source/root"); in TEST()
60 PathOutput writer(build_dir, source_root, ESCAPE_NONE); in TEST()
77 std::string_view source_root("/source/root"); in TEST()
78 PathOutput writer(build_dir, source_root, ESCAPE_NINJA); in TEST()
95 std::string_view source_root("/source/root"); in TEST()
96 PathOutput writer(build_dir, source_root, ESCAPE_NINJA_COMMAND); in TEST()
148 std::string_view source_root("/source/root"); in TEST()
149 PathOutput writer(build_dir, source_root, ESCAPE_NINJA_COMMAN in TEST()
[all...]
H A Dfilesystem_utils.h110 // The source_root should be a base::FilePath converted to UTF-8. On Windows,
115 bool MakeAbsolutePathRelativeIfPossible(std::string_view source_root,
131 // and |source_root| is non-empty, |path| may be system absolute after this
133 // |source_root| (ex. path = "//.."). In this case on Windows, |path| will have
134 // a leading slash. Otherwise, |path| will retain its relativity. |source_root|
137 std::string_view source_root = std::string_view());
147 // If supplied, the |source_root| parameter is the absolute path to
152 std::string_view source_root = std::string_view());
164 // If source_root is supplied, these functions will additionally handle the
170 std::string_view source_root);
[all...]
H A Dsource_dir.h44 // If source_root is supplied, these functions will additionally handle the
51 std::string_view source_root = std::string_view(),
61 std::string_view source_root = std::string_view()) const;
67 std::string_view source_root = std::string_view()) const;
74 std::string_view source_root = std::string_view()) const;
81 std::string_view source_root = std::string_view()) const;
85 base::FilePath Resolve(const base::FilePath& source_root) const;
H A Dfilesystem_utils_unittest.cc427 std::string_view source_root("/source/root"); in TEST()
430 EXPECT_EQ(".", RebasePath("//", SourceDir("//"), source_root)); in TEST()
432 RebasePath("//foo/bar/", SourceDir("//foo/bar/"), source_root)); in TEST()
435 EXPECT_EQ("../foo", RebasePath("//foo", SourceDir("//bar/"), source_root)); in TEST()
436 EXPECT_EQ("../foo/", RebasePath("//foo/", SourceDir("//bar/"), source_root)); in TEST()
438 RebasePath("//foo", SourceDir("//bar/moo"), source_root)); in TEST()
440 RebasePath("//foo/", SourceDir("//bar/moo"), source_root)); in TEST()
443 EXPECT_EQ("foo/bar", RebasePath("//foo/bar", SourceDir("//"), source_root)); in TEST()
444 EXPECT_EQ("foo/bar/", RebasePath("//foo/bar/", SourceDir("//"), source_root)); in TEST()
448 RebasePath("//foo/bar", SourceDir("//a/b/"), source_root)); in TEST()
[all...]
H A Dlabel_unittest.cc111 std::string source_root("/foo/bar/baz"); in TEST()
121 result = Label::Resolve(cur_dir, source_root, default_toolchain, in TEST()
128 result = Label::Resolve(cur_dir, source_root, default_toolchain, in TEST()
138 result = Label::Resolve(cur_dir, source_root, default_toolchain, in TEST()
H A Dlabel.cc32 std::string_view source_root, in ComputeBuildLocationFromDep()
43 current_dir.ResolveRelativeDir(input_value, input, err, source_root); in ComputeBuildLocationFromDep()
91 std::string_view source_root, in Resolve()
173 if (!ComputeBuildLocationFromDep(original_value, current_dir, source_root, in Resolve()
191 return Resolve(current_dir, source_root, current_toolchain, in Resolve()
273 std::string_view source_root,
288 if (!::Resolve(current_dir, source_root, current_toolchain, input,
30 ComputeBuildLocationFromDep(const Value& input_value, const SourceDir& current_dir, std::string_view source_root, std::string_view input, SourceDir* result, Err* err) ComputeBuildLocationFromDep() argument
90 Resolve(const SourceDir& current_dir, std::string_view source_root, const Label& current_toolchain, const Value& original_value, std::string_view input, SourceDir* out_dir, StringAtom* out_name, SourceDir* out_toolchain_dir, StringAtom* out_toolchain_name, Err* err) Resolve() argument
H A Dlabel_pattern_unittest.cc93 std::string source_root = "/foo/bar/baz/"; in TEST() local
97 current_dir, source_root, Value(nullptr, "../../../*"), &err); in TEST()
H A Dvisibility.cc27 std::string_view source_root, in Set()
39 LabelPattern::GetPattern(current_dir, source_root, item, err)); in Set()
26 Set(const SourceDir& current_dir, std::string_view source_root, const Value& value, Err* err) Set() argument
H A Dvisibility_unittest.cc57 std::string source_root = "/foo/bar/baz/"; in TEST() local
65 ASSERT_TRUE(vis.Set(cur_dir, source_root, list, &err)); in TEST()
H A Dpath_output.cc14 std::string_view source_root, in PathOutput()
17 inverse_current_dir_ = RebasePath("//", current_dir, source_root); in PathOutput()
13 PathOutput(const SourceDir& current_dir, std::string_view source_root, EscapingMode escaping) PathOutput() argument
H A Dsource_file.cc182 base::FilePath SourceFile::Resolve(const base::FilePath& source_root) const { in Resolve()
183 return ResolvePath(value_.str(), true, source_root); in Resolve()
H A Dvisibility.h34 std::string_view source_root,
H A Dcompile_commands_writer_unittest.cc660 const std::string source_root("/home/me/build/"); in TEST_F()
662 SourceDir(), source_root, Value(nullptr, "//*"), &err); in TEST_F()
677 SourceDir(), source_root, Value(nullptr, "//foo/*"), &err); in TEST_F()
724 SourceDir(), source_root, Value(nullptr, "//foo:bar2"), &err); in TEST_F()
H A Dlabel_pattern.h43 std::string_view source_root,
H A Dpath_output.h37 std::string_view source_root,
H A Dlabel.h40 std::string_view source_root,
H A Dsource_file.h77 base::FilePath Resolve(const base::FilePath& source_root) const;
/third_party/icu/tools/unicode/c/genprops/misc/
H A Ducdcopy.py155 source_root = sys.argv[1]
158 for root, dirs, files in os.walk(source_root):
/third_party/node/tools/gyp/pylib/gyp/generator/
H A Dxcode.py1223 (source_root, source_extension) = posixpath.splitext(source)
/third_party/node/deps/npm/node_modules/node-gyp/gyp/pylib/gyp/generator/
H A Dxcode.py1220 (source_root, source_extension) = posixpath.splitext(source)
/third_party/node/tools/gyp/pylib/gyp/
H A Dinput.py2798 (source_root, source_extension) = os.path.splitext(source)
/third_party/node/deps/npm/node_modules/node-gyp/gyp/pylib/gyp/
H A Dinput.py2776 (source_root, source_extension) = os.path.splitext(source)

Completed in 20 milliseconds