[LLVMdev] local lambdas: request for coding standard clarification/judgement call

Sean Silva
Tue, 15 Apr 2014 03:14:28 -0000

Do local lambdas get named like variables or like functions?

E.g.

void foo() {
  auto helper = [](...){...};
  // or
  auto Helper = [](...){...};
}

My gut is that it should be lowercase (named like a function) since I got a
weird feeling in my stomach seeing an upper-case name being called like a
function in new code.

-- Sean Silva
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
<http://lists.llvm.org/pipermail/llvm-dev/attachments/20140414/b2b7a0de/attachment.html>