Skip to content

Integrate clang-format #104

Open
@nirs

Description

@nirs

To keep consistent format without effort, we want to have automatic code formatting. clang-format seems to to be the best tool for this.

Taks:

  • Document clang-format developer requirement in CONTRIBUTING.md
  • Add CI auto-format check, failing if code is not formatted
  • Pick one of the builtin styles (LLVM, GNU, Google, Chromium, Microsoft, Mozilla, WebKit)
  • or add a .clang-format file to match our style
  • Find how to keep aligned text - seems that we need to skip the formatter around aligned text
  • Change the style to something more readable? 2 spaces are not great

Links:

Metadata

Metadata

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions