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" }
Paths
| Differential D147003
[clang-format] JSON Add ability to add a space before the colon ClosedPublic Authored by MyDeveloperDay on Mar 27 2023, 2:32 PM.
Details Summary 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" }
Diff Detail
Event TimelineMyDeveloperDay added inline comments.
MyDeveloperDay marked an inline comment as done.
MyDeveloperDay marked 2 inline comments as done. Comment Actionsadd missing unit test
This revision is now accepted and ready to land.Mar 29 2023, 1:08 PM This revision was landed with ongoing or failed builds.Mar 29 2023, 1:29 PM Closed by commit rGaf98f3b1f4db: [clang-format] JSON Add ability to add a space before the colon (authored by MyDeveloperDay). · Explain Why This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 509469 clang/docs/ClangFormatStyleOptions.rst
clang/include/clang/Format/Format.h
clang/lib/Format/Format.cpp
clang/lib/Format/TokenAnnotator.cpp
clang/unittests/Format/ConfigParseTest.cpp
clang/unittests/Format/FormatTestJson.cpp
|