hanchenye-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
basic.link Diagnose -Wunused-value based on CFG reachability 2021-09-28 10:00:15 -07:00
basic.lookup
basic.scope
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