[PATCH] D9237: Update block formatting to behave like Xcode

Tony Arnold via cfe-commits cfe-commits at lists.llvm.org
Sun Feb 28 16:47:52 PST 2016


tonyarnold added a comment.

@djasper so was the decision here to not merge these options?

I think it's fair that you require a documented style guide somewhere (which Apple don't currently publish), however it would be good to at least have generic options in clang-format that allow us to replicate the unpublished style, even without official support in the tool.

What do we need to do to get support for options like `ObjCAvoidLineBreaksForInlineBlocks` and `ObjCLeftAlignMultipleBlocks` into clang-format? There are potentially one or two more options around dictionary/array literal alignment/newlines that I'd like to add — but I'm not going to spend any time drawing up PRs if there's no way they'll ever be merged.


http://reviews.llvm.org/D9237





More information about the cfe-commits mailing list