Clang format config for Weston

Harish Krupo harish.krupo.kps at
Thu Mar 14 10:31:08 UTC 2019


I have written a clang format file based on this example [1], to
match the coding style here [2]. Does the below config look okay or
should something be changed?
If people are interested, I can open a MR for this. This could also be
used in the CI to warn/abort if a patch isn't according to the coding

The config:
BasedOnStyle: LLVM
IndentWidth: 8
TabWidth: 8
UseTab: Always
BreakBeforeBraces: Linux
AllowShortIfStatementsOnASingleLine: false
IndentCaseLabels: false
AlwaysBreakAfterReturnType: TopLevel


More information about the wayland-devel mailing list