[all-commits] [llvm/llvm-project] 7385cc: [clangd] Support macro evaluation on hover
zyn0217 via All-commits
all-commits at lists.llvm.org
Tue May 9 03:50:43 PDT 2023
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 7385cc389abad29eb9044d260b23dd483d674718
https://github.com/llvm/llvm-project/commit/7385cc389abad29eb9044d260b23dd483d674718
Author: Younan Zhang <zyn7109 at gmail.com>
Date: 2023-05-09 (Tue, 09 May 2023)
Changed paths:
M clang-tools-extra/clangd/Hover.cpp
M clang-tools-extra/clangd/unittests/HoverTests.cpp
Log Message:
-----------
[clangd] Support macro evaluation on hover
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.
Reviewed By: nridge
Differential Revision: https://reviews.llvm.org/D148457
More information about the All-commits
mailing list