aboutsummaryrefslogtreecommitdiff
path: root/build/path
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2015-01-14 11:39:21 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2015-01-14 11:39:21 +0200
commitce8a94e6a76097ef7eeb34df4257991a20599712 (patch)
tree5e83b9d083f486a6efe889102f7c2a815e6a06c6 /build/path
parentab4421747146aa7995f0cfb1a639c9121c82c915 (diff)
Track file extension in target, prerequisite
Diffstat (limited to 'build/path')
-rw-r--r--build/path5
1 files changed, 5 insertions, 0 deletions
diff --git a/build/path b/build/path
index 92832a1..dbd048d 100644
--- a/build/path
+++ b/build/path
@@ -259,6 +259,11 @@ namespace build
basic_path
base () const;
+ // Return the extension or NULL if not present.
+ //
+ const C*
+ extension () const;
+
// Return a path relative to the specified path that is equivalent
// to *this. Throws invalid_path if a relative path cannot be derived
// (e.g., paths are on different drives on Windows).