[llvm-dev] RFC: changing variable naming rules in LLVM codebase

via llvm-dev llvm-dev at lists.llvm.org
Fri Feb 22 12:51:04 PST 2019

Chandler wrote:

>> - Local variables and formal parameters should be lower_case, with
>>   one exception: Variables/parameters that have lambda/function
>>   type should follow the function-name spelling rules.
> I really dislike this exception. Callable objects are *objects* and
> locally scoped, I would much prefer they look like variables.
> Also, what about callable objects that aren't lambdas? Or that use
> operator() for something other than emulating a function call?
> I think the simple rule is superior. 

Hm I was probably mis-remembering your opinion from earlier, as this
was supposed to be accommodating it!  I'm happy to trash the exception.

More information about the llvm-dev mailing list