[cfe-dev] [LLVMdev] draft rule for naming types/functions/variables

Anton Korobeynikov anton at korobeynikov.info
Sun Nov 28 23:02:09 PST 2010


> I enjoyed the new coding style in recent patches. Camel case makes it easy
> to pick a descriptive name. Starting functions and variables with lower
> cases reduces chances to conflict with a type name.
Honestly speaking, I don't. Especially in the cases when varname is
made from an
acronym. E.g. MachineInstr *MI looks much better than MachineInstr *mi, etc.

See latest Rafael's patch as an example.

-- 
With best regards, Anton Korobeynikov
Faculty of Mathematics and Mechanics, Saint Petersburg State University



More information about the cfe-dev mailing list