#pragma once // Step 1360: Build output parser — GCC/Clang format. #include #include struct BuildOutputParserGCCClangFormat { std::string id; std::string detail; int score = 0; bool enabled = false; bool valid = false; }; class BuildOutputParserGCCClangFormatFactory { public: static BuildOutputParserGCCClangFormat make(const std::string& id, const std::string& detail, int score, bool enabled) { bool valid = !id.empty() && !detail.empty() && score >= 0; return {id, detail, score, enabled, valid}; } static nlohmann::json toJson(const BuildOutputParserGCCClangFormat& v) { nlohmann::json j = nlohmann::json::object(); j["id"] = v.id; j["detail"] = v.detail; j["score"] = v.score; j["enabled"] = v.enabled; j["valid"] = v.valid; return j; } };