Guide

SC::Format

Format the repository or check formatting in CI with SC::Format.

SC::Format applies the repository's pinned clang-format configuration to supported source files.

Format a working tree

./SC.sh format execute

Run this after editing C or C++ sources, then inspect the diff. Formatting does not decide whether generated files, comments, or declaration grouping are sensible.

Check without modifying files

./SC.sh format check

check exits with an error when formatting would change a file, which makes it suitable for CI and pre-commit validation. Both actions use the package-managed formatter version expected by the repository.