From: Emil Velikov Date: Tue, 3 Jun 2025 17:55:03 +0000 (+0100) Subject: clang-format: update attribute macros X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=32008fc497f5260a580873fb403d9f100c98bc85;p=thirdparty%2Fkmod.git clang-format: update attribute macros Use the command to update the attribute macros list. Seemingly we've updated the list manually, which meant that a) some symbols were not annotated the expected way and b) some macros were not picked up. First we start with auto-generating the list, the other issues will be handled as follow-ups. Signed-off-by: Emil Velikov Link: https://github.com/kmod-project/kmod/pull/361 Signed-off-by: Lucas De Marchi --- diff --git a/.clang-format b/.clang-format index 7b058968..d964045a 100644 --- a/.clang-format +++ b/.clang-format @@ -80,15 +80,15 @@ ForEachMacros: AttributeMacros: - KMOD_EXPORT - TS_EXPORT - - _aligned_ - - _alignedptr_ - _always_inline_ + - _clang_suppress_ + - _clang_suppress_alloc_ - _cleanup_ - _must_check_ - _nonnull_ - _nonnull_all_ - _printf_format_ - - _section_ + - _sentinel_ - noreturn IncludeBlocks: Preserve