llvm-project/clang/include
Mark de Wever b231396122 [Sema] Diagnose annotating `if constexpr` with a likelihood attribute
Adds a diagnostic when the user annotates an `if constexpr` with a
likelihood attribute. The `if constexpr` statement is evaluated at compile
time so the attribute has no effect. Annotating the accompanied `else`
with a likelihood attribute has the same effect as annotating a generic
statement. Since the attribute there is most likely not intended, a
diagnostic will be issued. Since the attributes can't conflict, the
"conflict" won't be diagnosed for an `if constexpr`.

Differential Revision: https://reviews.llvm.org/D90336
2020-10-31 17:51:36 +01:00
..
clang [Sema] Diagnose annotating `if constexpr` with a likelihood attribute 2020-10-31 17:51:36 +01:00
clang-c Address ABI issues introduced with CXCursor_CXXAddrspaceCastExpr 2020-10-30 14:12:01 +00:00
CMakeLists.txt