From 17b3a78696f0b1fd6f0f60d53ec568cf3b9e32b4 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Wed, 1 Jul 2015 09:11:31 +0200 Subject: Cleanup group "see through" design --- build/target.cxx | 34 +++++++++++++++++++--------------- 1 file changed, 19 insertions(+), 15 deletions(-) (limited to 'build/target.cxx') diff --git a/build/target.cxx b/build/target.cxx index ec96779..7958a85 100644 --- a/build/target.cxx +++ b/build/target.cxx @@ -48,6 +48,14 @@ namespace build // target // + + group_view target:: + group_members (action) const + { + assert (false); // Not a group or doesn't expose its members. + return group_view {nullptr, 0}; + } + scope& target:: base_scope () const { @@ -388,16 +396,7 @@ namespace build nullptr, nullptr, &search_target, - }; - - const target_type target_group::static_type - { - typeid (target_group), - "target_group", - &target::static_type, - nullptr, - nullptr, - &search_target + false }; const target_type mtime_target::static_type @@ -407,7 +406,8 @@ namespace build &target::static_type, nullptr, nullptr, - &search_target + &search_target, + false }; const target_type path_target::static_type @@ -417,7 +417,8 @@ namespace build &mtime_target::static_type, nullptr, nullptr, - &search_target + &search_target, + false }; static target* @@ -439,7 +440,8 @@ namespace build &path_target::static_type, &file_factory, nullptr, // Factory always assigns an extension. - &search_file + &search_file, + false }; const target_type dir::static_type @@ -449,7 +451,8 @@ namespace build &target::static_type, &target_factory, nullptr, // Should never need. - &search_alias + &search_alias, + false }; const target_type fsdir::static_type @@ -459,6 +462,7 @@ namespace build &target::static_type, &target_factory, nullptr, // Should never need. - &search_target + &search_target, + false }; } -- cgit v1.1