Skip to content

Add a clang-format configuration file.

James Henstridge requested to merge jamesh/pygobject:clang-format into main

Related to #665, I had experimented a bit with putting together a clang-format configuration file.

This MR doesn't include the result of applying the formatting: that's probably easiest to test by running clang-format -i gi/*.ch], then checking the diff.

The styling of the pygobject C source is a bit inconsistent, so I tried to match the most common style where I could.

There's a few places I haven't been able to replicate the style. In particular, the alignment of kwlist arrays: I couldn't replicate that without breaking the formatting of function argument lists.

Merge request reports

Loading