This patch assigns switch-related parts of the -Wenum-compare diagnostic to a new flag -Wenum-compare-switch.
-Wenum-compare-switch is put into the same group as -Wenum-compare so that -W(no-)enum-compare affects both.
| Paths 
 |  Differential  D36526  
[Sema] Assign new flag -Wenum-compare-switch to switch-related parts of -Wenum-compare ClosedPublic Authored by rnkovacs on Aug 9 2017, 8:43 AM. 
Details 
 Summary This patch assigns switch-related parts of the -Wenum-compare diagnostic to a new flag -Wenum-compare-switch. -Wenum-compare-switch is put into the same group as -Wenum-compare so that -W(no-)enum-compare affects both. 
Diff Detail 
 Event TimelineThis revision is now accepted and ready to land.Aug 9 2017, 1:08 PM Closed by commit rL310521: [Sema] Assign new flag -Wenum-compare-switch to switch-related parts of -Wenum… (authored by xazax).  ·  Explain WhyAug 9 2017, 1:57 PM This revision was automatically updated to reflect the committed changes. 
Revision Contents 
 
Diff 110473 cfe/trunk/include/clang/Basic/DiagnosticGroups.td
 cfe/trunk/include/clang/Basic/DiagnosticSemaKinds.td
 
 cfe/trunk/lib/Sema/SemaStmt.cpp
 cfe/trunk/test/Sema/switch.c
 cfe/trunk/test/SemaCXX/warn-enum-compare.cpp
 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||