aboutsummaryrefslogtreecommitdiff
path: root/build2/scope.hxx
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2018-11-08 12:45:33 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2018-11-08 12:45:33 +0200
commitdbb7a5ffefefa1e6439464cac47ebfd90a913aa7 (patch)
treebec6ea433f5ae1cd7c7eaddd3f57fa82a6cb4960 /build2/scope.hxx
parent0c2c473c9937a54562bbf767cc5450f6c03bcce6 (diff)
Fix bug in override logic for command line variable with project visibility
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: