[PATCH] D117197: [clang-format] Add new option to support adding a space between Javascript Union and Intersection types

Marek Kurdej via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Thu Jan 13 02:30:20 PST 2022


curdeius added inline comments.


================
Comment at: clang/unittests/Format/FormatTestJS.cpp:1705-1713
   verifyFormat("let x: {x: number|null} = {x: number | null};");
   verifyFormat("let nested: {x: {y: number|null}};");
   verifyFormat("let mixed: {x: [number|null, {w: number}]};");
   verifyFormat("class X {\n"
                "  contructor(x: {\n"
                "    a: a|null,\n"
                "    b: b|null,\n"
----------------
Suggestion.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D117197/new/

https://reviews.llvm.org/D117197



More information about the cfe-commits mailing list