From 28fb279aba3af8bf1a57a9e36b2b183ef68c5454 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Mon, 14 Jan 2019 13:51:31 +0200 Subject: Diagnose target names with multiple trailing slashes as invalid --- build2/scope.hxx | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'build2/scope.hxx') diff --git a/build2/scope.hxx b/build2/scope.hxx index 7bdddde..a18794f 100644 --- a/build2/scope.hxx +++ b/build2/scope.hxx @@ -218,11 +218,11 @@ namespace build2 const target_type* find_target_type (const string&, const scope** = nullptr) const; - // Given a name, figure out its type, taking into account extensions, - // special names (e.g., '.' and '..'), or anything else that might be - // 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. + // Given a target name, figure out its type, taking into account + // extensions, special names (e.g., '.' and '..'), or anything else that + // might be 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. // pair> find_target_type (name&, const location&) const; -- cgit v1.1