Skip to content

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

Notifications You must be signed in to change notification settings

TheSomeMan/clang-format-barr-c

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 

Repository files navigation

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.

Issues:

  1. Space before parantheses should only happen during declaration and not call instances, there is no provision for this.
  2. Align trailing comments doesn't always work on multi-line top-level function definitions
  3. Pre-processor indentation affects nearby comment spacing
  4. There's no provision for aligning consecutive variable declarations for pointers (i.e., no space after the * but still aligned text excluding the *).

About

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

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published