Skip to content

Conversation

@tmc
Copy link
Contributor

@tmc tmc commented Oct 29, 2025

Adds .clang-format configuration with LLVM-based style settings and applies consistent formatting to all C test files. No functional changes, only code style improvements for better readability and consistency.

Adds .clang-format configuration with LLVM-based style settings and
applies consistent formatting to all C test files. No functional
changes, only code style improvements for better readability and
consistency.
@hajimehoshi
Copy link
Member

We need more discussion about C format.

@tmc
Copy link
Contributor Author

tmc commented Oct 30, 2025

We need more discussion about C format.

I have no strong opinions, just would like to have some standard as the current C is a bit non-uniform.

@TotallyGamerJet
Copy link
Collaborator

I agree having a standard would be nice but not super strong on what that looks like. If there was one that matched gofmt rules that'd be great

@hajimehoshi
Copy link
Member

If there was one that matched gofmt rules that'd be great

I agree, but there seems no clang format for Go. At least, the indentation should be tab, but this would cause a lot of changes in this repository.

@hajimehoshi
Copy link
Member

Let's revisit this after we merge all the bug fixes, since fixing the format would make it hard to cherry-pick a fix to the stable branch.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

3 participants