owenca wrote: > I wish we'd made this removal an option rather than just removing it, what we > are seeing is reasonably formatted json or xml being streamed out is now > poorly written > > ```c++ > osjson << "{\n" > <<" \"name\": \"value\",\n" > <<" \"key\": \"abc\", \n" > <<" }"; > ``` > > now becomes > > ```c++ > osjson << "{\n" <<" \"name\": \"value\",\n <<" \"key\": \"abc\",\n << "}"; > ```
What version was used? I've just tried clang-format 18.1.3, and it's totally fine: ``` $ cat lessless.cpp osjson << "{\n" << " \"name\": \"value\",\n" << " \"key\": \"abc\", \n" << " }"; $ clang-format -version clang-format version 18.1.3 $ clang-format lessless.cpp | diff lessless.cpp - $ ``` https://github.com/llvm/llvm-project/pull/69871 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits