4coder » Forums » Lambda indention as function argument
Nananas
Thomas Dendale
2 posts

Blub

#11222 Lambda indention as function argument
3 months, 3 weeks ago

Hi Allen

I think the lambda-indention looks a bit weird when the lambda is a function argument.
(Using v4.0.17)

Indenting this small example in 4coder:
1
2
3
4
a.b([](){
        if(1)
        c();
        });


... would look better like this, right?
1
2
3
4
a.b([]() {
   if (1)
     c();
})


I have quite a bit of these in the code I have to work with.

Blub
Mr4thDimention
Allen Webster
240 posts
2 projects

Heyo

#11223 Lambda indention as function argument
3 months, 3 weeks ago

Yeah the system is not set up to handle those well yet. When I revist the indenting stuff I'll make sure to improve that situation too.