simark added inline comments.

Comment at: unittests/clangd/XRefsTests.cpp:561
+    EXPECT_EQ(H.contents.value, Test.expectedHover.str()) << Test.input;
+  }
Note that I used `.str()` here to make the output of failing tests readable and 
useful.  By default, gtest tries to print StringRef as if it was a container.  
I tried to make add a `PrintTo` function to specify how it should be printed, 
but couldn't get it to work (to have it called by the compiler), so I settled 
for this.

  rCTE Clang Tools Extra

cfe-commits mailing list

Reply via email to