This is an archive of the discontinued LLVM Phabricator instance.

clang-format: Add Mozilla brace breaking style
ClosedPublic

Authored by poiru on Jul 1 2015, 2:46 PM.

Details

Summary

This adds a new brace breaking style for Mozilla style, but I wonder if we want to keep adding more vendor specific brace breaking styles? Perhaps we should change BreakBeforeBraces to be a set of flags like BreakBeforeBraces: [Class, Namespace]?

Diff Detail

Repository
rL LLVM

Event Timeline

poiru updated this revision to Diff 28902.Jul 1 2015, 2:46 PM
poiru retitled this revision from to clang-format: Add Mozilla brace breaking style.
poiru updated this object.
poiru added a reviewer: djasper.
poiru added a subscriber: Unknown Object (MLST).
djasper accepted this revision.Jul 3 2015, 1:06 AM
djasper edited edge metadata.

I agree that individual config flags for each type of brace would be better and then the existing brace styles could be presets for those flags. If you have a good idea on how to do/configure that, feel free to go ahead. Otherwise, I am fine with this for now.

This revision is now accepted and ready to land.Jul 3 2015, 1:06 AM
This revision was automatically updated to reflect the committed changes.