clang-format: reformat code with clang-format 15.0.4-1.fc37

This is the version shipped in Fedora 37. As Fedora 37 is now out, the
core developers switch to it. Our gitlab-ci will also use that as base
image for the check-{patch.tree} tests and to generate the pages. There
is a need that everybody agrees on which clang-format version to use,
and that version should be the one of the currently used Fedora release.

Also update the used Fedora image in "contrib/scripts/nm-code-format-container.sh"
script.

The gitlab-ci still needs update in the following commit. The change
in isolation will break the "check-tree" test.
This commit is contained in:
Thomas Haller 2022-11-19 11:14:07 +01:00
parent fe7bea9685
commit 3fb8c0f614
No known key found for this signature in database
GPG key ID: 29C2366E4DFC5728
28 changed files with 128 additions and 126 deletions

View file

@ -10,7 +10,7 @@ die() {
DIR="$(realpath "$(dirname "$0")/../../")"
cd "$DIR"
FEDORA_VERSION=36
FEDORA_VERSION=37
PODNAME="nm-code-format-f$FEDORA_VERSION"

View file

@ -208,7 +208,8 @@ NMDevice *nm_device_factory_create_device(NMDeviceFactory *factory,
\
NM_DEVICE_FACTORY_DECLARE_TYPES(st_code) \
\
static void nm_##lower##_device_factory_init(NM##mixed##DeviceFactory *self) {} \
static void nm_##lower##_device_factory_init(NM##mixed##DeviceFactory *self) \
{} \
\
static void nm_##lower##_device_factory_class_init(NM##mixed##DeviceFactoryClass *klass) \
{ \

View file

@ -2723,7 +2723,8 @@ _nmtst_variant_new_vardict(int dummy, ...)
G_STMT_END
#else
#define _nmtst_assert_variant_bytestring_cmp_str(_ptr, _ptr2, _len) \
G_STMT_START {} \
G_STMT_START \
{} \
G_STMT_END
#endif