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

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

📋 Pull Request Information

Original PR: https://github.com/CCExtractor/ccextractor/pull/540
Author: @DanilaFe
Created: 12/15/2016
Status: Closed

Base: masterHead: propose-clang-format


📝 Commits (2)

  • d22cfcc Create a hypothetical clang-format file.
  • 00a1e0f Remove extra, apparently useless configuration option.

📊 Changes

1 file changed (+5 additions, -0 deletions)

View changed files

.clang-format (+5 -0)

📄 Description

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.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/CCExtractor/ccextractor/pull/540 **Author:** [@DanilaFe](https://github.com/DanilaFe) **Created:** 12/15/2016 **Status:** ❌ Closed **Base:** `master` ← **Head:** `propose-clang-format` --- ### 📝 Commits (2) - [`d22cfcc`](https://github.com/CCExtractor/ccextractor/commit/d22cfcc485c7233085a817b98fd88444dbf0a2b6) Create a hypothetical clang-format file. - [`00a1e0f`](https://github.com/CCExtractor/ccextractor/commit/00a1e0f46d5d8911fca9cbc737355b8f8d90e80c) Remove extra, apparently useless configuration option. ### 📊 Changes **1 file changed** (+5 additions, -0 deletions) <details> <summary>View changed files</summary> ➕ `.clang-format` (+5 -0) </details> ### 📄 Description 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. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
claunia added the pull-request label 2026-01-29 17:16:03 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/ccextractor#1369