aboutsummaryrefslogtreecommitdiff
path: root/lldb/source/Commands/CommandObjectSyntax.cpp
diff options
context:
space:
mode:
authorMartin Probst <martin@probst.io>2017-06-06 12:38:29 +0000
committerMartin Probst <martin@probst.io>2017-06-06 12:38:29 +0000
commit384232766bb678254d5ad6b1ed909647c68b7eb9 (patch)
treee1dbf16210b4a9226abe64812717b21850ad439f /lldb/source/Commands/CommandObjectSyntax.cpp
parent83c2b13b660e4fe1a041ea6ab43d1a6f1a1ff021 (diff)
downloadllvm-384232766bb678254d5ad6b1ed909647c68b7eb9.zip
llvm-384232766bb678254d5ad6b1ed909647c68b7eb9.tar.gz
llvm-384232766bb678254d5ad6b1ed909647c68b7eb9.tar.bz2
clang-format: [JS] Correctly Indent Nested JavaScript Literals.
Nested literals are sometimes only indented by 2 spaces, instead of respecting the IndentWidth option. There are existing unit tests (FormatTestJS.ArrayLiterals) that only pass because the style used to test them uses an IndentWidth of 2. This change removes the magic 2 and always uses the IndentWidth. I've added 6 tests. The first 4 of these tests fail before this change, while the last 2 already pass, but were added just to make sure it the change works with all types of braces. Patch originally by Jared Neil, thanks! Differential Revision: https://reviews.llvm.org/D33857 llvm-svn: 304791
Diffstat (limited to 'lldb/source/Commands/CommandObjectSyntax.cpp')
0 files changed, 0 insertions, 0 deletions