[PATCH] D48030: clang-format: [JS] strict prop init annotation.

2018-06-11 Thread Martin Probst via Phabricator via cfe-commits
This revision was not accepted when it landed; it landed in state "Needs Review". This revision was automatically updated to reflect the committed changes. Closed by commit rL334415: clang-format: [JS] strict prop init annotation. (authored by mprobst, committed by ). Herald added a subscriber: l

[PATCH] D48030: clang-format: [JS] strict prop init annotation.

2018-06-11 Thread Martin Probst via Phabricator via cfe-commits
mprobst updated this revision to Diff 150770. mprobst added a comment. fix typo in test Repository: rC Clang https://reviews.llvm.org/D48030 Files: lib/Format/TokenAnnotator.cpp unittests/Format/FormatTestJS.cpp Index: unittests/Format/FormatTestJS.cpp =

[PATCH] D48030: clang-format: [JS] strict prop init annotation.

2018-06-11 Thread Martin Probst via Phabricator via cfe-commits
mprobst created this revision. mprobst added a reviewer: krasimir. TypeScript uses the `!` token for strict property initialization assertions, as in: class X { strictPropAsserted!: string; } Previously, clang-format would wrap between the `!` and the `:` for overly long lines. This patc