17 Commits (604535f65a36a67bbf934cc056c648a79a6d03ba)

Author SHA1 Message Date
Adriaan de Groot 154396f80a CI: drop support for clang-format10 and later
The only acceptable versions of clang-format are 8 and 9 for now
(until another round of big-churn-from-formatting, at which point
we'll update the required version).

clang-format-9 says:

    SpacesInSquareBrackets (bool)
      If true, spaces will be inserted after [ and before ]. Lambdas
      or unspecified size array declarations will not be affected.

clang-format-10 changes part of that to:

      Lambdas without arguments or unspecified size array
      declarations will not be affected.

This means that 9 will only allow `[name]` for captures, and 10
will only allow `[ name ]` for captures, so they ping-pong all
the lambda's in the codebase back and forth. Just don't.
4 years ago
Adriaan de Groot f3c57723df CI: make clang-format wrangling more flexible
Various clang-format versions have different defaults and
don't understand the same options, so adjust to having
files per-formatting-version to patch things up.
4 years ago
Adriaan de Groot ea8f5afc3c CI: clang-format 7 is no longer supported 4 years ago
Adriaan de Groot 3b9c0bdf91 CI: don't allow clang-format 7 any more 4 years ago
Adriaan de Groot 697ee6f65f CI: accept clang-format90 (FreeBSD naming style) 4 years ago
Adriaan de Groot 17914b9cf9 CI: adjust to clang-format-10 automatically
- leave clang-format file alone, but dynamically
  modify it when clang-format 10 or later is present
- ignore the resulting .bak file
4 years ago
Adriaan de Groot 0ee0f40816 REUSE: license tags for the scripts and tools in ci/
- remove empty useless HACKING
- remove unused cppcheck.sh
- migrate the AppImage docs to the wiki (which doesn't moan about licensing)
- try a HTML-style comment in the RELEASE docs
4 years ago
Adriaan de Groot 4a45eb847d CI: fix edge cases for calamaresstyle
- no format-10
- skip empty directories (otherwise astyle gets no file-paramaters
  and then hangs on stdin)
4 years ago
Adriaan de Groot 45aac7db66 CI: update clang-format
In clang-format 10, SpaceInEmptyBlock is introduced, and defaults to
true .. which is different from the earlier formatting versions did.
For now, refuse clang-format 10, and search specifically also for
clang-format-9.0.1 because that's what I have on my laptop.

At some point, switch in the config option and then require
clang-format 10 or later (because earlier versions refuse to
run with an unknown config option)
5 years ago
Adriaan de Groot 24d0ca6f8e CI: don't be so chatty while looking for clang-format 5 years ago
Adriaan de Groot 0f8751497e CI: give tooling a standard LANG environment 5 years ago
Adriaan de Groot a403f1e851 CI: allow plain clang-format (Tumbleweed) 5 years ago
Adriaan de Groot fae1fdae1c CI: allow meaningful error messages
- Move set -e down in the script so that the error-handling
   at the top (which prints meaningful error messages) isn't
   short-circuited by the -e.
5 years ago
Adriaan de Groot fa676c573e CI: Fix style script
- when passing in more than one directory, expanded the wrong variable
5 years ago
Adriaan de Groot d220fcea24 CI: allow different versions of clang-format 6 years ago
Adriaan de Groot 8053bf6f3a CI: use both tools for code-formatting
- astyle can do some things that clang-format doesn't (e.g.
   adding brackets; you need clang-tidy for that),
 - clang-format does a much nicer job with lambdas and certain
   other constructions,
 - allow passing in directories at a time for formatting.
6 years ago
Adriaan de Groot 1859808227 Move development-related scripts, tools, into ci/ 7 years ago