clang-format break before “unlikely” unexpectedly

The name of the pictureThe name of the pictureThe name of the pictureClash 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(...)) should fix that and make your code less strange.
– Mat
Aug 13 at 5:29


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.

Popular posts from this blog

Firebase Auth - with Email and Password - Check user already registered

Dynamically update html content plain JS

Creating a leaderboard in HTML/JS