-
Notifications
You must be signed in to change notification settings - Fork 491
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
astyle -> clang-format? #56
Comments
I agree. As a side benefit it is likely included by default on the build images so there would be no need to compile it for each build. Not sure if it would be possible to keep the exact same formatting we have now though? |
Okay, seems like a good idea. Can you come up with some command line options? Not a big deal if they don't reproduce the exact format, but I'd like to keep the main formatting principles. |
I'll do it this week! Is there a PR I should wait to be merged for before doing it (bitroting)? I'll also refactor slightly the travis files by creating a |
#58 has landed, so reformatting can go ahead. |
I've tried to do this on a branch, but discovered that the version of Ubuntu in Travis (12.04 "precise") has a very old version of clang-format (3.4), which is missing a bunch of options to produce the desired format. Anyone know how to install a newer version of clang-format on an old Ubuntu? Otherwise we might have to stay with astyle. |
Sorry very hectic weeks recently, I didn't have time to look into that. I did it for fplll here. |
* replacing astyle by clang-format #56 * sh instead of bash * sudo required now... * prettyprint with clang-format * debugging clang format * order of include mattered in newhope * trying again * order in mcbits too * includes in mcbits * Trying again * Change makefile for clangformat * removing conditionals in makefile * Order of include in mcbits: * CLANGFORMAT for linux and macOS * CLANGFORMAT for linux and macOS * CLANGFORMAT for linux and macOS * Warning of clang
In light of #53, I think it would be interesting to switch from astyle to clang-format. Clang-format is both a library and a stand-alone tool aiming at automatically reformatting C sources files, and continus to be developed while astyle has not been updated since December 2014.
The text was updated successfully, but these errors were encountered: