https://github.com/llvm/llvm-project/issues/52677
clang-format doesn't format C# switch expressions very well.
int x = a switch { 1 => (0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0), 2 => 1, _ => 2 };
int x = a switch { 1 => (0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0), 2 => 1, _ => 2 };
Start with this small use case and try and improve the output. I'll look for other examples to add as tests