Commit graph

2 commits

Author SHA1 Message Date
Eberhard Beilharz
b0dfd5854d
chore(common): update C/C++ formatting options
This change updates two formatting options:

- pointers and references will be left-aligned (`int* foo`). Previously
  we had the setting to left-align but that got ignored because of the
  `DerivePointerAlignment` setting which tries to use the style used
  elsewhere in the file, which is not good to get consistent styling.
- no longer always add a line break after the return type of a function,
  only if type and name don't fit in a line. Unfortunately clang-format
  doesn't have a setting to only add the line break if the method
  definition is too long to fit in one line. The new setting matches the
  alternative formatting from our style guide.
2024-06-19 20:19:12 +02:00
Eberhard Beilharz
0dccc979b5
chore(common): Add C++ formatting rules
This allows vscode to format C++ files according our coding style
guideline.
2021-07-29 18:50:25 +02:00