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

2016-03-22 Thread Daniel Jasper via cfe-commits
djasper closed this revision. djasper added a comment. Submitted as r264055. http://reviews.llvm.org/D17440 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

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

2016-03-22 Thread Martin Probst via cfe-commits
mprobst added a comment. I've asked for it, but don't have it yet. Feel free to commit on by behalf. http://reviews.llvm.org/D17440 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

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

2016-03-22 Thread Daniel Jasper via cfe-commits
djasper accepted this revision. djasper added a comment. This revision is now accepted and ready to land. Looks good. Do you have commit access now? http://reviews.llvm.org/D17440 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.

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

2016-03-22 Thread Martin Probst via cfe-commits
mprobst marked 3 inline comments as done. mprobst added a comment. http://reviews.llvm.org/D17440 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

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

2016-03-22 Thread Martin Probst via cfe-commits
mprobst updated this revision to Diff 51269. mprobst added a comment. - Address review comments: - Add one more explanatory comment. http://reviews.llvm.org/D17440 Files: lib/Format/FormatToken.h lib/Format/TokenAnnotator.cpp unittests/Format/FormatTestJS.cpp Index: unittests/Format/Form

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

2016-03-22 Thread Martin Probst via cfe-commits
mprobst updated this revision to Diff 51268. mprobst added a comment. Rebase diff on current master. http://reviews.llvm.org/D17440 Files: lib/Format/FormatToken.h lib/Format/TokenAnnotator.cpp unittests/Format/FormatTestJS.cpp Index: unittests/Format/FormatTestJS.cpp ===

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

2016-03-22 Thread Martin Probst via cfe-commits
mprobst marked an inline comment as done. Comment at: lib/Format/TokenAnnotator.cpp:760 @@ +759,3 @@ + if (CurrentToken->is(tok::kw_export)) { +// Find the 'from' part of export {...} from '...'; +// The difference here is that "export {...};" should not be tr

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

2016-03-22 Thread Martin Probst via cfe-commits
mprobst updated this revision to Diff 51267. mprobst marked an inline comment as done. mprobst added a comment. - Address review comments: http://reviews.llvm.org/D17440 Files: lib/Format/FormatToken.h lib/Format/TokenAnnotator.cpp unittests/Format/FormatTestJS.cpp Index: unittests/Forma

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

2016-03-22 Thread Daniel Jasper via cfe-commits
djasper added inline comments. Comment at: lib/Format/TokenAnnotator.cpp:760 @@ +759,3 @@ + if (CurrentToken->is(tok::kw_export)) { +// Find the 'from' part of export {...} from '...'; +// The difference here is that "export {...};" should not be treated as --

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

2016-03-21 Thread Martin Probst via cfe-commits
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

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

2016-02-22 Thread Daniel Jasper via cfe-commits
djasper added a comment. I am missing a decent explanation here. In contrast to C++ #includes as well as goog.require, etc. The import/export statements actually provide syntactic structure and can name multiple entities. Why would it be a good idea to always write them into a single line? ==

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

2016-02-19 Thread Martin Probst via cfe-commits
mprobst added a comment. FYI this should not be submitted yet, there are still style discussions going on. http://reviews.llvm.org/D17440 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-com