Explorar el Código

Disable modernize-use-trailing-return-type on MATCHER_P (#4656)

clang-tidy gives a false positive on the use of the MATCHER_P macro.
Dana Jansens hace 1 año
padre
commit
4e3b8c9775
Se han modificado 1 ficheros con 1 adiciones y 0 borrados
  1. 1 0
      toolchain/sem_ir/name_scope_test.cpp

+ 1 - 0
toolchain/sem_ir/name_scope_test.cpp

@@ -14,6 +14,7 @@ using ::testing::ElementsAre;
 using ::testing::Field;
 using ::testing::Pair;
 
+// NOLINTNEXTLINE(modernize-use-trailing-return-type): From the macro.
 MATCHER_P(NameScopeEntryEquals, entry, "") {
   return ExplainMatchResult(
       AllOf(Field("name_id", &NameScope::Entry::name_id, entry.name_id),