Immediate-Mode-UI / Immediate-Mode-UI/Nuklear

Add a clang-format format file

Open
#739 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
C
Stars
11.4k
Forks
686
Avg merge
4d 1h
Merged PRs (30d)
3

Description

I was looking to make a improved version of https://github.com/Immediate-Mode-UI/Nuklear/pull/50, which I needed to have implemented along with the knob widget change for a mini DAW implementation. I was also considering making a SDL3 GPU api PR in the future if no one else does it. However, I noticed that there is no .clang-format file and I am assuming the defaults for clang-format would mess up any PR that it is applied to.

This would probably introduce some formatting changes, but it would make it easier to contribute if formatting on saving is enabled (a feature in most IDEs). This also means there would be a standard for styling code, instead of just saying it has to be "consistent".

Contributor guide

Open the 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.

Research direction

Review the repository’s existing C style and the formatting implications described in the issue; compare with linked PR #50 before choosing the scope. Add a root .clang-format that reflects the project’s agreed style, then run clang-format to check that it avoids unrelated formatting changes.

Written by the indexing model from the issue text.

Assessment

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.