Skip to main content

format_source_with_debug

Function format_source_with_debug 

Source
pub fn format_source_with_debug(
    source: &str,
    config: &Config,
) -> Result<(String, Vec<String>)>
Expand description

Format raw CMake source using the built-in registry and also return debug lines describing the formatter’s decisions.

The returned Vec<String> contains one human-readable log line per formatting decision (layout choice, section split, fallback paths, barrier events). The exact wording is unstable across releases and intended for interactive debugging and bug reports, not programmatic consumption.