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.
Paths
| Differential D8987
clang-format: support optionality markers in JS types ClosedPublic Authored by mprobst on Apr 11 2015, 11:19 AM.
Details
Summary 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.
Diff Detail Event Timelinemprobst updated this object. This revision is now accepted and ready to land.Apr 13 2015, 8:04 AM
Revision Contents
Diff 23641 lib/Format/FormatToken.h
lib/Format/TokenAnnotator.cpp
unittests/Format/FormatTestJS.cpp
|