[cfe-dev] [clang-tidy] Some possible contributions

Richard via cfe-dev cfe-dev at lists.llvm.org
Tue Dec 15 13:10:51 PST 2015

[Please reply *only* to the list and do not include my email directly
in the To: or Cc: of your reply; otherwise I will not see your reply.

In article <56708712.6050402 at gmail.com>,
    Piotr Dziwinski via cfe-dev <cfe-dev at lists.llvm.org> writes:

> Thanks, I could use your code. My checker only handles local variables 
> declared in functions so that parser or transformer doesn't have to work 
> for globals necessarily.

I remember now that I was looking into this for a check that would
split a multiple variable declaration into multiple single variable

This would simplify your job of localizing variable declarations if
you could depend on each variable declaration being a single variable
declaration instead of a multiple variable declaration.

With the suggestion made by Firat Kasmis, I should be able to write
this check now, which would handle globals and struct/class fields.

"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