Skip to content

Conversation

@brendan-nasa
Copy link
Contributor

@brendan-nasa brendan-nasa commented Dec 14, 2025

  • An initial .clang-format1 (ci script to follow)
  • intent:
    • pick a style
    • stick to it for all new/modified code
    • trick approaches consistency with every merge :)
    • no more caring about how ugly/pretty your code is. run git clang-format before commit and be done with it
  • Choice of BasedOnStyle is ultimately arbitrary, but current trick codebase matches WebKit style2 closest3
  • Code styles can be explored at https://clang-format-configurator.site/
  • Only a bare minimum, first step to adopting more automated tooling (clang-tidy linter would be the next step)

Footnotes

  1. its not allman, but it is a nice middle ground :)

  2. See WebKit's style guidelines for what's included

  3. alandefreitas/clang-unformat was run on trick repo and webkit resulted in least number of lines changed

@coveralls
Copy link

Coverage Status

coverage: 55.913% (-0.009%) from 55.922%
when pulling 40ca011 on clang-format-proposal
into 3674388 on master.

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.

3 participants