[PATCH] D148457: [clangd] Support macro evaluation on hover
Younan Zhang via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Sun Apr 16 18:47:08 PDT 2023
zyounan created this revision.
Herald added subscribers: kadircet, arphaman.
Herald added a project: All.
zyounan updated this revision to Diff 513979.
zyounan added a comment.
zyounan updated this revision to Diff 514019.
zyounan updated this revision to Diff 514028.
zyounan added reviewers: nridge, sammccall, kadircet.
zyounan published this revision for review.
Herald added subscribers: cfe-commits, MaskRay, ilya-biryukov.
Herald added a project: clang-tools-extra.
~~Fix tests on Windows~~
zyounan added a comment.
unsigned long isn't 8 bytes on windows
zyounan added a comment.
Do not validate type of builtin operators
Creating a SelectionTree at the location where macro expands allows
us to obtain the associated expression, which might then be used to
evaluate compile-time values if possible.
Closes clangd/clangd#1595.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D148457
Files:
clang-tools-extra/clangd/Hover.cpp
clang-tools-extra/clangd/unittests/HoverTests.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D148457.514028.patch
Type: text/x-patch
Size: 7387 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20230417/0e1d970a/attachment-0001.bin>
More information about the cfe-commits
mailing list