diff options
author | Dávid Bolvanský <david.bolvansky@gmail.com> | 2022-03-23 22:03:57 +0100 |
---|---|---|
committer | Dávid Bolvanský <david.bolvansky@gmail.com> | 2022-03-23 22:05:36 +0100 |
commit | 460fc440ad8d41ca2e3882987512989b1c188fbe (patch) | |
tree | afee9735361b54ea386f5f4c2511cebfdd904b22 /lldb/source/Plugins/Process/gdb-remote/ProcessGDBRemote.cpp | |
parent | 7fdb50c8137b0b9c7f02fe0803e368f12969b389 (diff) | |
download | llvm-460fc440ad8d41ca2e3882987512989b1c188fbe.zip llvm-460fc440ad8d41ca2e3882987512989b1c188fbe.tar.gz llvm-460fc440ad8d41ca2e3882987512989b1c188fbe.tar.bz2 |
[Clang] -Wunused-but-set-variable warning - handle also pre/post unary operators
Clang fails to diagnose:
```
void test() {
int j = 0;
for (int i = 0; i < 1000; i++)
j++;
return;
}
```
Reason: Missing support for UnaryOperator.
We should not warn with volatile variables... so add check for it.
Reviewed By: efriedma
Differential Revision: https://reviews.llvm.org/D122271
Diffstat (limited to 'lldb/source/Plugins/Process/gdb-remote/ProcessGDBRemote.cpp')
0 files changed, 0 insertions, 0 deletions