]> granicus.if.org Git - clang/commit
clang-format: [JS] Support more regex literals.
authorDaniel Jasper <djasper@google.com>
Wed, 29 Oct 2014 16:51:38 +0000 (16:51 +0000)
committerDaniel Jasper <djasper@google.com>
Wed, 29 Oct 2014 16:51:38 +0000 (16:51 +0000)
commit29f8cd7906aa177cfe17e56e0dd6e12da6f02d51
treebc831d497373edb6f2ebcb5985ce3d21ebe1a9ad
parent11a3310234511a806bb17fe6b412f94368af10ad
clang-format: [JS] Support more regex literals.

Previously a regex-literal containing "/*" would through clang-format
off, e.g.:
  var regex = /\/*$/;

Would lead to none of the following code to be formatted.

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