diff options
author | Gabor Horvath <xazax.hun@gmail.com> | 2017-08-09 20:56:43 +0000 |
---|---|---|
committer | Gabor Horvath <xazax.hun@gmail.com> | 2017-08-09 20:56:43 +0000 |
commit | 1ce5afe7e40266a14a2a0dbd2acbe45f78e60379 (patch) | |
tree | 08fbac8b078d4321c99dc70079254f23a8092a21 /include/clang/Basic/DiagnosticGroups.td | |
parent | e9f8c481a3981e22d4fad0e706d16e41290376a4 (diff) |
[Sema] Assign new flag -Wenum-compare-switch to switch-related parts of -Wenum-compare
Patch by: Reka Nikolett Kovacs
Differential Revision: https://reviews.llvm.org/D36526
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@310521 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/clang/Basic/DiagnosticGroups.td')
-rw-r--r-- | include/clang/Basic/DiagnosticGroups.td | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/clang/Basic/DiagnosticGroups.td b/include/clang/Basic/DiagnosticGroups.td index 1b102ba726..be800d26c8 100644 --- a/include/clang/Basic/DiagnosticGroups.td +++ b/include/clang/Basic/DiagnosticGroups.td @@ -454,6 +454,8 @@ def CoveredSwitchDefault : DiagGroup<"covered-switch-default">; def SwitchBool : DiagGroup<"switch-bool">; def SwitchEnum : DiagGroup<"switch-enum">; def Switch : DiagGroup<"switch">; +def EnumCompareSwitch : DiagGroup<"enum-compare-switch">; +def EnumCompare : DiagGroup<"enum-compare", [EnumCompareSwitch]>; def ImplicitFallthroughPerFunction : DiagGroup<"implicit-fallthrough-per-function">; def ImplicitFallthrough : DiagGroup<"implicit-fallthrough", |