Skip to content

owenca/haiku-format

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

47 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Customized clang-format for Haiku

Haiku-format is a customized clang-format for the Haiku coding guidelines.

Building and installing haiku-format on Haiku R1/beta4 (64-bit)

  1. Check out haiku-format:

    • git clone https://github.com/owenca/haiku-format
  2. Build haiku-format:

    • cd haiku-format

    • build.sh

  3. Install haiku-format:

    • install.sh

Using haiku-format

Warning

Please remove existing .haiku-format config files if you installed v10.0.1 before.

Haiku-format is a superset of clang-format with the default style set to Haiku. You can override any default style options with .haiku-format config files. For example:

# for legacy code
ColumnLimit: 80

# for non-gcc2
IntegerLiteralSeparator:
  Binary: 4
  Decimal: 3
  DecimalMinDigits: 5
  Hex: 2

See the clang-format documentation for more info.

Using git-haiku-format

You can run git haiku-format before git push. For more info, run git haiku-format -h. Also, see here for a demo.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages