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

Sean Silva chisophugis at gmail.com
Mon Apr 14 20:14:28 PDT 2014


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>


More information about the llvm-dev mailing list