The if condition was testing the current element, but
forgot to check the previous element (doh), so it
would fail depending on sort order of the imports.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Paths
| Differential D101020
clang-format: [JS] do not merge side-effect imports. ClosedPublic Authored by mprobst on Apr 21 2021, 10:54 PM.
Details Summary The if condition was testing the current element, but
Diff Detail
Event TimelineThis revision is now accepted and ready to land.Apr 21 2021, 11:58 PM This revision was landed with ongoing or failed builds.Apr 22 2021, 1:37 AM Closed by commit rGfbc6f42dbee5: clang-format: [JS] do not merge side-effect imports. (authored by mprobst). · Explain Why This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 339512 clang/lib/Format/SortJavaScriptImports.cpp
clang/unittests/Format/SortImportsTestJS.cpp
|