[PATCH] D147003: [clang-format] JSON Add ability to add a space before the colon

MyDeveloperDay via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Mon Mar 27 14:32:46 PDT 2023


MyDeveloperDay created this revision.
MyDeveloperDay added reviewers: owenpan, HazardyKnusperkeks, rymiel.
MyDeveloperDay added projects: clang, clang-format.
Herald added a project: All.
MyDeveloperDay requested review of this revision.

I've seen a couple of request for extra Json formatting to match prettier capability.

This patch allows for a space between the "key" and the colon

  {
      "A" : "value"
  }


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D147003

Files:
  clang/docs/ClangFormatStyleOptions.rst
  clang/include/clang/Format/Format.h
  clang/lib/Format/Format.cpp
  clang/lib/Format/TokenAnnotator.cpp
  clang/unittests/Format/FormatTestJson.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D147003.508800.patch
Type: text/x-patch
Size: 4879 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20230327/0b8e1442/attachment.bin>


More information about the cfe-commits mailing list