Skip to content

Conversation

@Rangi42
Copy link
Member

@Rangi42 Rangi42 commented Dec 2, 2025

Based on pret/pokecrystal#1205

There are probably more useful properties we could copy from the clang-format docs or rgbds. It will likely also need tweaking after trying to format the other tools in pokecrystal.

The 200-character line length is unnecessarily long, but going down to 100 or 120 or even 140 causes some wrapping in deeply-nested complex for loops that we may not want.

Some changes cannot be made by clang-format (except maybe the bleeding-edge latest version), so must be done manually, including:

  • Insert trailing comma after the last item in a wrapped long sequence (e.g. the {0} at the end of long option arrays or inline enum declarations)
  • To wrap long function parameters with one parameter per line, you need // clang-format off

@Rangi42 Rangi42 requested review from dannye and vulcandth December 2, 2025 17:05
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.

1 participant