aboutsummaryrefslogtreecommitdiff
path: root/libbuild2/name.hxx
diff options
context:
space:
mode:
Diffstat (limited to 'libbuild2/name.hxx')
-rw-r--r--libbuild2/name.hxx12
1 files changed, 12 insertions, 0 deletions
diff --git a/libbuild2/name.hxx b/libbuild2/name.hxx
index 8756cb7..b25a3e3 100644
--- a/libbuild2/name.hxx
+++ b/libbuild2/name.hxx
@@ -101,6 +101,18 @@ namespace build2
return (ignore_qual || unqualified ()) && untyped () && !value.empty ();
}
+ bool
+ absolute () const
+ {
+ return !dir.empty () && dir.absolute ();
+ }
+
+ bool
+ relative () const
+ {
+ return dir.empty () || dir.relative ();
+ }
+
int
compare (const name&) const;
};