Haiku-format is a customized clang-format for the Haiku coding guidelines.
-
Check out haiku-format:
git clone https://github.com/owenca/haiku-format
-
Build haiku-format:
-
cd haiku-format
-
build.sh
-
-
Install haiku-format:
install.sh
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.
You can run git haiku-format
before git push
. For more info, run git haiku-format -h
. Also,
see here for a demo.