]> git.ipfire.org Git - thirdparty/kmod.git/commitdiff
clang-format: update attribute macros
authorEmil Velikov <emil.l.velikov@gmail.com>
Tue, 3 Jun 2025 17:55:03 +0000 (18:55 +0100)
committerLucas De Marchi <lucas.de.marchi@gmail.com>
Wed, 11 Jun 2025 12:54:40 +0000 (07:54 -0500)
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 <emil.l.velikov@gmail.com>
Link: https://github.com/kmod-project/kmod/pull/361
Signed-off-by: Lucas De Marchi <lucas.de.marchi@gmail.com>
.clang-format

index 7b0589688b24a3cd743cfbdc2f8b45293eb9d69f..d964045a53a0f1edb5f6c6d6646ea92ed6509ca7 100644 (file)
@@ -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