Page MenuHomeFreeBSD

[draft] run clang-format over sys/dev/sound
Needs ReviewPublic

Authored by emaste on Apr 30 2024, 4:53 PM.
Tags
None
Referenced Files
Unknown Object (File)
Sat, Jul 25, 2:25 AM
Unknown Object (File)
Wed, Jul 22, 8:42 PM
Unknown Object (File)
Sun, Jul 19, 5:33 PM
Unknown Object (File)
Sat, Jul 18, 10:45 AM
Unknown Object (File)
Jun 22 2026, 11:56 PM
Unknown Object (File)
May 28 2026, 11:06 PM
Unknown Object (File)
May 28 2026, 11:05 PM
Unknown Object (File)
May 28 2026, 11:05 PM
Subscribers
None
This revision needs review, but there are no reviewers specified.

Details

Reviewers
None
Summary

Continuing experiments with clang-format (D30260, D26340), let me try running it over a reasonably large collection of kernel code. This review exists just to examine the sorts of things clang-format does, and identify potential changes we might want to have done upstream.

Diff Detail

Lint
Lint Skipped
Unit
Tests Skipped

Event Timeline

emaste created this revision.
sys/dev/sound/fdt/audio_soc.c
28

.clang-format has include file ordering rules, and puts "opt_*.h" first. style(9) does not mention opt_*.h at all

190

Undesired extra space fixed by D29870

276–277

this is unfortunate

377–379

this is a mess

398–399

extra 2nd level indent

sys/dev/sound/pci/allegro_code.h
1403

apparently clang-format uses a trailing comma as an indicator that array initialization should be done one-per-line