[PATCH] clang-format: support optionality markers in JS types
Martin Probst
martinprobst at google.com
Sat Apr 11 11:20:00 PDT 2015
Hi djasper,
This removes a space preceding optionality markers in JS types, e.g. in "function(x?: y) {}".
Also refactors the detection logic for TT_JsTypeColon to be a bit more readable.
http://reviews.llvm.org/D8987
Files:
lib/Format/FormatToken.h
lib/Format/TokenAnnotator.cpp
unittests/Format/FormatTestJS.cpp
EMAIL PREFERENCES
http://reviews.llvm.org/settings/panel/emailpreferences/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D8987.23641.patch
Type: text/x-patch
Size: 4008 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20150411/3850d97a/attachment.bin>
More information about the cfe-commits
mailing list