[FFmpeg-devel] [PATCH] [RFC] global/clang-format: Add .clang-format configuration for consistent formatting
Jacob Lifshay
programmerjake at gmail.com
Sat Jul 26 06:43:22 EEST 2025
Replying to softworkz from the mailing list archive:
I tried out the .clang-format file you proposed and I ended up using:
AlignConsecutiveDeclarations: Consecutive
instead of:
> +AlignConsecutiveDeclarations: AcrossEmptyLinesAndComments
since otherwise clang-format will indent the function names for most
of a header file like so, which imo just wastes horizontal space:
> /** <docs> */
> int av_foo();
>
> /** <docs> */
> int av_bar();
>
> /** <docs> */
> LongTypeName av_baz();
Jacob
More information about the ffmpeg-devel
mailing list