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