Skip to content

Commit

Permalink
Disable modernize-use-trailing-return-type on MATCHER_P (carbon-langu…
Browse files Browse the repository at this point in the history
…age#4656)

clang-tidy gives a false positive on the use of the MATCHER_P macro.
  • Loading branch information
danakj authored Dec 9, 2024
1 parent bd0f620 commit 4e3b8c9
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions toolchain/sem_ir/name_scope_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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),
Expand Down

0 comments on commit 4e3b8c9

Please sign in to comment.