aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2020-05-27 08:24:17 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2020-05-27 08:41:08 +0200
commitf5fba11159da64e53829a151a9d19d022ac63662 (patch)
tree3b395c0e4e0460a560b61e2f9877c3bcd19aec57
parentf98b9c87438d40888a6b8d60436a4f644a5364d4 (diff)
Don't export ad hoc rule implementation details
-rw-r--r--libbuild2/rule.hxx14
1 files changed, 9 insertions, 5 deletions
diff --git a/libbuild2/rule.hxx b/libbuild2/rule.hxx
index a674b05..efa4ec3 100644
--- a/libbuild2/rule.hxx
+++ b/libbuild2/rule.hxx
@@ -116,7 +116,9 @@ namespace build2
// Ad hoc rule.
//
- class LIBBUILD2_SYMEXPORT adhoc_rule: rule
+ // Note: not exported
+ //
+ class adhoc_rule: public rule
{
public:
location_value loc; // Buildfile location of the recipe.
@@ -162,9 +164,9 @@ namespace build2
// Ad hoc script rule.
//
- // Note: should not be used directly (i.e., registered).
+ // Note: not exported and should not be used directly (i.e., registered).
//
- class LIBBUILD2_SYMEXPORT adhoc_script_rule: public adhoc_rule
+ class adhoc_script_rule: public adhoc_rule
{
public:
virtual bool
@@ -196,7 +198,7 @@ namespace build2
// Ad hoc C++ rule.
//
- // Note: should not be used directly (i.e., registered).
+ // Note: exported but should not be used directly (i.e., registered).
//
class LIBBUILD2_SYMEXPORT cxx_rule: public rule
{
@@ -219,7 +221,9 @@ namespace build2
match (action, target&, const string&) const override;
};
- class LIBBUILD2_SYMEXPORT adhoc_cxx_rule: public adhoc_rule
+ // Note: not exported.
+ //
+ class adhoc_cxx_rule: public adhoc_rule
{
public:
virtual bool