Adopt `clang-format`

Open
#649 5 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
35/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Stale
Tech stack
c, git
Domain
tooling

Research direction

Read the .clang-format file added for the cxbe tool in issue #648 and the linked nxdk or winapi style discussion. Work out how broadly that formatting style should apply and whether enforcement belongs in githooks or CI; the issue does not name specific files or tests. Done means a project-wide formatting approach and a way to check that pull requests do not introduce nonconformant code.

Written by the indexing model from the issue text.

Description

#648 added a .clang-format file to the cxbe tool in an attempt to cut down contributor/maintainer time spent on format nitpicking.

Ideally this approach could be adopted broadly (using the style from the nxdk or winapi libs https://github.com/XboxDev/nxdk/pull/499#discussion_r724451981) and could be enforced through githooks or a CI step verifying that PRs do not introduce non-conformant code.

Dominant language
C
Stars
600
Forks
97
Avg merge
11h 48m
Merged PRs (30d)
2

Getting set up

  • Ships a Dockerfile or Docker Compose file
  • No pull request template
  • No contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from XboxDev/nxdk

All issues in XboxDev/nxdk

Similar issues

More C issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.