Просмотр исходного кода

Clean up `KeywordModifierSet` after #5345 (#5425)

See comment
https://github.com/carbon-language/carbon-lang/pull/5345#discussion_r2074260967

> `Impl` is already a part of `Method` and refers to using `impl` as a
modifier keyword on virtual methods (to be replaced by `override`, see
#5253 ), as opposed to `ImplDecl` which is the modifiers allowed on an
`impl` declaration. It would make more sense to delete this than use
`Impl` here.

Co-authored-by: Josh L <josh11b@users.noreply.github.com>
josh11b 1 год назад
Родитель
Сommit
c455dbef54
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      toolchain/check/keyword_modifier_set.h

+ 1 - 1
toolchain/check/keyword_modifier_set.h

@@ -54,7 +54,7 @@ class KeywordModifierSet {
     Method = Abstract | Impl | Virtual,
     ImplDecl = Extend | Final,
     Interface = Default | Final,
-    Decl = Class | Method | Impl | Interface | Export | Returned,
+    Decl = Class | Method | Interface | Export | Returned,
     None = 0,
 
     LLVM_MARK_AS_BITMASK_ENUM(/*LargestValue=*/Returned)