]> git.baikalelectronics.ru Git - kernel.git/commit
selftests/landlock: Add clang-format exceptions
authorMickaël Salaün <mic@digikod.net>
Fri, 6 May 2022 16:05:09 +0000 (18:05 +0200)
committerMickaël Salaün <mic@digikod.net>
Mon, 9 May 2022 10:31:11 +0000 (12:31 +0200)
commit9f9c517d25dd2abe664355142fad46482ac7e016
tree9b7f6b96b4be732259a02044286335a1b31ab125
parent803cf03271a65b9c57455c7b6e4985d10ad4fb28
selftests/landlock: Add clang-format exceptions

In preparation to a following commit, add clang-format on and
clang-format off stanzas around constant definitions and the TEST_F_FORK
macro.  This enables to keep aligned values, which is much more readable
than packed definitions.

Add other clang-format exceptions for FIXTURE() and
FIXTURE_VARIANT_ADD() declarations to force space before open brace,
which is reported by checkpatch.pl .

Link: https://lore.kernel.org/r/20220506160513.523257-4-mic@digikod.net
Cc: stable@vger.kernel.org
Signed-off-by: Mickaël Salaün <mic@digikod.net>
tools/testing/selftests/landlock/common.h
tools/testing/selftests/landlock/fs_test.c
tools/testing/selftests/landlock/ptrace_test.c