HomePhabricator

clang-format: Correctly calculate line lenghts for nest blocks.

Description

clang-format: Correctly calculate line lenghts for nest blocks.

If simple (one-statement) blocks can be inlined, the length needs to be
calculated correctly.

Before (in JavaScript but this also affects lambdas, etc.):

var x = {
  valueOf: function() { return 1; }
};

After:

var x = {valueOf: function() { return 1; }};

Details

Committed
djasperMay 22 2014, 1:36 AM
Parents
rL209409: ARM64: assert if we see i64 -> i64 extend in the DAG.
Branches
Unknown
Tags
Unknown

Event Timeline