Home
last modified time | relevance | path

Searched refs:LabelPattern (Results 1 – 22 of 22) sorted by relevance

/third_party/gn/src/gn/
Dlabel_pattern_unittest.cc20 LabelPattern::Type type;
28 TEST(LabelPattern, PatternParse) { in TEST() argument
32 {"", false, LabelPattern::MATCH, "", "", ""}, in TEST()
33 {":", false, LabelPattern::MATCH, "", "", ""}, in TEST()
35 {":bar", true, LabelPattern::MATCH, "//foo/", "bar", ""}, in TEST()
36 {"//la:bar", true, LabelPattern::MATCH, "//la/", "bar", ""}, in TEST()
37 {"*", true, LabelPattern::RECURSIVE_DIRECTORY, "", "", ""}, in TEST()
38 {":*", true, LabelPattern::DIRECTORY, "//foo/", "", ""}, in TEST()
39 {"la:*", true, LabelPattern::DIRECTORY, "//foo/la/", "", ""}, in TEST()
40 {"la/*:*", true, LabelPattern::RECURSIVE_DIRECTORY, "//foo/la/", "", ""}, in TEST()
[all …]
Dlabel_pattern.h21 class LabelPattern {
30 LabelPattern();
31 LabelPattern(Type type,
35 LabelPattern(const LabelPattern& other);
36 ~LabelPattern();
38 LabelPattern& operator=(const LabelPattern&) = default;
42 static LabelPattern GetPattern(const SourceDir& current_dir,
54 static bool VectorMatches(const std::vector<LabelPattern>& patterns,
Dlabel_pattern.cc170 return LabelPattern();
180 return LabelPattern();
186 return LabelPattern();
197 return LabelPattern();
211 return LabelPattern(type, dir, std::string_view(), toolchain_label);
214 bool LabelPattern::HasWildcard(const std::string& str) { in HasWildcard()
220 bool LabelPattern::Matches(const Label& label) const { in Matches()
245 bool LabelPattern::VectorMatches(const std::vector<LabelPattern>& patterns, in VectorMatches()
254 std::string LabelPattern::Describe() const { in Describe()
Dcommands_unittest.cc22 LabelPattern pattern_a = LabelPattern::GetPattern( in TEST()
25 LabelPattern pattern_ef = LabelPattern::GetPattern( in TEST()
28 std::vector<LabelPattern> label_patterns{pattern_a, pattern_ef}; in TEST()
Dvisibility.cc37 LabelPattern::GetPattern(current_dir, source_root, item, err)); in Set()
46 patterns_.push_back(LabelPattern(LabelPattern::RECURSIVE_DIRECTORY, in SetPublic()
52 patterns_.push_back(LabelPattern(LabelPattern::DIRECTORY, current_dir, in SetPrivate()
57 return LabelPattern::VectorMatches(patterns_, label); in CanSeeMe()
Dsetup.h104 const std::vector<LabelPattern>* check_patterns() const { in check_patterns()
112 const std::vector<LabelPattern>* no_check_patterns() const { in no_check_patterns()
176 std::unique_ptr<std::vector<LabelPattern>> check_patterns_;
177 std::unique_ptr<std::vector<LabelPattern>> no_check_patterns_;
Dbundle_data.h19 class LabelPattern; variable
150 std::vector<LabelPattern>& bundle_deps_filter() { in bundle_deps_filter()
153 const std::vector<LabelPattern>& bundle_deps_filter() const { in bundle_deps_filter()
175 std::vector<LabelPattern> bundle_deps_filter_;
Dcommands.cc45 LabelPattern pattern = LabelPattern::GetPattern( in ResolveTargetsFromCommandLinePattern()
63 std::vector<LabelPattern> pattern_vector; in ResolveTargetsFromCommandLinePattern()
80 if (LabelPattern::HasWildcard(input)) { in ResolveStringFromCommandLineInput()
542 const std::vector<LabelPattern>& filter, in FilterTargetsByPatterns()
555 const std::vector<LabelPattern>& filter, in FilterTargetsByPatterns()
568 const std::vector<LabelPattern>& filter, in FilterOutTargetsByPatterns()
586 std::vector<LabelPattern>* filters, in FilterPatternsFromString()
594 LabelPattern pattern = LabelPattern::GetPattern( in FilterPatternsFromString()
Dcommands.h20 class LabelPattern; variable
288 const std::vector<LabelPattern>& filter,
291 const std::vector<LabelPattern>& filter,
296 const std::vector<LabelPattern>& filter,
302 std::vector<LabelPattern>* filters,
Dtarget.h347 std::vector<LabelPattern>& friends() { return friends_; } in friends()
348 const std::vector<LabelPattern>& friends() const { return friends_; } in friends()
350 std::vector<LabelPattern>& assert_no_deps() { return assert_no_deps_; } in assert_no_deps()
351 const std::vector<LabelPattern>& assert_no_deps() const { in assert_no_deps()
517 std::vector<LabelPattern> friends_;
518 std::vector<LabelPattern> assert_no_deps_;
Dvalue_extractors.h18 class LabelPattern; variable
91 std::vector<LabelPattern>* patterns,
Dvalue_extractors.cc200 bool operator()(const Value& v, LabelPattern* out, Err* err) const { in operator ()()
201 *out = LabelPattern::GetPattern(current_dir, in operator ()()
310 std::vector<LabelPattern>* patterns, in ExtractListOfLabelPatterns()
Dvisibility.h66 std::vector<LabelPattern> patterns_;
Dcreate_bundle_target_generator.cc296 std::vector<LabelPattern>& bundle_deps_filter = in FillBundleDepsFilter()
299 bundle_deps_filter.push_back(LabelPattern::GetPattern( in FillBundleDepsFilter()
Dtarget.cc157 const std::vector<LabelPattern>& assert_no, in RecursiveCheckAssertNoDeps()
160 const LabelPattern** failure_pattern) { in RecursiveCheckAssertNoDeps()
168 for (const LabelPattern& pattern : assert_no) { in RecursiveCheckAssertNoDeps()
1174 const LabelPattern* failure_pattern = nullptr; in CheckAssertNoDeps()
Dsetup.cc959 check_patterns_ = std::make_unique<std::vector<LabelPattern>>(); in FillOtherConfig()
980 no_check_patterns_ = std::make_unique<std::vector<LabelPattern>>(); in FillOtherConfig()
Djson_project_writer.cc65 std::vector<LabelPattern> filters; in FilterTargets()
Dtarget_unittest.cc1286 b.assert_no_deps().push_back(LabelPattern(LabelPattern::RECURSIVE_DIRECTORY, in TEST_F()
1291 LabelPattern disallow_a(LabelPattern::RECURSIVE_DIRECTORY, SourceDir("//a/"), in TEST_F()
Dheader_checker_unittest.cc407 c_.friends().push_back(LabelPattern::GetPattern( in TEST_F()
Dheader_checker.cc112 return LabelPattern::VectorMatches(annotation_on->friends(), in FriendMatches()
Dxcode_writer.cc829 std::vector<LabelPattern> filters; in GetTargetsFromBuilder()
Dvisual_studio_writer.cc202 std::vector<LabelPattern> patterns; in FilterTargets()