mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-02-22 15:04:44 +01:00
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
This commit is contained in:
parent
94f2235f85
commit
f345dc3960
1 changed files with 2 additions and 0 deletions
|
@ -1,6 +1,7 @@
|
|||
Checks: '
|
||||
-*,
|
||||
bugprone-argument-comment,
|
||||
bugprone-use-after-move,
|
||||
misc-unused-using-decls,
|
||||
modernize-use-default-member-init,
|
||||
modernize-use-nullptr,
|
||||
|
@ -11,6 +12,7 @@ readability-redundant-string-init,
|
|||
'
|
||||
WarningsAsErrors: '
|
||||
bugprone-argument-comment,
|
||||
bugprone-use-after-move,
|
||||
misc-unused-using-decls,
|
||||
modernize-use-default-member-init,
|
||||
modernize-use-nullptr,
|
||||
|
|
Loading…
Add table
Reference in a new issue