Page MenuHomeFreeBSD

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

Authored by emaste on Tue, Apr 30, 4:53 PM.
Tags
None
Referenced Files
Unknown Object (File)
Fri, May 3, 6:09 AM
Unknown Object (File)
Wed, May 1, 12:51 AM
Unknown Object (File)
Wed, May 1, 12:51 AM
Unknown Object (File)
Tue, Apr 30, 9:45 PM
Unknown Object (File)
Tue, Apr 30, 8: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