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

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 1 год назад
Родитель
Сommit
4e3b8c9775
1 измененных файлов с 1 добавлено и 0 удалено
  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),