Skip to content

Conversation

@quic-kdybcio
Copy link

Loosely based on & supersedes #136

The config file generally resembles the code style one would expect in the kernel source tree

The last commit is a result of manually running the command that the build workflow executes and can be verified independently, the clang-format version I ran is precisely Ubuntu clang-format version 20.1.8 (++20250804090239+87f0227cb601-1~exp1~20250804210352.139)

@quic-kdybcio
Copy link
Author

On projects using GNU make, it's commonplace to add a make format target, I don't know how to integrate that with automake but it'd probably be useful too..

@quic-kdybcio
Copy link
Author

Pushed a change to remove spaces before braces (which we clearly don't want)

@Chennak-quic
Copy link
Contributor

Please resolve merge conflicts

@quic-kdybcio quic-kdybcio force-pushed the topic/clang-format branch 2 times, most recently from 3561344 to 3144455 Compare September 11, 2025 13:50
@github-actions
Copy link

This pull request has been marked as stale due to 60 days of inactivity.

@github-actions github-actions bot added the Stale label Nov 11, 2025
Formatting tools help maintain style consistency across the codebase.
Add a config for the de-facto standard formatter, clang-format.

Loosely based on the kernel code style

Signed-off-by: Konrad Dybcio <konrad.dybcio@oss.qualcomm.com>
Loosely based on qualcomm#136

Signed-off-by: Konrad Dybcio <konrad.dybcio@oss.qualcomm.com>
@quic-kdybcio
Copy link
Author

I updated a couple more bits around line wrapping and spaces around conditionals to better match the Linux style. Please take a look at the result (last commit) and check if you see anything obviously out of style

Signed-off-by: Konrad Dybcio <konrad.dybcio@oss.qualcomm.com>
@quic-kdybcio
Copy link
Author

Forcepushed with missing DCO fixed

@github-actions github-actions bot removed the Stale label Dec 3, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants