summaryrefslogtreecommitdiffstats
path: root/build2/test/module.hxx
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2018-01-20 13:46:11 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2018-02-03 14:35:45 +0200
commit934f2a9a90c5cad3cdc8a66b50c17827a3ddbcee (patch)
treef35f106e5369e98350327c79080c571195234c0b /build2/test/module.hxx
parent280f4a5bf787587227ca193cd59c6bd74091db70 (diff)
downloadbuild2-934f2a9a90c5cad3cdc8a66b50c17827a3ddbcee.tar.gz
build2-934f2a9a90c5cad3cdc8a66b50c17827a3ddbcee.tar.xz
build2-934f2a9a90c5cad3cdc8a66b50c17827a3ddbcee.zip
Get rid of action rule override semantics
Instead we now have two more or less separate match states for outer and inner parts of an action.
Diffstat (limited to 'build2/test/module.hxx')
-rw-r--r--build2/test/module.hxx13
1 files changed, 12 insertions, 1 deletions
diff --git a/build2/test/module.hxx b/build2/test/module.hxx
index 3c9539f1..529f826c 100644
--- a/build2/test/module.hxx
+++ b/build2/test/module.hxx
@@ -17,8 +17,19 @@ namespace build2
{
namespace test
{
- struct module: module_base, virtual common, rule, alias_rule
+ struct module: module_base, virtual common, default_rule, group_rule
{
+ const test::group_rule&
+ group_rule () const
+ {
+ return *this;
+ }
+
+ explicit
+ module (common_data&& d)
+ : common (move (d)),
+ test::default_rule (move (d)),
+ test::group_rule (move (d)) {}
};
}
}