]> granicus.if.org Git - clang/commit
clang-format: [JS] Improve line-wrapping behavior of template strings.
authorDaniel Jasper <djasper@google.com>
Mon, 20 Feb 2017 14:51:16 +0000 (14:51 +0000)
committerDaniel Jasper <djasper@google.com>
Mon, 20 Feb 2017 14:51:16 +0000 (14:51 +0000)
commitbe0c4cf65e9bfe7a79ed262b816be9c7e12e988d
tree00dfcf5f7f62edf9b01ac8e0f4606d4848e3ae83
parentc36816c5a7b8f3deb81a26da49150271de514688
clang-format: [JS] Improve line-wrapping behavior of template strings.

Specifically, similar to other blocks, clang-format now wraps both
after "${" and before the corresponding "}", if the contained
expression spans multiple lines.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@295663 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Format/ContinuationIndenter.cpp
lib/Format/FormatToken.h
lib/Format/TokenAnnotator.cpp
unittests/Format/FormatTestJS.cpp