.gitlab-ci.yml: add clang-format pipeline
Fixes #950 (closed)
The list of coding guidelines that cannot be upheld with .clang-format. If you know otherwise, please contribute! Also, please test this .clang-format for false positives if you can!
- "Except for one single newline at the end of the file, other empty lines (at the beginning and the end) of a file are not allowed."
- "Use
\t
instead of literal tab inside the source code strings." - "Don't use curly braces for single statement blocks"
- All three from "The "no block for single statements" rule has only three exceptions"
- "Using blocks to group code is discouraged and must not be used in newly written code."
- "Do not check boolean values for equality:" - it's more of a
clang-tidy
kind of thing - "When conditions split over multiple lines, the logical operators should always go at the end of the line."
- Sorting includes in blocks (the only possible option is to sort them ignoring the blocks alphabetically)
Edited by Asa