[PATCH] D42915: [clangd] Use URIs in index symbols.
Sam McCall via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Tue Feb 6 07:58:15 PST 2018
sammccall accepted this revision.
sammccall added inline comments.
This revision is now accepted and ready to land.
================
Comment at: unittests/clangd/SymbolCollectorTests.cpp:280
runSymbolCollector(Header.code(), /*Main=*/"");
- EXPECT_THAT(Symbols,
- UnorderedElementsAre(
- AllOf(QName("abc_Test"),
- LocationOffsets(Header.offsetRange("expansion")),
- CPath(TestHeaderName)),
- AllOf(QName("Test"),
- LocationOffsets(Header.offsetRange("spelling")),
- CPath(TestHeaderName))));
+ for (const auto &S : Symbols)
+ llvm::errs() << "~~~ " << S.CanonicalDeclaration.FileURI << ": "
----------------
leftover logs
Repository:
rCTE Clang Tools Extra
https://reviews.llvm.org/D42915
More information about the cfe-commits
mailing list