File tree 2 files changed +17
-0
lines changed 2 files changed +17
-0
lines changed Original file line number Diff line number Diff line change @@ -233,3 +233,17 @@ resultt determine_result(const propertiest &properties)
233
233
}
234
234
return static_cast <resultt>(status);
235
235
}
236
+
237
+ bool has_properties_to_check (const propertiest &properties)
238
+ {
239
+ for (const auto &property_pair : properties)
240
+ {
241
+ if (
242
+ property_pair.second .status == property_statust::NOT_CHECKED ||
243
+ property_pair.second .status == property_statust::UNKNOWN)
244
+ {
245
+ return true ;
246
+ }
247
+ }
248
+ return false ;
249
+ }
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