]> granicus.if.org Git - clang/commit
Enhance -Wreturn-type to not warn when control-flow is most likely limited by a switc...
authorTed Kremenek <kremenek@apple.com>
Thu, 9 Sep 2010 00:06:07 +0000 (00:06 +0000)
committerTed Kremenek <kremenek@apple.com>
Thu, 9 Sep 2010 00:06:07 +0000 (00:06 +0000)
commit90b828aa279542559f655d1af666580288cb1841
treedd4c53a6dd2318b884756dc861b7250cf375b12c
parentee7f84d509c6382491673883598eb9ed2d3a6a8b
Enhance -Wreturn-type to not warn when control-flow is most likely limited by a switch statement explicitly covering
all the cases for an enum value.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@113450 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Sema/AnalysisBasedWarnings.cpp
test/Sema/return.c