[clang] Fix covered default in switch
authorJinsong Ji <jji@us.ibm.com>
Mon, 27 Jan 2020 18:40:59 +0000 (18:40 +0000)
committerJinsong Ji <jji@us.ibm.com>
Mon, 27 Jan 2020 19:28:11 +0000 (19:28 +0000)
clang/lib/Format/TokenAnnotator.cpp:3162:7:
error: default label in switch which covers all enumeration values
[-Werror,-Wcovered-switch-default]
      default:
      ^
1 error generated.

clang/lib/Format/TokenAnnotator.cpp

index 8f9a29a..c4798f6 100644 (file)
@@ -3159,8 +3159,6 @@ bool TokenAnnotator::mustBreakBefore(const AnnotatedLine &Line,
         // functions.
         return (Left.NestingLevel == 0 && Line.Level == 0) &&
                !Left.Children.empty();
-      default:
-        break;
       }
     }