clang-format break before “unlikely” unexpectedly
Clash Royale CLAN TAG#URR8PPP
clang-format break before “unlikely” unexpectedly
It is my former code:
if unlikely(a > b) throw "a > b";
after clang-format, it becomes:
if
unlikely(a > b) throw "a > b";
Which option in .clang-format to stop the break before "unlikely" ?
if (unlikely(...))
@Mat Thanks, it helps!
– flowyi
Aug 13 at 7:31
By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.
if (unlikely(...))
should fix that and make your code less strange.– Mat
Aug 13 at 5:29