Skip to content

Commit 2d0b29e

Browse files
author
Jinsong Ji
committed
[clang] Fix covered default in switch
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.
1 parent 27e3671 commit 2d0b29e

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

clang/lib/Format/TokenAnnotator.cpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3159,8 +3159,6 @@ bool TokenAnnotator::mustBreakBefore(const AnnotatedLine &Line,
31593159
// functions.
31603160
return (Left.NestingLevel == 0 && Line.Level == 0) &&
31613161
!Left.Children.empty();
3162-
default:
3163-
break;
31643162
}
31653163
}
31663164

0 commit comments

Comments
 (0)