Re: Using clang-format for formatting our code

2022-08-19 Thread Hugo Melder
I’ve written a basic .clang-format that inherits the GNU coding standards and adds some additional Objc settings. Unfortunately, clang-format is incapable of adding spaces before method arguments. Has anyone an idea on how to fix this? > On 16. Aug 2022, at 15:12, David Chisnall wrote: > > >

Re: Using clang-format for formatting our code

2022-08-16 Thread David Chisnall
On 16/08/2022 11:18, Richard Frith-Macdonald wrote: On 16 Aug 2022, at 10:25, Hugo Melder wrote: Hi, Having a consistent code style is useful both for reading and writing code, especially for contributors. The GNUstep base framework currently has a .clang-format configuration file in th

Re: Using clang-format for formatting our code

2022-08-16 Thread Richard Frith-Macdonald
> On 16 Aug 2022, at 10:25, Hugo Melder wrote: > > Hi, > > Having a consistent code style is useful both for reading and writing code, > especially for contributors. The GNUstep base framework currently has a > .clang-format configuration file in the project root, but is not used. We > cou

Using clang-format for formatting our code

2022-08-16 Thread Hugo Melder
Hi, Having a consistent code style is useful both for reading and writing code, especially for contributors. The GNUstep base framework currently has a .clang-format configuration file in the project root, but is not used. We could use a configuration file from major Objective-C open source pro