[PR #540] Propose the use of clang-format. #1374

Open
opened 2026-01-29 17:16:04 +00:00 by claunia · 0 comments
Owner

Original Pull Request: https://github.com/CCExtractor/ccextractor/pull/540

State: closed
Merged: No


Clang-format is an automatic code formatting tool.

It would greatly ease the creation of consistent code: it follows exactly the rules in the .clang-format file. Style changes would be as easily applied as editing the .clang-format file and re-running the clang-format command:

clang-format src/lib_ccx/*.c src/lib_ccx/*.h src/ccextractor.c -i

The file that I'm proposing is a draft that can be easily customized by the maintainers to fit the code style they wanted for the project: I attempted to configure it such that it was similar to what the style appeared to be before.

clang-format is definitely a command line tool that works on macOS and Ubuntu, and to the best of my knowledge, it's also available as a Visual Studio plugin on Windows.

**Original Pull Request:** https://github.com/CCExtractor/ccextractor/pull/540 **State:** closed **Merged:** No --- Clang-format is an automatic code formatting tool. It would greatly ease the creation of consistent code: it follows exactly the rules in the .clang-format file. Style changes would be as easily applied as editing the .clang-format file and re-running the clang-format command: ```Bash clang-format src/lib_ccx/*.c src/lib_ccx/*.h src/ccextractor.c -i ``` The file that I'm proposing is a draft that can be easily customized by the maintainers to fit the code style they wanted for the project: I attempted to configure it such that it was similar to what the style appeared to be before. `clang-format` is definitely a command line tool that works on macOS and Ubuntu, and to the best of my knowledge, it's also available as a Visual Studio plugin on Windows.
claunia added the pull-request label 2026-01-29 17:16:04 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/ccextractor#1374