[PATCH] D140814: [clangd] show underlying type in type hint for `decltype(expr)`

Nathan Ridge via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Mon Jan 2 22:23:57 PST 2023


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

Thanks!



================
Comment at: clang-tools-extra/clangd/InlayHints.cpp:665
 
+  // The sugared type is more useful in some cases, and the canonical
+  // type in other cases. For now, prefer the sugared type unless
----------------
small nit: could you put the comment inside the function, since it's more an explanation of the current logic in the implementation


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D140814



More information about the cfe-commits mailing list