Re: [cfe-users] Matcher for templated variable

2021-08-17 Thread Jonas Toth via cfe-users
Hey Robert, I can highely recommend `godbolt.org`, it has support for clang-query as additional tool when you select clang as the compiler as well as AST output. Additionally: https://clang.llvm.org/docs/LibASTMatchersReference.html There you get all the possible matchers you can combine. You ca

[cfe-users] Matcher for templated variable

2021-08-08 Thread Robert Ankeney via cfe-users
I'm looking to create AST matchers for variables that are templated. For example, in the code: template class Class // template <(class or typename or int/float/etc) T> { public: void Func(T* Param)// 1) match Param { Param = nullptr; // 2) match Param } T* Var =