Skip to content

Commit 7055cd4

Browse files
committed
Remove extra ';', NFC
Fixed gcc -Wpedantic warning about extra ';'
1 parent daed98e commit 7055cd4

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

clang-tools-extra/clangd/Hover.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -525,13 +525,13 @@ bool isParagraphLineBreak(llvm::StringRef Str, size_t LineBreakIndex) {
525525
return Str.substr(LineBreakIndex + 1)
526526
.drop_while([](auto C) { return C == ' ' || C == '\t'; })
527527
.startswith("\n");
528-
};
528+
}
529529

530530
bool isPunctuationLineBreak(llvm::StringRef Str, size_t LineBreakIndex) {
531531
constexpr llvm::StringLiteral Punctuation = R"txt(.:,;!?)txt";
532532

533533
return LineBreakIndex > 0 && Punctuation.contains(Str[LineBreakIndex - 1]);
534-
};
534+
}
535535

536536
bool isFollowedByHardLineBreakIndicator(llvm::StringRef Str,
537537
size_t LineBreakIndex) {
@@ -556,7 +556,7 @@ bool isFollowedByHardLineBreakIndicator(llvm::StringRef Str,
556556
Str[NextNonSpaceCharIndex + 1] == ')');
557557

558558
return FollowedBySingleCharIndicator || FollowedByNumberedListIndicator;
559-
};
559+
}
560560

561561
bool isHardLineBreak(llvm::StringRef Str, size_t LineBreakIndex) {
562562
return isPunctuationLineBreak(Str, LineBreakIndex) ||

0 commit comments

Comments
 (0)