[PATCH] D119537: [clangd] Treat 'auto' params as deduced if there's a single instantiation.

Trass3r via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Fri Feb 18 06:47:40 PST 2022


Trass3r added inline comments.


================
Comment at: clang-tools-extra/clangd/AST.cpp:491
+  // We'll examine visible specializations and see if they yield a unique type.
+  bool VisitParmVarDecl(ParmVarDecl *PVD) {
+    if (!PVD->getType()->isDependentType())
----------------
Since this is implemented generically in the AST, can this functionality easily be reused for a type inlay hint?


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D119537



More information about the cfe-commits mailing list