summaryrefslogtreecommitdiffstats
path: root/clang/lib/Format/SortJavaScriptImports.cpp
diff options
context:
space:
mode:
authorMartin Probst <martin@probst.io>2016-06-01 15:22:47 +0000
committerMartin Probst <martin@probst.io>2016-06-01 15:22:47 +0000
commit48622090c73d19a4c534a8667425fed839135a1c (patch)
tree225181900ac690941f879935be5c66f76c06bade /clang/lib/Format/SortJavaScriptImports.cpp
parent081f176a6227e8081ac875d278fb66e2d1d1dbde (diff)
downloadbcm5719-llvm-48622090c73d19a4c534a8667425fed839135a1c.tar.gz
bcm5719-llvm-48622090c73d19a4c534a8667425fed839135a1c.zip
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
Diffstat (limited to 'clang/lib/Format/SortJavaScriptImports.cpp')
-rw-r--r--clang/lib/Format/SortJavaScriptImports.cpp2
1 files changed, 1 insertions, 1 deletions
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);
OpenPOWER on IntegriCloud