| 321 | } |
| 322 | |
| 323 | static bool tool_identifier(cbm_graph_profile_dialect_t dialect, profile_tool_t tool, char *output, |
| 324 | size_t output_size) { |
| 325 | const char *prefix = dialect_tool_prefix(dialect); |
| 326 | if (!prefix || tool < PROFILE_TOOL_SEARCH_GRAPH || tool >= PROFILE_TOOL_COUNT || !output || |
| 327 | output_size == 0U) { |
| 328 | return false; |
| 329 | } |
| 330 | int written = snprintf(output, output_size, "%s%s", prefix, tool_base_names[tool]); |
| 331 | return written >= 0 && (size_t)written < output_size; |
| 332 | } |
| 333 | |
| 334 | static bool append_yaml_mcp_tools(profile_buffer_t *buffer, cbm_graph_profile_dialect_t dialect, |
| 335 | cbm_graph_tier_t tier) { |
no test coverage detected