aboutsummaryrefslogtreecommitdiff
path: root/build2/scope.hxx
diff options
context:
space:
mode:
Diffstat (limited to 'build2/scope.hxx')
-rw-r--r--build2/scope.hxx6
1 files changed, 6 insertions, 0 deletions
diff --git a/build2/scope.hxx b/build2/scope.hxx
index 770f320..7929bce 100644
--- a/build2/scope.hxx
+++ b/build2/scope.hxx
@@ -70,6 +70,12 @@ namespace build2
scope* weak_scope ();
const scope* weak_scope () const;
+ // Return true if the specified root scope is a sub-scope of this root
+ // scope. Note that both scopes must be root.
+ //
+ bool
+ sub_root (const scope&) const;
+
// Variables.
//
public: