[clang-tools-extra] [clangd] Let DefineOutline tweak handle member function templates (PR #112345)
Christian Kandeler via cfe-commits
cfe-commits at lists.llvm.org
Fri Oct 18 02:03:53 PDT 2024
ckandeler wrote:
> ```c++
> template <typename U>
> inline void Foo<T>::bar(const T& t, const U& u) {}
> ```
>
> this won't compile as `T` isn't defined. you also need to print `template <typename T>` on top (and keep doing for rest of the outer decls).
The patch does that already.
In the test, the outer template declaration is on the line above.
https://github.com/llvm/llvm-project/pull/112345
More information about the cfe-commits
mailing list