Skip to content

Commit 37c4d6d

Browse files
committed
[clangd] Address missed comments from D44003
llvm-svn: 326798
1 parent 98e7036 commit 37c4d6d

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

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

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,14 +30,16 @@ struct ExpectedMatch {
3030
bool accepts(StringRef ActualAnnotated) const {
3131
return !Annotated || ActualAnnotated == *Annotated;
3232
}
33-
std::string Word;
3433

3534
friend raw_ostream &operator<<(raw_ostream &OS, const ExpectedMatch &M) {
36-
return OS << "'" << M.Word;
35+
OS << "'" << M.Word;
3736
if (M.Annotated)
3837
OS << "' as " << *M.Annotated;
38+
return OS;
3939
}
4040

41+
std::string Word;
42+
4143
private:
4244
Optional<StringRef> Annotated;
4345
};

0 commit comments

Comments
 (0)