[LLVMdev] RFC: variable names

Tim Northover t.p.northover at gmail.com
Mon Oct 13 15:28:06 PDT 2014

> If we are going to change how we name variables, I very much want them to
> not collide with either type names or function names. My suggestion would be
> "lower_case" names.
> This also happens to be the vastly most common pattern across all C++ coding
> styles and C-based language coding styles I have seen.

STL has "lower_case" functions, and exposes far fewer variables. I
can't really recall which of myFunc/my_var or my_func/myVar I've seen
more elsewhere though.


(Not advocating anything in particular yet).

More information about the llvm-dev mailing list