llvm-project/clang/unittests/Format
Martin Probst 6f43efbdde clang-format: [JS] fix an assertion failure caused by shrinking sources.
Summary:
The JavaScript import sorter has a corner condition that can cause the overall
source text length to shrink. This change circumvents the issue by appending
trailing space in the line after the import blocks to match at least the
previous source code length.

This needs a better long term fix, but this fixes the immediate issue.

Reviewers: alexeagle, djasper

Subscribers: klimek

Differential Revision: http://reviews.llvm.org/D21108

llvm-svn: 272142
2016-06-08 14:04:04 +00:00
..
CMakeLists.txt clang-format: [JS] sort ES6 imports. 2016-05-20 11:24:24 +00:00
CleanupTest.cpp [clang-format] make header guard identification stricter (with Lexer). 2016-06-06 11:00:13 +00:00
FormatTest.cpp clang-format: Fix incorrect calculation of "length" of /**/ comments. 2016-06-08 09:45:08 +00:00
FormatTestJS.cpp clang-format: [JS] no ASI on `import {x as\n y}`. 2016-06-01 15:22:47 +00:00
FormatTestJava.cpp clang-format: [Java] Remove unnecessary line break after complex annotations 2016-01-27 20:14:23 +00:00
FormatTestProto.cpp clang-format: [Proto] Basic support for options with <> for repeated fields. 2016-01-04 07:28:12 +00:00
FormatTestSelective.cpp clang-format: [JS] Make requoting of JavaScript string literals only 2016-03-17 13:03:41 +00:00
FormatTestUtils.h Header guard canonicalization, clang part. 2014-08-13 16:25:19 +00:00
SortImportsTestJS.cpp clang-format: [JS] fix an assertion failure caused by shrinking sources. 2016-06-08 14:04:04 +00:00
SortIncludesTest.cpp clang-format: Make include sorting's main include detection configurable. 2016-03-21 14:11:27 +00:00