aboutsummaryrefslogtreecommitdiff
path: root/libbuild2/target.hxx
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2020-11-12 14:38:12 +0200
committerKaren Arutyunov <karen@codesynthesis.com>2020-11-17 16:57:00 +0300
commita68fa2f5c22cbbfc099dd77cccaf44db4cf85730 (patch)
treea6faf9babcb8e637d09c8061253d8cd52e670d53 /libbuild2/target.hxx
parent8cc7acfc647ab61eecb8feddbd0cbf5ae270e41e (diff)
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).
Diffstat (limited to 'libbuild2/target.hxx')
-rw-r--r--libbuild2/target.hxx7
1 files changed, 4 insertions, 3 deletions
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<string>
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.