From 32008fc497f5260a580873fb403d9f100c98bc85 Mon Sep 17 00:00:00 2001 From: Emil Velikov Date: Tue, 3 Jun 2025 18:55:03 +0100 Subject: [PATCH] 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 --- .clang-format | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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 -- 2.47.2