diff options
-rw-r--r-- | libbuild2/name.hxx | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/libbuild2/name.hxx b/libbuild2/name.hxx index 39d2396..8756cb7 100644 --- a/libbuild2/name.hxx +++ b/libbuild2/name.hxx @@ -93,6 +93,14 @@ namespace build2 untyped () && !dir.empty () && value.empty (); } + // File path-like (only optional directory and non-empty value). + // + bool + file (bool ignore_qual = false) const + { + return (ignore_qual || unqualified ()) && untyped () && !value.empty (); + } + int compare (const name&) const; }; |