This revision was automatically updated to reflect the committed changes.
Closed by commit rL304135: clang-format: [JS] fix indenting bound functions.
(authored by mprobst).
Changed prior to commit:
https://reviews.llvm.org/D33640?vs=100589&id=100591#toc
Repository:
rL LLVM
https://reviews.
mprobst updated this revision to Diff 100589.
mprobst added a comment.
- fix comment
https://reviews.llvm.org/D33640
Files:
lib/Format/ContinuationIndenter.cpp
unittests/Format/FormatTestJS.cpp
Index: unittests/Format/FormatTestJS.cpp
==
djasper accepted this revision.
djasper added inline comments.
This revision is now accepted and ready to land.
Comment at: lib/Format/ContinuationIndenter.cpp:210
// FIXME: We should find a more generic solution to this problem.
- !(State.Column <= NewLineColumn && P
mprobst updated this revision to Diff 100588.
mprobst added a comment.
- fix comment
https://reviews.llvm.org/D33640
Files:
lib/Format/ContinuationIndenter.cpp
unittests/Format/FormatTestJS.cpp
Index: unittests/Format/FormatTestJS.cpp
==
mprobst created this revision.
Herald added a subscriber: klimek.
The previous fix to force build style wrapping if the previous token is a
closing parenthesis broke a peculiar pattern where users parenthesize the
function declaration in a bind call:
fn((function() { ... }).bind(this));
This