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

Add `explicit` to match style, appease clang-tidy (#4296)

Introduced by https://github.com/carbon-language/carbon-lang/pull/4290

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

+ 1 - 1
toolchain/check/keyword_modifier_set.h

@@ -88,7 +88,7 @@ class KeywordModifierSet {
   auto ToEnum() -> auto {
     class Converter {
      public:
-      Converter(const KeywordModifierSet& set) : set_(set) {}
+      explicit Converter(const KeywordModifierSet& set) : set_(set) {}
 
       auto Case(RawEnumType raw_enumerator, T result) -> Converter& {
         if (set_.HasAnyOf(raw_enumerator)) {