[clang-tools-extra] r326798 - [clangd] Address missed comments from D44003

Sam McCall via cfe-commits cfe-commits at lists.llvm.org
Tue Mar 6 06:30:07 PST 2018


Author: sammccall
Date: Tue Mar  6 06:30:07 2018
New Revision: 326798

URL: http://llvm.org/viewvc/llvm-project?rev=326798&view=rev
Log:
[clangd] Address missed comments from D44003

Modified:
    clang-tools-extra/trunk/unittests/clangd/FuzzyMatchTests.cpp

Modified: clang-tools-extra/trunk/unittests/clangd/FuzzyMatchTests.cpp
URL: http://llvm.org/viewvc/llvm-project/clang-tools-extra/trunk/unittests/clangd/FuzzyMatchTests.cpp?rev=326798&r1=326797&r2=326798&view=diff
==============================================================================
--- clang-tools-extra/trunk/unittests/clangd/FuzzyMatchTests.cpp (original)
+++ clang-tools-extra/trunk/unittests/clangd/FuzzyMatchTests.cpp Tue Mar  6 06:30:07 2018
@@ -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<StringRef> Annotated;
 };




More information about the cfe-commits mailing list