This is an archive of the discontinued LLVM Phabricator instance.

[clang-format] Refine structured binding detection
ClosedPublic

Authored by krasimir on Mar 25 2019, 7:59 AM.

Details

Summary

Revision r356575 had the unfortunate consequence that now clang-format never
detects an ObjC call expression after &&.

This patch tries harder to distinguish between C++17 structured bindings and
ObjC call expressions and adds a few regression tests.

Diff Detail

Repository
rL LLVM

Event Timeline

krasimir created this revision.Mar 25 2019, 7:59 AM
Herald added a project: Restricted Project. · View Herald TranscriptMar 25 2019, 7:59 AM
Herald added a subscriber: cfe-commits. · View Herald Transcript
krasimir updated this revision to Diff 192117.Mar 25 2019, 8:47 AM
  • Use exsiting implementation
krasimir updated this revision to Diff 192118.Mar 25 2019, 8:49 AM
  • Cleanup
This revision is now accepted and ready to land.Mar 25 2019, 9:19 AM
This revision was automatically updated to reflect the committed changes.
Herald added a project: Restricted Project. · View Herald TranscriptMar 25 2019, 10:27 AM