This is an archive of the discontinued LLVM Phabricator instance.

[clang-format] Do not merge short C# class definitions into one line
ClosedPublic

Authored by jbcoe on Feb 5 2020, 7:04 AM.

Details

Summary

Skip access specifiers before record definitions when deciding whether or not to wrap lines so that C# class definitions do not get wrapped into a single line.

Diff Detail

Event Timeline

jbcoe created this revision.Feb 5 2020, 7:04 AM
krasimir accepted this revision.Feb 5 2020, 7:48 AM

Thanks! Looks like this is OK also for Java, I'm not sure about ObjC. If it happens to affect other languages negatively, we can restrict by adding language-specific checks.

This revision is now accepted and ready to land.Feb 5 2020, 7:48 AM
This revision was automatically updated to reflect the committed changes.
Herald added a project: Restricted Project. · View Herald TranscriptFeb 5 2020, 9:46 AM
Herald added a subscriber: cfe-commits. · View Herald Transcript