llvm-project/clang/test/CXX/basic/basic.link
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
..
p1.cpp
p2.cpp
p3.cpp
p6.cpp
p7.cpp
p8.cpp Diagnose -Wunused-value based on CFG reachability 2021-09-28 10:00:15 -07:00
p9.cpp