aboutsummaryrefslogtreecommitdiff
path: root/build2/version/rule.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/version/rule.hxx
parent280f4a5bf787587227ca193cd59c6bd74091db70 (diff)
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/version/rule.hxx')
-rw-r--r--build2/version/rule.hxx12
1 files changed, 6 insertions, 6 deletions
diff --git a/build2/version/rule.hxx b/build2/version/rule.hxx
index e686694..9172ba3 100644
--- a/build2/version/rule.hxx
+++ b/build2/version/rule.hxx
@@ -16,12 +16,12 @@ namespace build2
{
// Generate a version file.
//
- class version_doc: public rule
+ class doc_rule: public rule
{
public:
- version_doc () {}
+ doc_rule () {}
- virtual match_result
+ virtual bool
match (action, target&, const string&) const override;
virtual recipe
@@ -33,12 +33,12 @@ namespace build2
// Preprocess an .in file.
//
- class version_in: public rule
+ class in_rule: public rule
{
public:
- version_in () {}
+ in_rule () {}
- virtual match_result
+ virtual bool
match (action, target&, const string&) const override;
virtual recipe