Hacker News new | ask | show | jobs
by secondcoming 825 days ago
> Could you give an example?

One thing clang-format ruined for me is when I laid code out in the same indentation as the JSON it was generating.

E.g.

   json
       .startObject("root")
       .startArray("data")
           .insert(1)
       .endArray()
       .endObject();
became

    json
       .startObject("root")
       .startArray("data")
       .insert(1)
       .endArray()
       .endObject();