projects
/
platform
/
upstream
/
llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
27e3671
)
[clang] Fix covered default in switch
author
Jinsong Ji
<jji@us.ibm.com>
Mon, 27 Jan 2020 18:40:59 +0000
(18:40 +0000)
committer
Jinsong 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
patch
|
blob
|
history
diff --git
a/clang/lib/Format/TokenAnnotator.cpp
b/clang/lib/Format/TokenAnnotator.cpp
index
8f9a29a
..
c4798f6
100644
(file)
--- a/
clang/lib/Format/TokenAnnotator.cpp
+++ b/
clang/lib/Format/TokenAnnotator.cpp
@@
-3159,8
+3159,6
@@
bool TokenAnnotator::mustBreakBefore(const AnnotatedLine &Line,
// functions.
return (Left.NestingLevel == 0 && Line.Level == 0) &&
!Left.Children.empty();
- default:
- break;
}
}