Re: [fltk.coredev] Re: New Coding Standard (spaces and NO tabs)

GitHub FLTK Project   FLTK News RSS Feed  
  FLTK Apps      FLTK Library      Forums      Links     Login 
 All Forums  |  Back to fltk.coredev  ]
Previous Message ]New Message | Reply ]Next Message ]

Re: Re: New Coding Standard (spaces and NO tabs) Albrecht Schlosser 12:03 Sep 12 top right image
On 9/10/20 10:14 PM Ian MacArthur wrote:
On 10 Sep 2020, at 04:06, markjolesen wrote:

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'


$ 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.

You received this message because you are subscribed to the Google Groups "fltk.coredev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to
To view this discussion on the web visit
Direct Link to Message ]
bottom left image   bottom right image
Previous Message ]New Message | Reply ]Next Message ]

Comments are owned by the poster. All other content is copyright 1998-2020 by Bill Spitzak and others. This project is hosted by The FLTK Team. Please report site problems to ''.