[GRASS-dev] C code indented

Vaclav Petras wenzeslaus at gmail.com
Sat Sep 17 02:56:55 PDT 2022


On Sat, 17 Sept 2022 at 04:57, Wolf Bergenheim <wolf+grass at bergenheim.net>
wrote:

> On Tue, 13 Sept 2022 at 09:33, Vaclav Petras <wenzeslaus at gmail.com> wrote:
>
>>
>> Formatting needs to be enforced in the CI. This can be done with
>> something like re-indent followed by git diff.
>>
>>
> Maybe something like this could be used?
> https://github.com/marketplace/actions/clang-format-check  Note that it
> doesn't actually format the code, but would complain like the current black
> formatter for python 🤔
>
> or perhaps https://github.com/material-foundation/clang-format-ci seems
> to do the same, and leaves inline comments
>

Yes, please. We need to transition to clang-format and one of these
clang-format wrappers for CI will be needed. You can open an experimental
PR if you want. See also #2272.

https://github.com/OSGeo/grass/pull/2272
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/grass-dev/attachments/20220917/a0076668/attachment.htm>


More information about the grass-dev mailing list