[PATCH] D18294: clang-format: [JS] no space in union and intersection types.
Martin Probst via cfe-commits
cfe-commits at lists.llvm.org
Mon Mar 21 08:28:09 PDT 2016
mprobst added inline comments.
================
Comment at: lib/Format/TokenAnnotator.cpp:2154
@@ -2141,1 +2153,3 @@
return Style.SpacesInAngles;
+ if (Style.Language == FormatStyle::LK_JavaScript &&
+ (Left.is(TT_JsTypeOperator) || Right.is(TT_JsTypeOperator)))
----------------
djasper wrote:
> Can we put this into the JavaScript specific section above?
Done, wasn't sure if this should go next to binary operators, or next to JS stuff...
http://reviews.llvm.org/D18294
More information about the cfe-commits
mailing list