From 48622090c73d19a4c534a8667425fed839135a1c Mon Sep 17 00:00:00 2001 From: Martin Probst Date: Wed, 1 Jun 2016 15:22:47 +0000 Subject: clang-format: [JS] no ASI on `import {x as\n y}`. Summary: ASI did not handle the ES6 `as` operator correctly. Reviewers: djasper Subscribers: klimek, cfe-commits Differential Revision: http://reviews.llvm.org/D20817 llvm-svn: 271401 --- clang/lib/Format/SortJavaScriptImports.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'clang/lib/Format/SortJavaScriptImports.cpp') diff --git a/clang/lib/Format/SortJavaScriptImports.cpp b/clang/lib/Format/SortJavaScriptImports.cpp index a0484c862e9..28c3ae9f6a8 100644 --- a/clang/lib/Format/SortJavaScriptImports.cpp +++ b/clang/lib/Format/SortJavaScriptImports.cpp @@ -245,7 +245,7 @@ private: SourceLocation SymbolsEnd = Reference.Symbols.back().Range.getEnd(); Buffer += getSourceText(Reference.Range.getBegin(), SymbolsStart); // ... then the references in order ... - for (auto *I = Symbols.begin(), *E = Symbols.end(); I != E; ++I) { + for (auto I = Symbols.begin(), E = Symbols.end(); I != E; ++I) { if (I != Symbols.begin()) Buffer += ","; Buffer += getSourceText(I->Range); -- cgit v1.2.3