nridge added inline comments.
================ Comment at: clang-tools-extra/clangd/InlayHints.cpp:323 + "Instantiated function has fewer (non-pack) parameters?"); + return InstantiatedFunction->getParamDecl(ParamIdx); + } ---------------- Here's a test case which slips past these checks: ``` int waldo(auto... args, auto last); int x = waldo<int, float>(1, 2.0, 'x'); ``` `last` incorrectly gets `float` (rather than `char`) as a hint Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D120258/new/ https://reviews.llvm.org/D120258 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits