Previously clang-format would not break after any !. However in TypeScript, ! can be used as a post fix operator for non-nullability:
x.foo()!.bar()!;
With this change, clang-format will wrap after the ! if it is likely a post-fix non null operator.
Differential D30705
clang-format: [JS] allow breaking after non-null assertions. Authored by mprobst on Mar 7 2017, 10:30 AM.
Details Previously clang-format would not break after any !. However in TypeScript, ! can be used as a post fix operator for non-nullability: x.foo()!.bar()!; With this change, clang-format will wrap after the ! if it is likely a post-fix non null operator.
Diff Detail
Event Timeline
Comment Actions
| |||||||||||||||||||||