HomePhabricator

clang-format: [JS] Handle more keyword-named methods.

Authored by mprobst on Jan 16 2020, 2:49 AM.

Description

clang-format: [JS] Handle more keyword-named methods.

Summary:
Including do, for, and while, if, else, try, catch, in
addition to the previously handled fields. The unit test explicitly uses
methods, but this code path handles both fields and methods.

Reviewers: krasimir

Subscribers: cfe-commits

Tags: #clang

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

Details