aboutsummaryrefslogtreecommitdiff
path: root/libbutl/path-pattern.ixx
diff options
context:
space:
mode:
authorKaren Arutyunov <karen@codesynthesis.com>2022-12-12 18:35:08 +0300
committerKaren Arutyunov <karen@codesynthesis.com>2022-12-12 18:38:12 +0300
commit8cc86445437e7afc583dee18b36c0e8ba4b6fe12 (patch)
tree2215464b2434c5e34d748bb08f58b39a34aefd6e /libbutl/path-pattern.ixx
parent82982e037dea53b334070699471e682fb023dc9e (diff)
Add support for omitting sub-projects from b_info() result
Diffstat (limited to 'libbutl/path-pattern.ixx')
-rw-r--r--libbutl/path-pattern.ixx26
1 files changed, 26 insertions, 0 deletions
diff --git a/libbutl/path-pattern.ixx b/libbutl/path-pattern.ixx
index 71f125c..6fee31e 100644
--- a/libbutl/path-pattern.ixx
+++ b/libbutl/path-pattern.ixx
@@ -3,6 +3,32 @@
namespace butl
{
+ // path_match_flags
+ //
+ inline path_match_flags operator& (path_match_flags x, path_match_flags y)
+ {
+ return x &= y;
+ }
+
+ inline path_match_flags operator| (path_match_flags x, path_match_flags y)
+ {
+ return x |= y;
+ }
+
+ inline path_match_flags operator&= (path_match_flags& x, path_match_flags y)
+ {
+ return x = static_cast<path_match_flags> (
+ static_cast<std::uint16_t> (x) &
+ static_cast<std::uint16_t> (y));
+ }
+
+ inline path_match_flags operator|= (path_match_flags& x, path_match_flags y)
+ {
+ return x = static_cast<path_match_flags> (
+ static_cast<std::uint16_t> (x) |
+ static_cast<std::uint16_t> (y));
+ }
+
// path_pattern_iterator
//
inline path_pattern_iterator::