]> granicus.if.org Git - clang/commit
clang-format: [JS] no space in union and intersection types.
authorDaniel Jasper <djasper@google.com>
Mon, 21 Mar 2016 17:57:31 +0000 (17:57 +0000)
committerDaniel Jasper <djasper@google.com>
Mon, 21 Mar 2016 17:57:31 +0000 (17:57 +0000)
commit703ec475b843fd296ecf1287fdf9a580c64e4103
tree87523e9e8e350c631f746cc11e02fe1d29446e9a
parent77012dd049598b3d73663a15ebf1e95c5f27bad5
clang-format: [JS] no space in union and intersection types.

The operators | and & in types, as opposed to the bitwise operators,
should not have whitespace around them (e.g. `Foo<Bar|Baz>`).

Patch by Martin Probst. Thank you.

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