This is an archive of the discontinued LLVM Phabricator instance.

clang-format: [JS] fix `of` detection.
ClosedPublic

Authored by mprobst on Feb 18 2018, 6:47 AM.

Details

Summary

of is only a keyword when after an identifier, but not when after
an actual keyword.

Before:

return of (a, b, c);

After:

return of(a, b, c);

Diff Detail

Repository
rL LLVM

Event Timeline

mprobst created this revision.Feb 18 2018, 6:47 AM
djasper accepted this revision.Feb 19 2018, 4:10 AM

Looks good.

This revision is now accepted and ready to land.Feb 19 2018, 4:10 AM
This revision was automatically updated to reflect the committed changes.