[FFmpeg-devel] [PATCH] [RFC] global/clang-format: Add .clang-format configuration for consistent formatting
softworkz .
softworkz at hotmail.com
Tue Apr 22 02:56:28 EEST 2025
> -----Original Message-----
> From: softworkz <ffmpegagent at gmail.com>
> Sent: Dienstag, 22. April 2025 01:53
> To: ffmpeg-devel at ffmpeg.org
> Cc: softworkz <softworkz at hotmail.com>; softworkz
> <softworkz at hotmail.com>
> Subject: [PATCH] [RFC] global/clang-format: Add .clang-format
> configuration for consistent formatting
>
> From: softworkz <softworkz at hotmail.com>
>
> This is an attempt to create and establish a common definition for
> code formatting. Besides .clang-format, there don't seem to be many
> good candidates for C when looking for non-proprietary open-source
> solutions, so there's wasn't really much choice.
>
> I have tried to configure everything according to the current
> guidelines, to which it should come pretty close. There are a few
> things for which I couldn't find any FFmpeg rules, or where it wasn't
> clear and I made choices that seemed reasonable.
>
> This is in no way intended to prescribe any formatting detail rules,
> it's rather meant as an invitation to collaborate on this and ideally
> end up with something "official" that allows to check and fix
> formatting in CI flows or Patchwork and locally for everybody using
> editors with clang-format support or using clang-format from the
> command line.
>
> Signed-off-by: softworkz <softworkz at hotmail.com>
> ---
> [RFC] global/clang-format: Add .clang-format configuration for
> consistent formatting
>
> This is an attempt to create and establish a common definition for
> code
> formatting. Besides .clang-format, there don't seem to be many
> good
> candidates for C when looking for non-proprietary open-source
> solutions,
> so there's wasn't really much choice.
>
> I have tried to configure everything according to the current
> guidelines, to which it should come pretty close. There are a few
> things
> for which I couldn't find any FFmpeg rules, or where it wasn't
> clear and
> I made choices that seemed reasonable.
>
> This is in no way intended to prescribe any formatting detail
> rules,
> it's rather meant as an invitation to collaborate on this and
> ideally
> end up with something "official" that allows to check and fix
> formatting
> in CI flows or Patchwork and locally for everybody using editors
> with
> clang-format support or using clang-format from the command line.
>
> Signed-off-by: softworkz softworkz at hotmail.com
>
> Published-As: https://github.com/ffstaging/FFmpeg/releases/tag/pr-
> ffstaging-74%2Fsoftworkz%2Fsubmit_clang_format-v1
> Fetch-It-Via: git fetch https://github.com/ffstaging/FFmpeg pr-
> ffstaging-74/softworkz/submit_clang_format-v1
> Pull-Request: https://github.com/ffstaging/FFmpeg/pull/74
>
> .clang-format | 81
> +++++++++++++++++++++++++++++++++++++++++++++++++++
> 1 file changed, 81 insertions(+)
> create mode 100644 .clang-format
>
Here's the file as attachment.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: .clang-format.zip
Type: application/x-zip-compressed
Size: 1010 bytes
Desc: .clang-format.zip
URL: <https://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20250421/08cd85d7/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: .clang-format.tar.gz
Type: application/x-gzip
Size: 967 bytes
Desc: .clang-format.tar.gz
URL: <https://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20250421/08cd85d7/attachment-0001.bin>
More information about the ffmpeg-devel
mailing list