This is a .clang-format
file that attempts to implement the Barr Group's formatting standards for embedded C via the clang-format
tool.
Issues:
- Space before parantheses should only happen during declaration and not call instances, there is no provision for this.
- Align trailing comments doesn't always work on multi-line top-level function definitions
- Pre-processor indentation affects nearby comment spacing
- There's no provision for aligning consecutive variable declarations for pointers (i.e., no space after the
*
but still aligned text excluding the*
).