[cfe-dev] Counting local variable declarations
Trevor Harmon
trevor at vocaro.com
Mon Mar 12 18:15:20 PDT 2012
Hi everyone,
I'm trying to modify Clang so that I can take an action if the the
number of local variable declarations in a function exceeds some limit.
I know I could just throw a counter into the Sema class and increment it
when GetTypeForDeclarator sees the variable, but I'm thinking there's
probably a better (built-in) way. Any suggestions? Thanks,
Trevor
More information about the cfe-dev
mailing list