https://bugs.llvm.org/show_bug.cgi?id=50069
When clang-tidy sees:
if (true) [[unlikely]] {
...
}It thinks the braces are missing and add them again.
if (true) { [[unlikely]] {
...
}
}This revision aims to prevent that incorrect code generation
Can you also add tests that show we do the correct thing for:
where there were no braces involved? We should ensure that it wants to insert the braces after the attribute.