[llvm-dev] Clang-Format and Lambdas

Mohamed Khaled Mostafa via llvm-dev llvm-dev at lists.llvm.org
Thu Feb 9 05:59:57 PST 2017


Currently, I'm having a problem with clang-format dealing with lambdas.
Basically there is no control over lambdas at all. The current
configuration that I use specifies that functions should have open and
closing brackets on separate lines. Parameters and arguments should be
split on separate lines as well. This is all going so well for normal
functions. For lambdas, It would be nice to treat them exactly like
functions (because they are). Currently there is no defined formatting
behaviour for them. It would be nice to add a boolean formatting option to
treat lambdas like functions or to add special formatting options for
lambdas specifically.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20170209/ac2d7bd5/attachment-0001.html>

More information about the llvm-dev mailing list