Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 350518

Summary: Check that only exceptions are thrown that are declared in the method signature
Product: [Tools] CDT Reporter: Jens Elmenthaler <jens.elmenthaler>
Component: cdt-codanAssignee: CDT Codan Inbox <cdt-codan-inbox>
Status: NEW --- QA Contact: Elena Laskavaia <elaskavaia.cdt>
Severity: normal    
Priority: P3 CC: cdtdoug
Version: 7.0   
Target Milestone: ---   
Hardware: All   
OS: All   
Whiteboard:

Description Jens Elmenthaler CLA 2011-06-28 03:12:44 EDT
Build Identifier: HEAD

C++ compilers do not check that exceptions thrown by a method are also declared in the method's signature. Instead, program simply crash at runtime in case of such a mismatch. Because of this, such a checker is very useful.

The JDT is a good reference on what the CDT could check and how to offer quick fixes.

Reproducible: Always