From a68fa2f5c22cbbfc099dd77cccaf44db4cf85730 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Thu, 12 Nov 2020 14:38:12 +0200 Subject: Generalize dot escaping in target name rules Now triple dot and escape sequence can appear almost anywhere in the target name (see target::split_name() for details). --- libbuild2/target.hxx | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'libbuild2/target.hxx') diff --git a/libbuild2/target.hxx b/libbuild2/target.hxx index 73363ae..d6e128e 100644 --- a/libbuild2/target.hxx +++ b/libbuild2/target.hxx @@ -767,13 +767,14 @@ namespace build2 } public: - // Split the name leaf into target name (in place) and extension - // (returned). + // Split the name (not necessarily a simple path) into target name (in + // place) and extension (returned). // static optional split_name (string&, const location&); - // Combine the target name and extension into the name leaf. + // Combine the target name (not necessarily a simple path) and + // extension. // // If the target type has the default extension, then "escape" the // existing extension if any. -- cgit v1.1