What would be real exiciting is to run it through a source formatter like astyle
OK... um, did note that Albrecht said he’d been running the code through clang-format?
You know that’s a source formatter, like astyle?
Well, yes, I tried it and I prepared a (preliminary) .clang-format file
which I installed in our FLTK root directory.
I'm sure this is not the final setup, there are some points we need to
discuss and there are some cases where we would either re-think the code
formatting (for instance table-like structures of function arguments
etc.) or we'd need to add clang-format directives to disable formatting
in certain places.
Everybody is invited to test: install clang-format if you don't have it,
then run either
$ clang-format `input-file' > `output-file'
or
$ clang-format -i `input-file'
I'm using a graphical diff tool (meld) to compare the result with the
original, YMMV.
I'd appreciate all feedback and suggestions on what of the setup
(.clang-format) to change. TIA.
Comments are owned by the poster. All other content is copyright 1998-2025 by Bill Spitzak and others. This project is hosted by The FLTK Team. Please report site problems to 'erco@seriss.com'.