summaryrefslogtreecommitdiffstats
path: root/clang/lib/Format/FormatToken.h
diff options
context:
space:
mode:
authorDaniel Jasper <djasper@google.com>2016-03-21 17:57:31 +0000
committerDaniel Jasper <djasper@google.com>2016-03-21 17:57:31 +0000
commit91b1d1ab6c1c027fc5f9bc5e22184d2e572b4026 (patch)
tree4174d8c9f1acafe72d71a449571b54347227ea17 /clang/lib/Format/FormatToken.h
parent75bc676160c00f73cfdf0b5577b4e57196861bf9 (diff)
downloadbcm5719-llvm-91b1d1ab6c1c027fc5f9bc5e22184d2e572b4026.tar.gz
bcm5719-llvm-91b1d1ab6c1c027fc5f9bc5e22184d2e572b4026.zip
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. llvm-svn: 263961
Diffstat (limited to 'clang/lib/Format/FormatToken.h')
-rw-r--r--clang/lib/Format/FormatToken.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/clang/lib/Format/FormatToken.h b/clang/lib/Format/FormatToken.h
index 980c7be81d6..64d236bfb37 100644
--- a/clang/lib/Format/FormatToken.h
+++ b/clang/lib/Format/FormatToken.h
@@ -54,6 +54,7 @@ namespace format {
TYPE(JsComputedPropertyName) \
TYPE(JsFatArrow) \
TYPE(JsTypeColon) \
+ TYPE(JsTypeOperator) \
TYPE(JsTypeOptionalQuestion) \
TYPE(LambdaArrow) \
TYPE(LambdaLSquare) \
OpenPOWER on IntegriCloud