]> granicus.if.org Git - clang/commit
Diagnose unused exception parameters under a different warning group
authorDouglas Gregor <dgregor@apple.com>
Mon, 3 May 2010 18:51:14 +0000 (18:51 +0000)
committerDouglas Gregor <dgregor@apple.com>
Mon, 3 May 2010 18:51:14 +0000 (18:51 +0000)
commit324b54d3f60d92a82815512119791ce1c285b63e
treeb71c76c30ea6fb3991e210825889b588d3d69937
parent4d9e7388ccdfdab97f92caac5db9b87a530742f4
Diagnose unused exception parameters under a different warning group
(-Wunused-exception-parameter) than normal variables, since it's more
common to name and then ignore an exception parameter. This warning is
neither enabled by default nor by -Wall. Fixes <rdar://problem/7931045>.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@102931 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/AST/Decl.h
include/clang/Basic/DiagnosticGroups.td
include/clang/Basic/DiagnosticSemaKinds.td
lib/Frontend/PCHReaderDecl.cpp
lib/Frontend/PCHWriterDecl.cpp
lib/Sema/SemaDecl.cpp
lib/Sema/SemaDeclCXX.cpp
lib/Sema/SemaDeclObjC.cpp
test/SemaObjC/catch-stmt.m
test/SemaObjC/warn-unused-exception-param.m [new file with mode: 0644]