Skip to content

Use a consistent style for enum braces

Niels De Graef requested to merge wip/nielsdg/consistent-enum-style into master

Given that we want to converge to a truly consistent style everywhere, let's try to do it by bits and pieces. Preferably, we convert the style of a line only if we make relevant modifications to it, but given that no-one will change a line like enum { or typedef enum {, it might be best to do this all at once.

To make sure I chose the most consistent style, I compared putting the brace at the end of the line and on a new line and got:

$ fgrep -niR 'enum {' | wc -l
200
$ grep -niR 'enum$' | wc -l 
710

This is an attempt to narrow the changes that would happen if we were to introduce a code formatter to our CI (as suggested in !287 (closed))

Merge request reports