Skip to content

Implement clang-format#107

Draft
L1ghtmann wants to merge 2 commits into
theos:masterfrom
L1ghtmann:master
Draft

Implement clang-format#107
L1ghtmann wants to merge 2 commits into
theos:masterfrom
L1ghtmann:master

Conversation

@L1ghtmann

@L1ghtmann L1ghtmann commented Jun 29, 2026

Copy link
Copy Markdown
Member

What does this implement/fix? Explain your changes.

Implements a .clang-format file and does a first pass. Based largely on discussion in #24 and #20. Based on WebKit clang-format.

Checklist

  • New code follows the code rules
  • I've added modulemaps for any new libraries (e.g. see libactivator/module.modulemap): it should be possible to @import MyLibrary; in ObjC, or import MyLibrary in Swift.
  • My contribution is code written by myself from reverse-engineered headers, licensed into the Public Domain as per LICENSE.md; or, code written by myself / taken from an existing project, released under an OSI-approved license, and I've added relevant licensing credit to LICENSE.md

Does this close any currently open issues?

Will eventually resolve #24

Any relevant logs, error output, etc?

Any other comments?

Most edits appear to be a tab->space conversion or destruction of #define formatting. I was unable to find a way to enforce our apparent preference there, but I am quite unfamiliar with header formatting and the various specs/associated tooling.

Changes and opinions are more than welcome! Just wanted to get the ball rolling.

Additionally, we will want to apply an exclusion list (comprised of Apple headers, etc) if/when we implement this into a workflow, as we do for compilation now.

Where has this been tested?

Operating System:

Platform:

Target Platform:

Toolchain Version:

SDK Version:

@L1ghtmann L1ghtmann marked this pull request as draft June 29, 2026 23:23
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.

Code Style

1 participant