clang-format-barr-c icon indicating copy to clipboard operation
clang-format-barr-c copied to clipboard

A .clang-format file that attempts the Barr C Embedded Coding Guidelines (2018)

Introduction

This is a .clang-format file that attempts to implement the Barr Group's formatting standards for embedded C via the clang-format tool.

Known Issues:

  1. Align trailing comments doesn't always work on multi-line top-level function definitions
  2. Pre-processor indentation affects nearby comment spacing