[PATCH] D144317: [clang-format] Fix handling of TypeScript tuples with optional last member

Owen Pan via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Sat Feb 18 12:41:06 PST 2023


owenpan added reviewers: krasimir, HazardyKnusperkeks, rymiel.
owenpan added inline comments.


================
Comment at: clang/unittests/Format/FormatTestJS.cpp:2826
+TEST_F(FormatTestJS, TupleTypeWithOptionalLastElement) {
+  verifyFormat("type T = [number?];");
+}
----------------
Can you move it into the `OptionalTypes` test above?


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D144317



More information about the cfe-commits mailing list