This is an archive of the discontinued LLVM Phabricator instance.

[clang-format] distinguish function type casts after 21c18d5a04316891110cecc2bf37ce51533decba
ClosedPublic

Authored by krasimir on Jun 14 2021, 2:51 AM.

Details

Summary

https://github.com/llvm/llvm-project/commit/21c18d5a04316891110cecc2bf37ce51533decba
improved the detection of multiplication in function call argument lists,
but unintentionally regressed the handling of function type casts (there
were no tests covering those).
This patch improves the detection of function type casts and adds a few tests.

Diff Detail

Event Timeline

krasimir requested review of this revision.Jun 14 2021, 2:51 AM
krasimir created this revision.
Herald added a project: Restricted Project. · View Herald TranscriptJun 14 2021, 2:51 AM
Herald added a subscriber: cfe-commits. · View Herald Transcript
krasimir edited the summary of this revision. (Show Details)Jun 14 2021, 2:53 AM
This revision is now accepted and ready to land.Jun 14 2021, 12:45 PM
This revision was automatically updated to reflect the committed changes.