SlickEdit Community
Archived Beta Discussions => SlickEdit 201x Beta Discussions => SlickEdit 2015 v20 Beta Discussion => Topic started by: mklein on October 22, 2015, 07:40:53 PM
-
Hi,
I filed a case on this (CAS-67408-9WXW) and was told it would be fixed in this version, but I'm still seeing issues with indentation of new lines inside of C++11 lambdas being not correct. The same repro in the case is still broken for me.
Let me know if you need any more info.
Thanks,
Matt
-
Ok, with the example I see from that case, it looks like doing the space after the 'for' no longer mis-indents that statement, but if I hit return right after the '{' of the lambda, it indenting way too much again. I'll take a look and see what's changed, thanks for the report.
-
Yeah, there were a few issues still hanging out there, including one where syntax expansions could still get pushed to the wrong column. Fixed for the next build.
-
Hi this is still not working the way that I would expect it to w/ RC4. Here is a small example:
cluster_data->cluster_->setInitializedCb([this]() -> void { <- enter here
* <- cursor put here
});
I would generally expect to have syntax indent X spaces (in my case 2) from the beginning of the block on the next line. This is what clang-format does when I auto format it and what would happen when opening a normal brace.
-
Odd, I can reproduce it. Taking a look.
-
Yes, the indent calculation I made was too simplistic. I've made some changes, and so far it is working as expected for old examples.
When you get a chance, load the attached c.e file (Macro -> Load Module), and give it a try.
-
Thanks will try it out now on RC5 and let you know if I see other issues.