[PATCH 1/1] doc: .clang-format description
Heinrich Schuchardt
heinrich.schuchardt at canonical.com
Fri Apr 24 15:27:43 CEST 2026
On 4/24/26 15:10, Quentin Schulz wrote:
> Hi Heinrich,
>
> On 4/24/26 3:05 PM, Heinrich Schuchardt wrote:
>> We cannot use .clang-format without modification. For instance U-Boot
>> has some for each macros that Linux does not have.
>>
>
> Uh?
>
> sha256sum ../u-boot/.clang-format <(git show v6.16:.clang-format)
> a7a2d4f21d9ff4696498077b71b5589a44b95697eb80c013a94768d05f7d8b54 ../u-
> boot/.clang-format
> a7a2d4f21d9ff4696498077b71b5589a44b95697eb80c013a94768d05f7d8b54 /proc/
> self/fd/11
>
> Cheers,
> Quentin
Try to format anything with one of these macros:
+ # U-Boot specific
+ - 'alist_for_each'
+ - 'alist_for_each_filter'
+ - 'for_each_bl_params_node'
+ - 'ofnode_for_each_prop'
+ - 'ofnode_for_each_subnode'
+ - 'ofnode_for_each_compatible_node'
+ - 'dev_for_each_subnode'
+ - 'dev_for_each_property'
+ - 'fdt_for_each_node_by_compatible'
+ - 'for_each_console_dev'
+ - 'mtd_for_each_device'
+ - 'for_each_tpm_device'
I have created a separate patch for .clang-format but unfortunately our
list server is down.
Best regards
Heinrich
More information about the U-Boot
mailing list