[PATCH] D32864: clang-format: [JS] exponentiation operator

2017-05-04 Thread Martin Probst via Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL302156: clang-format: [JS] exponentiation operator (authored by mprobst). Changed prior to commit: https://reviews.llvm.org/D32864?vs=97829&id=97830#toc Repository: rL LLVM https://reviews.llvm.org/

[PATCH] D32864: clang-format: [JS] exponentiation operator

2017-05-04 Thread Daniel Jasper via Phabricator via cfe-commits
djasper accepted this revision. djasper added a comment. Thanks https://reviews.llvm.org/D32864 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[PATCH] D32864: clang-format: [JS] exponentiation operator

2017-05-04 Thread Martin Probst via Phabricator via cfe-commits
mprobst updated this revision to Diff 97829. mprobst added a comment. - support **= https://reviews.llvm.org/D32864 Files: lib/Format/FormatToken.h lib/Format/FormatTokenLexer.cpp unittests/Format/FormatTestJS.cpp Index: unittests/Format/FormatTestJS.cpp

[PATCH] D32864: clang-format: [JS] exponentiation operator

2017-05-04 Thread Daniel Jasper via Phabricator via cfe-commits
djasper accepted this revision. djasper added inline comments. This revision is now accepted and ready to land. Comment at: unittests/Format/FormatTestJS.cpp:1791 +TEST_F(FormatTestJS, Exponentiation) { + verifyFormat("squared = x ** 2;"); +} Also make this hand

[PATCH] D32864: clang-format: [JS] exponentiation operator

2017-05-04 Thread Martin Probst via Phabricator via cfe-commits
mprobst created this revision. Herald added a subscriber: klimek. While its precedence should be higher than multiplicative, LLVM does not have a level for that, so for the time being just treat it as multiplicative. https://reviews.llvm.org/D32864 Files: lib/Format/FormatToken.h lib/Forma