HomePhabricator

clang-format: [JS] support null operators.

Authored by mprobst on Nov 7 2019, 2:39 PM.

Description

clang-format: [JS] support null operators.

Summary:
JavaScript / TypeScript is adding two new operators: the null
propagating operator ?. and the nullish coalescing operator ??.

const x = foo ?? 'default';
const z = foo?.bar?.baz;

This change adds support to lex and format both.

Reviewers: krasimir

Subscribers: cfe-commits

Tags: #clang

Differential Revision: https://reviews.llvm.org/D69971

Details

Committed
mprobstNov 11 2019, 7:35 AM
Differential Revision
D69971: clang-format: [JS] support null operators.
Parents
rG48b7068beca9: [libc++] Mark __call_once_proxy as hidden and internal
Branches
Unknown
Tags
Unknown