This is an archive of the discontinued LLVM Phabricator instance.

clang-format: [JS] recognize exported type definitions.
ClosedPublic

Authored by mprobst on Jun 7 2017, 3:30 AM.

Event Timeline

mprobst created this revision.Jun 7 2017, 3:30 AM
klimek added inline comments.Jun 7 2017, 4:28 AM
lib/Format/TokenAnnotator.cpp
985–986

Change comment to "or export type X ="?

unittests/Format/FormatTestJS.cpp
1232

I see 2 changes to ifs but only one new test?

mprobst updated this revision to Diff 101711.Jun 7 2017, 5:46 AM
  • add comment
mprobst marked 2 inline comments as done.Jun 7 2017, 5:46 AM
mprobst added inline comments.
unittests/Format/FormatTestJS.cpp
1232

The one test needs both conditions to succeed.

This revision is now accepted and ready to land.Jun 7 2017, 5:52 AM
This revision was automatically updated to reflect the committed changes.
mprobst marked an inline comment as done.