/third_party/gn/src/gn/ |
H A D | source_dir_unittest.cc | 16 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 D | source_dir.cc | 81 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 D | filesystem_utils.cc | 362 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 D | path_output_unittest.cc | 17 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 D | filesystem_utils.h | 110 // 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 D | source_dir.h | 44 // 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 D | filesystem_utils_unittest.cc | 427 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 D | label_unittest.cc | 111 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 D | label.cc | 32 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 D | label_pattern_unittest.cc | 93 std::string source_root = "/foo/bar/baz/"; in TEST() local 97 current_dir, source_root, Value(nullptr, "../../../*"), &err); in TEST()
|
H A D | visibility.cc | 27 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 D | visibility_unittest.cc | 57 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 D | path_output.cc | 14 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 D | source_file.cc | 182 base::FilePath SourceFile::Resolve(const base::FilePath& source_root) const { in Resolve() 183 return ResolvePath(value_.str(), true, source_root); in Resolve()
|
H A D | visibility.h | 34 std::string_view source_root,
|
H A D | compile_commands_writer_unittest.cc | 660 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 D | label_pattern.h | 43 std::string_view source_root,
|
H A D | path_output.h | 37 std::string_view source_root,
|
H A D | label.h | 40 std::string_view source_root,
|
H A D | source_file.h | 77 base::FilePath Resolve(const base::FilePath& source_root) const;
|
/third_party/icu/tools/unicode/c/genprops/misc/ |
H A D | ucdcopy.py | 155 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 D | xcode.py | 1223 (source_root, source_extension) = posixpath.splitext(source)
|
/third_party/node/deps/npm/node_modules/node-gyp/gyp/pylib/gyp/generator/ |
H A D | xcode.py | 1220 (source_root, source_extension) = posixpath.splitext(source)
|
/third_party/node/tools/gyp/pylib/gyp/ |
H A D | input.py | 2798 (source_root, source_extension) = os.path.splitext(source)
|
/third_party/node/deps/npm/node_modules/node-gyp/gyp/pylib/gyp/ |
H A D | input.py | 2776 (source_root, source_extension) = os.path.splitext(source)
|