Hello everyone,
How would one write a matcher that looks for ParmVarDecls that don’t occur in constructor decls?
I’d figure
parmVarDecl(unless(hasParent(cxxConstructorDecl()))),
but that doesn’t work.
Replacing hasParent with hasAncestor seems to work, but looks weird considering ParmVarDecls look like direct children of FunctionDecls in the AST. Is there something special about ParmVarDecls, also since there is the hasAnyParameter matcher?
Thanks!
Sigi