[llvm-dev] Matching Function Parameter to Corresponding Template Clang-Tidy Check

Yannan Tuo via llvm-dev llvm-dev at lists.llvm.org
Tue Aug 4 09:21:34 PDT 2020


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>


More information about the llvm-dev mailing list