[PATCH] D142440: [clangd] Don't show 'auto' type hint when type deduction fails

Kadir Cetinkaya via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Fri Jan 27 09:53:45 PST 2023


kadircet accepted this revision.
kadircet added a comment.
This revision is now accepted and ready to land.

thanks!



================
Comment at: clang-tools-extra/clangd/InlayHints.cpp:307
+    if (auto *AT = D->getType()->getContainedAutoType()) {
+      if (!AT->getDeducedType().isNull() && !D->getType()->isDependentType()) {
         // Our current approach is to place the hint on the variable
----------------
nit


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D142440/new/

https://reviews.llvm.org/D142440



More information about the cfe-commits mailing list