From c2b4305349ca855c497904282db354de56c74842 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Tue, 7 Aug 2018 14:59:07 +0200 Subject: Add support for default extension specification, trailing dot escaping For example: cxx{*}: extension = cxx cxx{foo} # foo.cxx cxx{foo.test} # foo.test (probably what we want...) cxx{foo.test...} # foo.test.cxx (... is this) cxx{foo..} # foo. cxx{foo....} # foo.. cxx{foo.....} # error (must come in escape pair) --- build2/scope.hxx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'build2/scope.hxx') diff --git a/build2/scope.hxx b/build2/scope.hxx index 73d95b6..d40d14a 100644 --- a/build2/scope.hxx +++ b/build2/scope.hxx @@ -213,12 +213,12 @@ namespace build2 // Given a name, figure out its type, taking into account extensions, // special names (e.g., '.' and '..'), or anything else that might be - // relevant. Also process the name (in place) by extracting the - // extension, adjusting dir/value, etc., (note that the dir is not + // relevant. Process the name (in place) by extracting (and returning) + // extension, adjusting dir/leaf, etc., (note that the dir is not // necessarily normalized). Return NULL if not found. // - const target_type* - find_target_type (name&, optional& ext, const location&) const; + pair> + find_target_type (name&, const location&) const; // Dynamically derive a new target type from an existing one. Return the // reference to the target type and an indicator of whether it was -- cgit v1.1