llvm-project/clang/test/CXX/basic
Yuanfang Chen 27a972a699 Diagnose -Wunused-value based on CFG reachability
(This relands 59337263ab and makes sure comma operator
 diagnostics are suppressed in a SFINAE context.)

While at it, add the diagnosis message "left operand of comma operator has no effect" (used by GCC) for comma operator.

This also makes Clang diagnose in the constant evaluation context which aligns with GCC/MSVC behavior. (https://godbolt.org/z/7zxb8Tx96)

Reviewed By: aaron.ballman

Differential Revision: https://reviews.llvm.org/D103938
2021-09-28 10:00:15 -07:00
..
basic.def
basic.def.odr Implement P1937 consteval in unevaluated contexts 2021-08-06 10:29:28 -04:00
basic.link Diagnose -Wunused-value based on CFG reachability 2021-09-28 10:00:15 -07:00
basic.lookup
basic.scope PR48002: Fix injection of elaborated-type-specifiers within local 2020-10-28 14:29:45 -07:00
basic.start
basic.stc/basic.stc.dynamic
basic.types Improve type printing of const arrays to normalize array-of-const and const-array 2021-09-13 19:17:05 -07:00