[QGIS-Developer] pre-commit for code-formatting

Stefanos Natsis uclaros at gmail.com
Thu Dec 12 13:48:25 PST 2024


> seems good now? Do you have a pointer to a failing workflow?
> I fixed an invalid regex in prepare_commit 2 days ago, so hopefully
> everything is ok now.

Seems fixed indeed :)

> you must choose with or without apparently in clang-format

Apparently, the online configurator you linked stops at version 10.
Starting with v13, clang format also allows SpacesInAngles=Leave
Could we use this or do we need to support older versions?

> >
> > 5. Similar for SpacesInSquareBrackets and SpacesInContainerLiterals
> >
>
> same

I believe setting those two to true would be more in line with the rest of
the style, which favors whitespaces, no?
Maybe I'll just have to get used to it :)

Any news on the multi line parameters improvement?


Stefanos
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/qgis-developer/attachments/20241212/375b934f/attachment.htm>


More information about the QGIS-Developer mailing list