Fix clang-tidy: move assignment operators should be marked noexcept [performance-noexcept-move-constructor,-warnings-as-errors] (#5266)

This commit is contained in:
Boaz Brickner
2025-04-24 15:37:24 +00:00
committed by GitHub
parent 8512e9198e
commit 23d92c05ca
+1 -1
View File
@@ -138,7 +138,7 @@ class NameScope : public Printable<NameScope> {
// Disallow copy, allow move.
NameScope(NameScope&& other) = default;
auto operator=(NameScope&& other) -> NameScope& = default;
auto operator=(NameScope&& other) noexcept -> NameScope& = default;
explicit NameScope(InstId inst_id, NameId name_id,
NameScopeId parent_scope_id)