[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:

  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:

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

... from wrapping.


More information about the cfe-commits mailing list