Re: [GRASS-dev] Replace GNU Indent with ClangFormat?

2022-03-21 Thread Vaclav Petras
On Mon, 21 Mar 2022 at 10:01, Nicklas Larsson via grass-dev < grass-dev@lists.osgeo.org> wrote: > ...There were attempts to do this [2, 3], but numerous problem > arose...which are based on GNU Indent [4]. These problem are probably > originate in the comparatively limited functionality and lack

Re: [GRASS-dev] Replace GNU Indent with ClangFormat?

2022-03-21 Thread Anna Petrášová
+1 On Ubuntu 20.04 LTS, there is ClangFormat 12, I suppose there will be 13 in the upcoming 22.04 release. Anna On Mon, Mar 21, 2022 at 10:01 AM Nicklas Larsson via grass-dev < grass-dev@lists.osgeo.org> wrote: > Formatting the C and C++ code, making a consistent coding style was > proposed

[GRASS-dev] Replace GNU Indent with ClangFormat?

2022-03-21 Thread Nicklas Larsson via grass-dev
Formatting the C and C++ code, making a consistent coding style was proposed for G8 [1]. Unfortunately, it didn't make it. There were attempts to do this [2, 3], but numerous problem arose using `util/grass_indent.sh` and its batch script `util/grass_indent_ALL.sh`, which are based on GNU