]> git.ipfire.org Git - thirdparty/kmod.git/commitdiff
clang-format: Add new attribute macros
authorLucas De Marchi <lucas.de.marchi@gmail.com>
Mon, 6 Jan 2025 15:16:13 +0000 (09:16 -0600)
committerLucas De Marchi <lucas.de.marchi@gmail.com>
Mon, 6 Jan 2025 15:16:36 +0000 (09:16 -0600)
Commits 44855d7 ("shared/macro: Add _alignedptr_") and d7e7c4c
("shared/macro: Add macros for more attributes") added the macros, but
forgot to add them to the clang-format configuration.

Suggested-by: Emil Velikov <emil.l.velikov@gmail.com>
Signed-off-by: Lucas De Marchi <lucas.de.marchi@gmail.com>
.clang-format

index 06fd6f8a6300a7cc3eec7b85908684881998cd2c..7b0589688b24a3cd743cfbdc2f8b45293eb9d69f 100644 (file)
@@ -80,12 +80,15 @@ ForEachMacros:
 AttributeMacros:
   - KMOD_EXPORT
   - TS_EXPORT
+  - _aligned_
+  - _alignedptr_
   - _always_inline_
   - _cleanup_
   - _must_check_
   - _nonnull_
   - _nonnull_all_
   - _printf_format_
+  - _section_
   - noreturn
 
 IncludeBlocks: Preserve