[cfe-commits] Naming conventions

Jordy Rose jediknil at belkadan.com
Wed Jul 27 11:03:38 PDT 2011


On Jul 27, 2011, at 10:57, David Blaikie wrote:

>> Please capitalize local variable names.
> 
> Hmm - I've seen some inconsistency in that regard in the existing code
> & I tried to find something in the LLVM coding conventions (
> http://llvm.org/docs/CodingStandards.html#ll_naming ) but it didn't
> seem to cover variable names at all. Is that the rule, then, variable
> names follow the type name rules (ThingType, ThingVariable,
> thingFunction)?
> 
> - David

Convention in the analyzer seems to have shifted slightly towards lowercase local variables, uppercase member variables...but not with any strong standard. And there's older code that uses uppercase local variables as well, so maybe I'm just wrong. But it'd be nice to add something definitive to CodingStandards.html.

Jordy



More information about the cfe-commits mailing list