This is a known issue. I also mentioned it here. The short answer is to either use // clang-format off
or change the Haiku coding style (or not use clang-format). IMO, although this style may be good for the pre-C++11 language standards, it probably can’t handle the function declaration syntax in later standards.
2 Likes