Matching Function Parameter to Corresponding Template Clang-Tidy Check

Hello,

I am working on some clang-tidy checks and am trying to figure out which AST class functions can help identify from which template a generic parameter comes from, eg

template <typename T>
class A {
template <typename U>
void func(T t) {}
};

where I want to know if the func parameter T t matches the function template or the class template. (So in this case, it would match the class template

New to llvm-dev/clang so please let me know if I’ve missed some mailing-list etiquette!

Best,
Yannan