Explorar o código

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

Boaz Brickner hai 1 ano
pai
achega
23d92c05ca
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      toolchain/sem_ir/name_scope.h

+ 1 - 1
toolchain/sem_ir/name_scope.h

@@ -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)