clang-format would previously drop the whitespace after extends in code such as:
class Foo extends {} {}
Where the first set of curly braces is an inline object literal type.
Paths
| Differential D36131
clang-format: [JS] handle object types in extends positions. ClosedPublic Authored by mprobst on Aug 1 2017, 1:26 AM.
Details Summary clang-format would previously drop the whitespace after extends in code such as: class Foo extends {} {} Where the first set of curly braces is an inline object literal type.
Diff Detail
Event TimelineThis revision is now accepted and ready to land.Aug 1 2017, 4:36 AM Closed by commit rL309695: clang-format: [JS] handle object types in extends positions. (authored by mprobst). · Explain WhyAug 1 2017, 9:04 AM This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 109078 lib/Format/TokenAnnotator.cpp
lib/Format/UnwrappedLineParser.cpp
unittests/Format/FormatTestJS.cpp
|