Yannan Tuo via llvm-dev
2020-Aug-04 16:21 UTC
[llvm-dev] 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 <typename T> New to llvm-dev/clang so please let me know if I've missed some mailing-list etiquette! Best, Yannan -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20200804/121b2ed1/attachment-0001.html>