In JavaScript, classes are expressions, so they can appear e.g. in
argument lists.
var C = foo(class { bar() { return 1; } };
Paths
| Differential D29635
clang-format: [JS] handle parenthesized class expressions. ClosedPublic Authored by mprobst on Feb 7 2017, 5:49 AM.
Details Summary In JavaScript, classes are expressions, so they can appear e.g. in var C = foo(class { bar() { return 1; } };
Diff Detail
Event TimelineThis revision is now accepted and ready to land.Feb 7 2017, 5:55 AM Closed by commit rL294302: clang-format: [JS] handle parenthesized class expressions. (authored by mprobst). · Explain WhyFeb 7 2017, 6:16 AM This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 87416 cfe/trunk/lib/Format/UnwrappedLineParser.h
cfe/trunk/lib/Format/UnwrappedLineParser.cpp
cfe/trunk/unittests/Format/FormatTestJS.cpp
|