[clang-tools-extra] [clangd] Handle template template parameter pack indexes correctly in TargetFinder::VisitTemplateSpecializationType (PR #228996)

Aleksandr Platonov via cfe-commits cfe-commits at lists.llvm.org
Mon Oct 5 01:58:56 PDT 2026


https://github.com/ArcsinX commented:

Sorry, the example I cited [here](https://github.com/llvm/llvm-project/pull/228601#discussion_r4172437701) is actually C++29, not C++26 as I stated, and clang issues a warning for it. This applies to the test in this PR as well.
- C++26: pack indexing for types, e.g. `template <typename... T>` => `T...[0]`
- C++29: pack indexing for template names, e.g. `template <template <typename> class... T>` => `T...[0]`

BTW, maybe we can move the pack indexing tests into a separate test rather than keeping them in `ClassTemplate` test? Given that there will likely be more tests, since as you said, not all pack indexing cases are working yet.



https://github.com/llvm/llvm-project/pull/228996


More information about the cfe-commits mailing list