Procházet zdrojové kódy

Use `auto` for the CheckTypeOfConstantIsTypeType fn signature (#7089)

Dana Jansens před 1 týdnem
rodič
revize
744ab33484
1 změnil soubory, kde provedl 2 přidání a 1 odebrání
  1. 2 1
      toolchain/sem_ir/type.cpp

+ 2 - 1
toolchain/sem_ir/type.cpp

@@ -15,7 +15,8 @@ CARBON_DEFINE_ENUM_MASK_NAMES(TypeQualifiers) {
 };
 
 // Verify that the constant value's type is `TypeType` (or an error).
-static void CheckTypeOfConstantIsTypeType(File& file, ConstantId constant_id) {
+static auto CheckTypeOfConstantIsTypeType(File& file, ConstantId constant_id)
+    -> void {
   CARBON_CHECK(constant_id.is_constant(),
                "Canonicalizing non-constant type: {0}", constant_id);
   auto type_id =