]> granicus.if.org Git - clang/commit
Further tweak -Wurneachable-code and templates by allowing the warning to run on
authorTed Kremenek <kremenek@apple.com>
Thu, 1 Dec 2011 00:59:17 +0000 (00:59 +0000)
committerTed Kremenek <kremenek@apple.com>
Thu, 1 Dec 2011 00:59:17 +0000 (00:59 +0000)
commit75df4eeede7b91c22c1d63fafd4dd4142844e3b9
treed67f45ceff1dbec6edcecd230d0beca55d68c167
parent901dd668931a70932ad09092959c42693409a3cd
Further tweak -Wurneachable-code and templates by allowing the warning to run on
explicit template specializations (which represent actual functions somebody wrote).

Along the way, refactor some other code which similarly cares about whether or
not they are looking at a template instantiation.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@145547 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/AST/Decl.h
lib/AST/Decl.cpp
lib/Sema/AnalysisBasedWarnings.cpp
lib/StaticAnalyzer/Checkers/UnreachableCodeChecker.cpp
test/SemaCXX/warn-unreachable.cpp