[clang-tools-extra] Remove redundant control flow statements (NFC) (#140846)

This commit is contained in:
Kazu Hirata
2025-05-21 00:29:17 -07:00
committed by GitHub
parent 9f1da90d6f
commit 5bd3c44b79
2 changed files with 0 additions and 3 deletions

View File

@@ -70,7 +70,6 @@ static void cleanInitialValue(DiagnosticBuilder &Diag,
return;
Diag << FixItHint::CreateRemoval(EqualLoc)
<< FixItHint::CreateRemoval(InitExprRange);
return;
}
namespace {

View File

@@ -49,7 +49,6 @@ TEST(ProjectAware, Test) {
C.Index.External.Location = "test";
WithContextValue With(Config::Key, std::move(C));
EXPECT_THAT(match(*Idx, Req), ElementsAre("1"));
return;
}
TEST(ProjectAware, CreatedOnce) {
@@ -80,7 +79,6 @@ TEST(ProjectAware, CreatedOnce) {
match(*Idx, Req);
// It is cached afterwards.
EXPECT_EQ(InvocationCount, 1U);
return;
}
} // namespace clangd
} // namespace clang