mprobst marked 2 inline comments as done.
mprobst added a comment.
Thanks for the review, appreciated!
================
Comment at: lib/Format/SortJavaScriptImports.cpp:160
@@ +159,3 @@
+ if (i + 1 < e) {
+ // Insert breaks between imports.
+ ReferencesText += "\n";
----------------
klimek wrote:
> Between categories of imports and imports and exports, right?
Added a comment.
================
Comment at: lib/Format/SortJavaScriptImports.cpp:170-171
@@ +169,4 @@
+ // Separate references from the main code body of the file.
+ if (FirstNonImportLine && FirstNonImportLine->First->NewlinesBefore < 2)
+ ReferencesText += "\n";
+
----------------
klimek wrote:
> Shouldn't we add 2 if NewlinesBefore is 0? Or is that syntactically
> impossible?
The next token is on a new line, so it gets a wrap just from that already. I've
added a test though.
http://reviews.llvm.org/D20198
_______________________________________________
cfe-commits mailing list
[email protected]
http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits