diff options
author | Artem Dergachev <artem.dergachev@gmail.com> | 2018-12-17 06:19:32 +0000 |
---|---|---|
committer | Artem Dergachev <artem.dergachev@gmail.com> | 2018-12-17 06:19:32 +0000 |
commit | 2b500cbdf109cf40e04e2ad52cfa025ecea5c16f (patch) | |
tree | e42ad481f6918bc0bffa7bdd580074a563ba2d0c /lldb/packages/Python/lldbsuite/test/python_api/frame | |
parent | 69909540a700e866767a14c67fca64f835044452 (diff) | |
download | bcm5719-llvm-2b500cbdf109cf40e04e2ad52cfa025ecea5c16f.tar.gz bcm5719-llvm-2b500cbdf109cf40e04e2ad52cfa025ecea5c16f.zip |
[analyzer] MoveChecker: Add an option to suppress warnings on locals.
Re-using a moved-from local variable is most likely a bug because there's
rarely a good motivation for not introducing a separate variable instead.
We plan to keep emitting such warnings by default.
Introduce a flag that allows disabling warnings on local variables that are
not of a known move-unsafe type. If it doesn't work out as we expected,
we'll just flip the flag.
We still warn on move-unsafe objects and unsafe operations on known move-safe
objects.
Differential Revision: https://reviews.llvm.org/D55730
llvm-svn: 349327
Diffstat (limited to 'lldb/packages/Python/lldbsuite/test/python_api/frame')
0 files changed, 0 insertions, 0 deletions