diff options
author | fanquake <fanquake@gmail.com> | 2022-07-29 10:11:04 +0100 |
---|---|---|
committer | fanquake <fanquake@gmail.com> | 2022-08-30 15:19:53 +0100 |
commit | f345dc3960c2cf4d69ebbcc011e4e836205f0361 (patch) | |
tree | 587ab3b52d7410679f08f255f66ae8135c8ffaec /src/test/util_tests.cpp | |
parent | 94f2235f858bc4fdaf0ab0882599f6a228401cf5 (diff) |
tidy: enable bugprone-use-after-move
Will error with:
```bash
coins.cpp:102:22: error: 'coin' used after it was moved [bugprone-use-after-move,-warnings-as-errors]
(uint32_t)coin.nHeight,
^
coins.cpp:96:21: note: move occurred here
it->second.coin = std::move(coin);
```
until #25663 is merged.
See:
https://releases.llvm.org/14.0.0/tools/clang/tools/extra/docs/clang-tidy/checks/bugprone-use-after-move.html
Diffstat (limited to 'src/test/util_tests.cpp')
0 files changed, 0 insertions, 0 deletions