This is an archive of the discontinued LLVM Phabricator instance.

[clang-format] Restrict the special handling for K&R C to C/C++
ClosedPublic

Authored by owenpan on Sep 10 2021, 1:42 AM.

Details

Summary

Commits 58494c856a15, f6bc614546e1, and 0fc27ef19670 added special handlings for K&R C function definitions and caused some JavaScript/TypeScript regressions which were addressed in D107267, D108538, and D108620. This patch could have prevented these known regressions and will fix any unknown ones.

Diff Detail

Event Timeline

owenpan requested review of this revision.Sep 10 2021, 1:42 AM
owenpan created this revision.
Herald added a project: Restricted Project. · View Herald TranscriptSep 10 2021, 1:42 AM
Herald added a subscriber: cfe-commits. · View Herald Transcript
owenpan edited the summary of this revision. (Show Details)Sep 10 2021, 2:26 AM
This revision is now accepted and ready to land.Sep 10 2021, 12:44 PM