llvm-project/clang/test/CXX
Yuanfang Chen cbbf2e8c8a Diagnose -Wunused-value based on CFG reachability
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-22 14:38:06 -07:00
..
basic Diagnose -Wunused-value based on CFG reachability 2021-09-22 14:38:06 -07:00
class PR51874: Fix diagnostics for defaulted, implicitly deleted 'operator!='. 2021-09-15 15:43:02 -07:00
class.access [clang] Implement P0692R1 from C++20 (access checking on specializations and instantiations) 2021-08-10 19:20:50 +04:00
class.derived Defer checking for mismatches between the deletedness of and overriding 2020-03-12 13:07:22 -07:00
conv [Sema][C++] Propagate conversion kind to specialize the diagnostics 2020-02-25 16:05:37 +00:00
cpp [Clang] Add __STDCPP_THREADS__ to standard predefine macros 2020-11-22 16:05:53 -08:00
dcl [clang] fix transformation of template arguments of 'auto' type constraints 2021-09-08 03:22:34 +02:00
dcl.dcl [Clang][DiagnosticSemaKinds] combine diagnostic texts 2021-08-06 13:58:21 -07:00
dcl.decl Remove unnecessary triple from test 2021-06-15 09:49:45 -07:00
drs Diagnose -Wunused-value based on CFG reachability 2021-09-22 14:38:06 -07:00
except Disallow narrowing conversions to bool in noexcept specififers 2021-08-06 10:26:39 -04:00
expr [clang] fix crash on template instantiation of invalid requires expressions 2021-08-03 23:16:04 +02:00
lex Add type information to integral template argument if required. 2021-05-12 19:00:08 +00:00
module Improve diagnostics for missing import / #include of module. 2020-04-28 18:41:14 -07:00
modules-ts Fix a diagnoses-valid bug with using declarations 2021-06-04 15:52:07 -04:00
over [c++20] Further extend the set of comparisons broken by C++20 that we 2020-03-20 14:22:48 -07:00
special [clang] tests: cleanup, update and add some new ones 2021-04-09 17:24:08 +02:00
stmt.stmt Partially implement P1401R5 (Narrowing contextual conversions to bool) 2021-07-12 08:06:27 -04:00
temp Diagnose -Wunused-value based on CFG reachability 2021-09-22 14:38:06 -07:00