From f63c0548281015ca1f7d71079c0880e3634063fb Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Wed, 29 Sep 2021 08:55:34 +0200 Subject: Add notion of bundle amalgamation scope --- libbuild2/scope.hxx | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'libbuild2/scope.hxx') diff --git a/libbuild2/scope.hxx b/libbuild2/scope.hxx index 97c7be5..f82db72 100644 --- a/libbuild2/scope.hxx +++ b/libbuild2/scope.hxx @@ -69,6 +69,15 @@ namespace build2 const scope* root_scope () const; // Root scope of the outermost "strong" (source-based) amalgamation of + // this scope that has a project name or NULL if this scope is not (yet) + // in any (known) project. If there is no bundle amalgamation, then this + // function returns the root scope of the project (in other words, in this + // case a project is treated as its own bundle, even if it's unnamed). + // + scope* bundle_scope (); + const scope* bundle_scope () const; + + // Root scope of the outermost "strong" (source-based) amalgamation of // this scope or NULL if this scope is not (yet) in any (known) project. // If there is no strong amalgamation, then this function returns the root // scope of the project (in other words, in this case a project is treated -- cgit v1.1