How C++ source formatting works here
A C++ formatter is a readability tool. It takes dense or uneven source text and reflows indentation, braces, parentheses, statements and blank lines so namespaces, classes, methods, templates, lambdas and nested conditions are easier to follow.
This page preserves comments when that option is enabled and keeps preprocessor lines such as includes, defines and conditional directives visible. It also reports diagnostics for common trouble spots such as unclosed comments, strings, braces and parser limitations.
Use spaces, tabs or compact output depending on the handoff. For production work, this page should sit before your real compiler, clang-format configuration, static analysis and test suite, not replace them.