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:
afeae77
)
Add an explicit `LLVM_FALLTHROUGH` annotation to an intentional
author
Chandler Carruth
<chandlerc@gmail.com>
Fri, 22 Dec 2017 23:29:49 +0000
(23:29 +0000)
committer
Chandler Carruth
<chandlerc@gmail.com>
Fri, 22 Dec 2017 23:29:49 +0000
(23:29 +0000)
fallthrough. Fixes GCC and Clang warnings about this.
llvm-svn: 321392
clang/lib/Sema/SemaType.cpp
patch
|
blob
|
history
diff --git
a/clang/lib/Sema/SemaType.cpp
b/clang/lib/Sema/SemaType.cpp
index
63a4963
..
2530b76
100644
(file)
--- a/
clang/lib/Sema/SemaType.cpp
+++ b/
clang/lib/Sema/SemaType.cpp
@@
-3143,6
+3143,7
@@
static void warnAboutRedundantParens(Sema &S, Declarator &D, QualType T) {
case DeclaratorChunk::Paren:
if (&C == &Paren)
continue;
+ LLVM_FALLTHROUGH;
case DeclaratorChunk::Pointer:
StartsWithDeclaratorId = false;
continue;