Still some formatting differences, but they look legit. It seems
older versions of clang-format did not process preprocessor
conditionals correctly in all cases.
BreakConstructorInitializers: AfterColon
ConstructorInitializerAllOnOneLineOrOnePerLine: true
SpaceInEmptyBlock: false
+
+# I'd rather have the default (Minimum 1) here, but that causes quite some churn
+SpacesInLineCommentPrefix:
+ Minimum: 0
+ Maximum: -1
+
- name: Update dependencies
run: |
sudo apt-get update
- sudo apt-get -qq --no-install-recommends install git clang-19
+ sudo apt-get -qq --no-install-recommends install git clang-format-19
- name: Run format-code on files that should be formatted
run: |
./build-scripts/format-code $(find . -type f -name '*.[ch][ch]' | sort | comm -23 - .not-formatted)
verbose=0
fi
-FORMAT=clang-format-11
+FORMAT=clang-format-19
if ! which $FORMAT 2> /dev/null; then
FORMAT=clang-format
fi