summaryrefslogtreecommitdiffstats
path: root/lldb/packages/Python/lldbsuite/test/commands/frame/select/TestFrameSelect.py
diff options
context:
space:
mode:
authorKristof Umann <kristof.umann@ericsson.com>2019-09-03 15:22:43 +0000
committerKristof Umann <kristof.umann@ericsson.com>2019-09-03 15:22:43 +0000
commit3b18b050b8fc132ee09e2457f0bb98386fe181f8 (patch)
tree58138a4580c10d61b44af84fba36f3e095085b9c /lldb/packages/Python/lldbsuite/test/commands/frame/select/TestFrameSelect.py
parentde524038436c647d0ebae88cad16b542a0d2210a (diff)
downloadbcm5719-llvm-3b18b050b8fc132ee09e2457f0bb98386fe181f8.tar.gz
bcm5719-llvm-3b18b050b8fc132ee09e2457f0bb98386fe181f8.zip
[analyzer] Add a checker option to detect nested dead stores
Enables the users to specify an optional flag which would warn for more dead stores. Previously it ignored if the dead store happened e.g. in an if condition. if ((X = generate())) { // dead store to X } This patch introduces the `WarnForDeadNestedAssignments` option to the checker, which is `false` by default - so this change would not affect any previous users. I have updated the code, tests and the docs as well. If I missed something, tell me. I also ran the analysis on Clang which generated 14 more reports compared to the unmodified version. All of them seemed reasonable for me. Related previous patches: rGf224820b45c6847b91071da8d7ade59f373b96f3 Reviewers: NoQ, krememek, Szelethus, baloghadamsoftware Reviewed By: Szelethus Patch by Balázs Benics! Differential Revision: https://reviews.llvm.org/D66733 llvm-svn: 370767
Diffstat (limited to 'lldb/packages/Python/lldbsuite/test/commands/frame/select/TestFrameSelect.py')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud