Skip to content

Commit 673acab

Browse files
committed
Merge bitcoin/bitcoin#28090: validation: use noexcept instead of deprecated throw()
047daad clang-tidy: turn on modernize-use-noexcept (fanquake) 85e9e1f validation: use noexcept instead of deprecated throw() (fanquake) Pull request description: We fixed this once before in bitcoin/bitcoin#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 047daad sipa: utACK 047daad Empact: utACK bitcoin/bitcoin@047daad stickies-v: ACK 047daad Tree-SHA512: 949b0fe598d66583747853094db13f196b402000e601f8634e5a708b55454d29c5aa18eaf1f2420d3ccf10e3e524b7414ff3a6fe4cb431420bf749c22b2b8bab
2 parents bc88f3a + 047daad commit 673acab

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

src/.clang-tidy

+1
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ bugprone-argument-comment,
44
bugprone-use-after-move,
55
misc-unused-using-decls,
66
modernize-use-default-member-init,
7+
modernize-use-noexcept,
78
modernize-use-nullptr,
89
performance-*,
910
-performance-inefficient-string-concatenation,

src/validation.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -5161,7 +5161,7 @@ static void FlushSnapshotToDisk(CCoinsViewCache& coins_cache, bool snapshot_load
51615161

51625162
struct StopHashingException : public std::exception
51635163
{
5164-
const char* what() const throw() override
5164+
const char* what() const noexcept override
51655165
{
51665166
return "ComputeUTXOStats interrupted.";
51675167
}

0 commit comments

Comments
 (0)