[PATCH] D17440: clang-format: [JS] do not wrap ES6 imports/exports.

Martin Probst via cfe-commits cfe-commits at lists.llvm.org
Mon Mar 21 10:04:28 PDT 2016


mprobst marked an inline comment as done.
mprobst added a comment.

As discussed offline, this matches existing very similar behaviour for destructured goog.require calls:

  js
  const {X, Y, Z} = goog.require('a'); // won't ever wrap
  import {X, Y, Z} from 'a';  // Shouldn't ever wrap

It also has the nice side effect that it prevents IWYU comments of the form:

  js
  import {X, Y, Z} from 'a';  // from //some/location

... from wrapping.


http://reviews.llvm.org/D17440





More information about the cfe-commits mailing list