[PATCH] D11328: [clang-tidy] new "throw-by-value-catch-by-reference" check for clang-tidy
Tobias Langner via cfe-commits
cfe-commits at lists.llvm.org
Tue Oct 6 22:19:17 PDT 2015
randomcppprogrammer updated this revision to Diff 36700.
randomcppprogrammer marked 17 inline comments as done.
randomcppprogrammer added a comment.
reworked code to include the changes suggested by Aaron Ballman
main changes
- will not diagnose on throwing catch variables by value/pointer
- will not diagnose on throwing function parameters (if you are using special handler functions for throwing)
http://reviews.llvm.org/D11328
Files:
clang-tidy/misc/CMakeLists.txt
clang-tidy/misc/MiscTidyModule.cpp
clang-tidy/misc/ThrowByValueCatchByReferenceCheck.cpp
clang-tidy/misc/ThrowByValueCatchByReferenceCheck.h
test/clang-tidy/misc-throw-by-value-catch-by-reference.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D11328.36700.patch
Type: text/x-patch
Size: 15607 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20151007/cb0db57a/attachment.bin>
More information about the cfe-commits
mailing list