[PATCH] D35894: [clangd] Code hover for Clangd
Simon Marchi via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Wed Feb 14 14:36:27 PST 2018
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.
Repository:
rCTE Clang Tools Extra
https://reviews.llvm.org/D35894
More information about the cfe-commits
mailing list