mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-06-27 09:21:43 +02:00
Merge bitcoin/bitcoin#28090: validation: use noexcept instead of deprecated throw()
047daad4f59942488163c6be8516a69291646294 clang-tidy: turn on modernize-use-noexcept (fanquake)
85e9e1f80236b7f3768bb69415ad35c80460e120 validation: use noexcept instead of deprecated throw() (fanquake)
Pull request description:
We fixed this once before in https://github.com/bitcoin/bitcoin/pull/10965.
Turn on https://clang.llvm.org/extra/clang-tidy/checks/modernize/use-noexcept.html#modernize-use-noexcept.
ACKs for top commit:
MarcoFalke:
lgtm ACK 047daad4f59942488163c6be8516a69291646294
sipa:
utACK 047daad4f59942488163c6be8516a69291646294
Empact:
utACK 047daad4f5
stickies-v:
ACK 047daad4f59942488163c6be8516a69291646294
Tree-SHA512: 949b0fe598d66583747853094db13f196b402000e601f8634e5a708b55454d29c5aa18eaf1f2420d3ccf10e3e524b7414ff3a6fe4cb431420bf749c22b2b8bab
This commit is contained in:
commit
673acab223
@ -4,6 +4,7 @@ bugprone-argument-comment,
|
|||||||
bugprone-use-after-move,
|
bugprone-use-after-move,
|
||||||
misc-unused-using-decls,
|
misc-unused-using-decls,
|
||||||
modernize-use-default-member-init,
|
modernize-use-default-member-init,
|
||||||
|
modernize-use-noexcept,
|
||||||
modernize-use-nullptr,
|
modernize-use-nullptr,
|
||||||
performance-*,
|
performance-*,
|
||||||
-performance-inefficient-string-concatenation,
|
-performance-inefficient-string-concatenation,
|
||||||
|
@ -5161,7 +5161,7 @@ static void FlushSnapshotToDisk(CCoinsViewCache& coins_cache, bool snapshot_load
|
|||||||
|
|
||||||
struct StopHashingException : public std::exception
|
struct StopHashingException : public std::exception
|
||||||
{
|
{
|
||||||
const char* what() const throw() override
|
const char* what() const noexcept override
|
||||||
{
|
{
|
||||||
return "ComputeUTXOStats interrupted.";
|
return "ComputeUTXOStats interrupted.";
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user