Skip to content

Commit 5bd3c44

Browse files
[clang-tools-extra] Remove redundant control flow statements (NFC) (#140846)
1 parent 9f1da90 commit 5bd3c44

File tree

2 files changed

+0
-3
lines changed

2 files changed

+0
-3
lines changed

clang-tools-extra/clang-tidy/readability/EnumInitialValueCheck.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,6 @@ static void cleanInitialValue(DiagnosticBuilder &Diag,
7070
return;
7171
Diag << FixItHint::CreateRemoval(EqualLoc)
7272
<< FixItHint::CreateRemoval(InitExprRange);
73-
return;
7473
}
7574

7675
namespace {

clang-tools-extra/clangd/unittests/ProjectAwareIndexTests.cpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,6 @@ TEST(ProjectAware, Test) {
4949
C.Index.External.Location = "test";
5050
WithContextValue With(Config::Key, std::move(C));
5151
EXPECT_THAT(match(*Idx, Req), ElementsAre("1"));
52-
return;
5352
}
5453

5554
TEST(ProjectAware, CreatedOnce) {
@@ -80,7 +79,6 @@ TEST(ProjectAware, CreatedOnce) {
8079
match(*Idx, Req);
8180
// It is cached afterwards.
8281
EXPECT_EQ(InvocationCount, 1U);
83-
return;
8482
}
8583
} // namespace clangd
8684
} // namespace clang

0 commit comments

Comments
 (0)