and & in types, as opposed to the bitwise operators, should not have |
whitespace around them (e.g. Foo<Bar|Baz>).
Paths
| Differential D18294
clang-format: [JS] no space in union and intersection types. ClosedPublic Authored by mprobst on Mar 19 2016, 6:09 AM.
Details
Summary
whitespace around them (e.g. Foo<Bar|Baz>).
Diff Detail Event TimelineThis revision is now accepted and ready to land.Mar 21 2016, 8:23 AM
Revision Contents
Diff 51159 lib/Format/FormatToken.h
lib/Format/TokenAnnotator.cpp
unittests/Format/FormatTestJS.cpp
|
Don't use braces and possibly pull the comment out of the if itself.