In D19201#768693, @baloghadamsoftware wrote:There is a patch (D33537) for a check which is a superset of this: [...] A more important difference is that we traverse the whole call-chain and check all the throw statements and try-catch blocks so indirectly throwing functions are also reported and no flase positives are caused by throw and catch in the same try block.
- Queries
- All Stories
- Search
- Advanced Search
- Transactions
- Transaction Logs
Feed Advanced Search
Advanced Search
Advanced Search
May 31 2017
May 31 2017
May 21 2017
May 21 2017
sbarzowski retitled D33379: New misc-bad-exception-type check. from New misc-bad-exception-type check.
It warns about using non-class (or struct) types as an exception. It also blacklists STL smart pointers and std::string.
I'm not sure if it's appropriate for mainline as it has very low chance of finding... to New misc-bad-exception-type check..
May 20 2017
May 20 2017
Cosmetic
May 18 2017
May 18 2017
Removed unnecessary colon from message
Docs and cosmetic issues
May 4 2017
May 4 2017
Fixed false positive issues
Mar 13 2017
Mar 13 2017
Mar 6 2017
Mar 6 2017
Feb 7 2017
Feb 7 2017
Jan 26 2017
Jan 26 2017
Improved messages, added tests with templates, fixed some typos.
Jan 16 2017
Jan 16 2017
I took advantage of new getExceptionSpecSourceRange (it wasn't available before) instead of getting exception specification manually with the lexer.
Dec 16 2016
Dec 16 2016
Dec 15 2016
Dec 15 2016
Oct 7 2016
Oct 7 2016
What's happening here? It's accepted, but not merged and the last activity is 3 months old while my change is waiting for it. Can I help somehow?
Jun 10 2016
Jun 10 2016
Jun 3 2016
Jun 3 2016
Jun 1 2016
Jun 1 2016
Thanks for review, guys. I fixed as many easy problems as I had time for today, will continue later.
Note `FunctionProtoType::getNoExceptExpr` is weird. If you have the same expr in multiple noexcepts, then it returns the same object for all of them, so it is useless for determining the location in code.
Apr 17 2016
Apr 17 2016
sbarzowski added reviewers for D19201: [clang-tidy] misc-throw-with-noexcept: krystyna, mnbvmar, staronj.
sbarzowski retitled D19201: [clang-tidy] misc-throw-with-noexcept from to [clang-tidy] misc-throw-with-noexcept.