This is a fork of clang-format with customizations to implement the coding style followed by Haiku and several applications running on Haiku.
haiku-format looks for a configuration file '.haiku-format' or '_haiku-format', going up the file hierarchy starting with the folder of the file you want to format. It defaults to ~/config/settings/.haiku-format.