Skip to main content

Module formatter

Module formatter 

Source
Expand description

Source-to-source formatting pipeline. Top-level formatter entry points.

These functions parse input, apply barrier handling, and render a formatted output string using the command registry and runtime configuration.

Functions§

format_parsed_file
Format an already parsed AST file using the original source text.
format_source
Format raw CMake source using the built-in command registry.
format_source_with_debug
Format raw CMake source using the built-in registry and also return debug lines describing the formatter’s decisions.
format_source_with_registry
Format raw CMake source using an explicit command registry.
format_source_with_registry_debug
Format raw CMake source using an explicit registry and return debug output.