[cfe-dev] Question about ASTMatchers

Richard legalize at xmission.com
Thu Feb 20 07:43:06 PST 2014


In article <CAOsfVvnnO-6VRGLdzWuvp-Qb1qR61wAqJ_d8vHX-LgyWTa6u+g at mail.gmail.com>,
    Manuel Klimek <klimek at google.com> writes:

> [...] Assuming you want to "get" it, you'd
> say something like varDecl(hasType(qualType().bind("t"))) (untested ;), and
> then in the callback extract the QualType and call getAsString() on it.

Thanks for these responses, Manuel!  I'm still learning these matchers
and there's quite a bit to digest there.  These suggestions have been
very instructive!
-- 
"The Direct3D Graphics Pipeline" free book <http://tinyurl.com/d3d-pipeline>
     The Computer Graphics Museum <http://ComputerGraphicsMuseum.org>
         The Terminals Wiki <http://terminals.classiccmp.org>
  Legalize Adulthood! (my blog) <http://LegalizeAdulthood.wordpress.com>



More information about the cfe-dev mailing list