[PATCH] D138300: [clangd] Support type hints for `decltype(expr)` in variable declarations
Trass3r via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Fri Nov 18 07:56:42 PST 2022
Trass3r added inline comments.
================
Comment at: clang-tools-extra/clangd/InlayHints.cpp:315
+ addTypeHint(D->getLocation(),
+ llvm::cast<DecltypeType>(T)->getUnderlyingType(),
+ /*Prefix=*/": ");
----------------
Should use dyn_cast instead of is+cast I think.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D138300/new/
https://reviews.llvm.org/D138300
More information about the cfe-commits
mailing list