From: Sam McCall Date: Tue, 6 Mar 2018 14:30:07 +0000 (+0000) Subject: [clangd] Address missed comments from D44003 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=37c4d6d725008bb8a1e2b1364f6c242c4d0bd320;p=platform%2Fupstream%2Fllvm.git [clangd] Address missed comments from D44003 llvm-svn: 326798 --- diff --git a/clang-tools-extra/unittests/clangd/FuzzyMatchTests.cpp b/clang-tools-extra/unittests/clangd/FuzzyMatchTests.cpp index b665fe3..3de5349 100644 --- a/clang-tools-extra/unittests/clangd/FuzzyMatchTests.cpp +++ b/clang-tools-extra/unittests/clangd/FuzzyMatchTests.cpp @@ -30,14 +30,16 @@ struct ExpectedMatch { bool accepts(StringRef ActualAnnotated) const { return !Annotated || ActualAnnotated == *Annotated; } - std::string Word; friend raw_ostream &operator<<(raw_ostream &OS, const ExpectedMatch &M) { - return OS << "'" << M.Word; + OS << "'" << M.Word; if (M.Annotated) OS << "' as " << *M.Annotated; + return OS; } + std::string Word; + private: Optional Annotated; };