languages: Fix indentation for if/else statements in C/C++ without braces#41670
languages: Fix indentation for if/else statements in C/C++ without braces#41670osiewicz merged 3 commits intozed-industries:mainfrom
Conversation
|
Hey! I was also working on this today, but forgot to comment on the issue, so no worries at all. I would just like to point out that this applies to C++ as well (as the original example showed). Also, feel free to let me know if there was an error in what I was doing, but I ended up solving this by just modifying this: To be: (for both C & C++), thus not needing to modify Thoughts? |
|
Hey @teowelton, I tested your way and it works great, thanks! I've also updated this PR as it requires minimal changes that way.
Yeah, I was hoping to create a separate PR for C++ but maybe you can do that? |
acfe96a to
62d8209
Compare
I think that in this case having both in the same PR is much cleaner, since they fall under the same issue. The solution is the same too, simply modifying the |
|
@teowelton makes sense |
a395bca to
143c16c
Compare
This comment was marked as spam.
This comment was marked as spam.
…aces (zed-industries#41670) Closes zed-industries#41179 Release Notes: - Fixed indentation for if/else statements in C/C++ without braces
…industries#42866) Related to zed-industries#41670 Release Notes: - Cleaned up invalid init calls after recent API changes in zed-industries#42238
Closes #41179
Release Notes: