From 23d92c05caa9841622ee38760271b4efc0201ce2 Mon Sep 17 00:00:00 2001 From: Boaz Brickner Date: Thu, 24 Apr 2025 17:37:24 +0200 Subject: [PATCH] Fix clang-tidy: move assignment operators should be marked noexcept [performance-noexcept-move-constructor,-warnings-as-errors] (#5266) --- toolchain/sem_ir/name_scope.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/toolchain/sem_ir/name_scope.h b/toolchain/sem_ir/name_scope.h index 34a771d1ff96..48af6fd157d7 100644 --- a/toolchain/sem_ir/name_scope.h +++ b/toolchain/sem_ir/name_scope.h @@ -138,7 +138,7 @@ class NameScope : public Printable { // 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)