[PATCH] D70209: [clangd] Expose value of enumerators to Hover API. (not UI yet)
Sam McCall via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Thu Nov 14 06:35:46 PST 2019
sammccall marked 2 inline comments as done.
sammccall added inline comments.
================
Comment at: clang-tools-extra/clangd/unittests/XRefsTests.cpp:984
}},
+ {R"cpp(enum Color { RED, [[GR^EEN]], };)cpp",
+ [](HoverInfo &HI) {
----------------
kadircet wrote:
> could you also add a case checking references to enumconstdecl?
> i.e.
> ```
> Color x = GRE^EN;
> ```
Done, this is consistent with the other tests.
I would like to go in the other direction actually, as this is really testing lots of cases of targetDecl. I think we should verify the types of references there, and simplify these cases. But that should probably be done across the board rather than piecemeal.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D70209/new/
https://reviews.llvm.org/D70209
More information about the cfe-commits
mailing list