/third_party/gn/src/gn/ |
D | label_pattern_unittest.cc | 20 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 …]
|
D | label_pattern.h | 21 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,
|
D | label_pattern.cc | 170 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()
|
D | commands_unittest.cc | 22 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()
|
D | visibility.cc | 37 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()
|
D | setup.h | 104 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_;
|
D | bundle_data.h | 19 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_;
|
D | commands.cc | 45 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()
|
D | commands.h | 20 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,
|
D | target.h | 347 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_;
|
D | value_extractors.h | 18 class LabelPattern; variable 91 std::vector<LabelPattern>* patterns,
|
D | value_extractors.cc | 200 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()
|
D | visibility.h | 66 std::vector<LabelPattern> patterns_;
|
D | create_bundle_target_generator.cc | 296 std::vector<LabelPattern>& bundle_deps_filter = in FillBundleDepsFilter() 299 bundle_deps_filter.push_back(LabelPattern::GetPattern( in FillBundleDepsFilter()
|
D | target.cc | 157 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()
|
D | setup.cc | 959 check_patterns_ = std::make_unique<std::vector<LabelPattern>>(); in FillOtherConfig() 980 no_check_patterns_ = std::make_unique<std::vector<LabelPattern>>(); in FillOtherConfig()
|
D | json_project_writer.cc | 65 std::vector<LabelPattern> filters; in FilterTargets()
|
D | target_unittest.cc | 1286 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()
|
D | header_checker_unittest.cc | 407 c_.friends().push_back(LabelPattern::GetPattern( in TEST_F()
|
D | header_checker.cc | 112 return LabelPattern::VectorMatches(annotation_on->friends(), in FriendMatches()
|
D | xcode_writer.cc | 829 std::vector<LabelPattern> filters; in GetTargetsFromBuilder()
|
D | visual_studio_writer.cc | 202 std::vector<LabelPattern> patterns; in FilterTargets()
|