pmt: reformat code and improve workflow

This commit is contained in:
2025-09-11 10:58:14 +03:00
parent 83c56c795e
commit 37dc3ac94b
11 changed files with 42 additions and 49 deletions

View File

@@ -15,12 +15,12 @@
*/
#include <PartitionManager/PartitionManager.hpp>
#include <algorithm>
#include <fcntl.h>
#include <memory>
#include <string>
#include <unordered_set>
#include <vector>
#include <algorithm>
namespace PartitionManager {
std::vector<std::string> splitIfHasDelim(const std::string &s, const char delim,
@@ -96,9 +96,11 @@ bool basic_function_manager::hasFlagOnUsedFunction(const int flag) const {
for (const auto &func : _functions) {
if (func->isUsed()) {
std::for_each(func->flags.begin(), func->flags.end(), [&](const int x) {
LOGN(PMTF, INFO) << "Used flag " << x << " on " << func->name() << std::endl;
LOGN(PMTF, INFO) << "Used flag " << x << " on " << func->name()
<< std::endl;
});
return std::find(func->flags.begin(), func->flags.end(), flag) != func->flags.end();
return std::find(func->flags.begin(), func->flags.end(), flag) !=
func->flags.end();
}
}
return false;