[clang-tidy]: new check for "throw by value, catch by reference" guideline

Tobias Langner randomcppprogrammer at gmail.com
Fri Jul 17 13:03:30 PDT 2015


Hello,

I’d like to submit a new clang-tidy check for review. It tests throw-locations whether objects where thrown by value (and not by pointer) and tests catch-locations whether they catch by const reference. This rule is found in many advice books as guideline. Could someone please review it?

Regards
Tobias

-------------- next part --------------
A non-text attachment was scrubbed...
Name: throwbyvalue.diff
Type: application/octet-stream
Size: 7148 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20150717/b3940659/attachment.obj>
-------------- next part --------------





More information about the cfe-commits mailing list