clang-format: Custom Language

I have been using clang-format in a certain C++ project successfully and everything is great… but we also need support for a custom scripting language.

This scripting language is much like C++, and clang-format works fine for the most part except for some specific constructs (“a ?? b” is an example of such a construct).

How would we go along adding support for this specific language in clang-format?