Open DD-Diana opened 3 years ago
I've reported bug https://developercommunity.visualstudio.com/t/cc-formatting-doesnt-work-well-with-struct-initial/1446139 against our shared formatter code.
FYI, the () around the types is not valid standard C++ and doesn't compile with the cl.exe compiler (it seems to be a gcc/clang extension)...that doesn't appear to affect formatting though.
Yes, the ()
around the types is C99, see compound literal.
Okay, that makes sense now.
FYI, you may also want to consider changing C_Cpp.formatting to "clangFormat" instead of "vcFormat" -- vcFormat may not support C formatting as well.
Bug type: Language Service
With VSCode 1.56 (April 2021) & cpptools 1.4.1
There are problems with the indentations of struct initializers.
Configuration: