[all-commits] [llvm/llvm-project] 16212b: clang-format: [JS] support new assignment operators.

Martin Probst via All-commits all-commits at lists.llvm.org
Tue Nov 10 00:27:24 PST 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 16212b8b3e4fd5fbb73aecabf6f0b6fec91913d2
      https://github.com/llvm/llvm-project/commit/16212b8b3e4fd5fbb73aecabf6f0b6fec91913d2
  Author: Martin Probst <martin at probst.io>
  Date:   2020-11-10 (Tue, 10 Nov 2020)

  Changed paths:
    M clang/lib/Format/FormatToken.h
    M clang/lib/Format/FormatTokenLexer.cpp
    M clang/unittests/Format/FormatTestJS.cpp

  Log Message:
  -----------
  clang-format: [JS] support new assignment operators.

Before:

    a && = b;

After:

    a &&= b;

These operators are new additions in ES2021.

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




More information about the All-commits mailing list