treewide: apply formatting changes with clang-format
authorBartosz Golaszewski <bartosz.golaszewski@linaro.org>
Wed, 7 Dec 2022 08:45:06 +0000 (09:45 +0100)
committerBartosz Golaszewski <bartosz.golaszewski@linaro.org>
Wed, 7 Dec 2022 08:45:06 +0000 (09:45 +0100)
commit3fe7de7a65cea6808fad718b601a7e92f39b954e
treeb33872d1f7c6f21688cfcea591b52765cea133d7
parente065ef962ab8cf7b66b62746abc9e0616db978bb
treewide: apply formatting changes with clang-format

Use linux kernel's .clang-format file to automatically improve the coding
style of libgpiod's C code base. We don't import the file into the
repository as it's not perfect and certain converted fragments were
rolled back because they looked better before the conversion.

Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@linaro.org>
23 files changed:
lib/edge-event.c
lib/internal.c
lib/internal.h
lib/line-config.c
lib/line-settings.c
tests/gpiod-test-sim.c
tests/gpiosim/gpiosim.c
tests/gpiosim/gpiosim.h
tests/tests-chip-info.c
tests/tests-edge-event.c
tests/tests-info-event.c
tests/tests-line-config.c
tests/tests-line-info.c
tests/tests-line-request.c
tests/tests-line-settings.c
tests/tests-request-config.c
tools/gpiodetect.c
tools/gpioinfo.c
tools/gpiomon.c
tools/gpionotify.c
tools/gpioset.c
tools/tools-common.c
tools/tools-common.h