diff options
| author | Adam Balogh <adam.balogh@ericsson.com> | 2019-05-21 07:25:06 +0000 |
|---|---|---|
| committer | Adam Balogh <adam.balogh@ericsson.com> | 2019-05-21 07:25:06 +0000 |
| commit | 5f3deb9bb5a7a6d84d46f4567872899c1ae29860 (patch) | |
| tree | 440893fdd6536c9d3a32d746e73bf44d17f03d2a /llvm/test/tools/llvm-opt-fuzzer | |
| parent | 03c4bf73eae69fece93d77a21cb3d354476e7878 (diff) | |
| download | bcm5719-llvm-5f3deb9bb5a7a6d84d46f4567872899c1ae29860.tar.gz bcm5719-llvm-5f3deb9bb5a7a6d84d46f4567872899c1ae29860.zip | |
[clang-tidy] New option for misc-throw-by-value-catch-by-reference
Catching trivial objects by value is not dangerous but may be
inefficient if they are too large. This patch adds an option
`WarnOnLargeObject` to the checker to also warn if such an object
is caught by value. An object is considered as "large" if its
size is greater than `MaxSize` which is another option. Default
value is the machine word of the architecture (size of the type
`size_t`).
Differential Revision: https://reviews.llvm.org/D61851
llvm-svn: 361225
Diffstat (limited to 'llvm/test/tools/llvm-opt-fuzzer')
0 files changed, 0 insertions, 0 deletions

