benhamilton added a comment.

> A FormatStyle already contains a reference to the FormatStyleSet it was 
> created from and you can get the FormatStyle for a different language through 
> that. It might just be a bit hacky and not easy to understand as is, but 
> maybe there are easy abstractions that we could build around it.

Hmm, I didn't know that. That would make a short-term hack easier.

> At any rate, your proposal (always indenting for ObjC code) is also fine by 
> me. Do you think that survey Google-style ObjC code is enough? What does 
> Xcode do by default?

Apple SDKs have no line length limit and don't wrap code as far as I can tell, 
so they don't hit this issue.

Xcode neither indents nor aligns colons by default. It does no code formatting 
at all as far as I can tell.

I guess the question is, are there other big clients of Objective-C formatting 
via clang-format besides Google? I looked at the existing public coding styles, 
and none of them appear to talk about this issue.

  rC Clang

cfe-commits mailing list

Reply via email to