[cfe-users] Template parameter matcher?

Robert Ankeney via cfe-users cfe-users at lists.llvm.org
Tue Jun 23 15:46:46 PDT 2020

I'm looking for a matcher for variables whose type is a template parameter.
For example:

template<typename T>
T tVal;                       // Match tVal
int func(T tParam);   // Match tParam
int i = func(tVal);       // Match tVal

Our coding standards require the variable to have a 't' at the start of the
variable name.
Looking at the matcher reference, I didn't see anything obvious. Can anyone
point me the right direction?

Many thanks,
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-users/attachments/20200623/19d62fe2/attachment.html>

More information about the cfe-users mailing list