attributes after an if like:
if (...) [[likely]]
are now applied on the if instead of the following statement.
i added the likely attribute in the necessary places Attr.td, AttrDocs.td.
i added a diagnostics kind for C++2a and for likely not used on an if statement.
I think this should have a C spelling as well, so I'd probably go with: [CXX11<"", "likely", 201903L>, Clang<"likely">] and then similar for unlikely. I would probably use the same semantic attribute for both (so add both spellings and an accessor to differentiate). Rather than naming the attribute Likely, I would go with Likelihood so it covers both spellings more naturally.