File tree Expand file tree Collapse file tree 2 files changed +17
-0
lines changed Expand file tree Collapse file tree 2 files changed +17
-0
lines changed Original file line number Diff line number Diff line change @@ -235,3 +235,17 @@ resultt determine_result(const propertiest &properties)
235
235
}
236
236
return static_cast <resultt>(status);
237
237
}
238
+
239
+ bool has_properties_to_check (const propertiest &properties)
240
+ {
241
+ for (const auto &property_pair : properties)
242
+ {
243
+ if (
244
+ property_pair.second .status == property_statust::NOT_CHECKED ||
245
+ property_pair.second .status == property_statust::UNKNOWN)
246
+ {
247
+ return true ;
248
+ }
249
+ }
250
+ return false ;
251
+ }
Original file line number Diff line number Diff line change @@ -89,6 +89,9 @@ int result_to_exit_code(resultt result);
89
89
// / Return the number of properties with given \p status
90
90
std::size_t count_properties (const propertiest &, property_statust);
91
91
92
+ // / Return true if there as a property with NOT_CHECKED or UNKNOWN status.
93
+ bool has_properties_to_check (const propertiest &properties);
94
+
92
95
property_statust &operator |=(property_statust &, property_statust const &);
93
96
property_statust &operator &=(property_statust &, property_statust const &);
94
97
resultt determine_result (const propertiest &properties);
You can’t perform that action at this time.
0 commit comments