Please add an _optional_ (not on by default) warning to find use of catch (...)
I'd like you to consider adding a optional warning for the "catch all uncaught exceptions" clause, catch with a 3 dot ellipsis:
catch (...)
This can be a dangerous construct certainly on some of the Microsoft compilers with interactions with Structured Exception Handling, and is warned against by a number of key figures, including John Robbins.
1
vote
This suggestion has been implemented in the upcoming PC-lint Plus as two new messages:
1766 – catch(…) encountered without preceding catch clause
1966 – catch(…) encountered after catch clause