[clang-format] JSON formatting add new option for controlling newlines in json arrays
Working in a mixed environment of both vscode/vim with a team configured prettier configuration, this can leave clang-format and prettier fighting each other over the formatting of arrays, both simple arrays of elements. This review aims to add some "control knobs" to the Json formatting in clang-format to help align the two tools so they can be used interchangeably. This will allow simply arrays `[1, 2, 3]` to remain on a single line but will break those arrays based on context within that array. Happy to change the name of the option (this is the third name I tried) Reviewed By: HazardyKnusperkeks, owenpan Differential Revision: https://reviews.llvm.org/D133589
parent
f331ccca
Please register or sign in to comment