From 2cc2772263d17a9b2755990d53e992a94d37e29d Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Fri, 27 Mar 2020 10:39:52 +0200 Subject: Implement project configuration reporting, similar to build system modules --- libbuild2/scope.hxx | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'libbuild2/scope.hxx') diff --git a/libbuild2/scope.hxx b/libbuild2/scope.hxx index fdc660d..cb20f79 100644 --- a/libbuild2/scope.hxx +++ b/libbuild2/scope.hxx @@ -496,6 +496,12 @@ namespace build2 const project_name& project (const scope& root); + // Return the name of the first innermost named project in the strong + // amalgamation chain or empty if all are unnamed. + // + const project_name& + named_project (const scope& root); + // Temporary scope. The idea is to be able to create a temporary scope in // order not to change the variables in the current scope. Such a scope is // not entered in to the scope map. As a result it can only be used as a -- cgit v1.1