r357567 started to regroup include block for Google style; it was meant to apply
only for C++. This patch reverts this for ObjC.
Details
Diff Detail
- Repository
- rC Clang
- Build Status
Buildable 30051 Build 30050: arc lint + arc unit
Event Timeline
lib/Format/Format.cpp | ||
---|---|---|
787 | maybe we should also only use regroup for cpp? regroup is only supported in sortCppIncludes after all. |
lib/Format/Format.cpp | ||
---|---|---|
787 | Yeah, but they are just not used for unrelated languages. This argument applies to the other fields in the IncludeStyle group above this. I'd lean on keeping this as-is. |
Only the C++ Style Guide had been updated.
Practically, clang-format would need to be updated to recognize ObjC-specific code patterns better before being able to apply regrouping to ObjC code in the wild.
I'd expect that sometime in the future the ObjC-style catches up.
Please don't land changes with open discussion.
Objective-C++ basically is C++ code. I don't think it makes sense to make a distinction here.
Looks good to me.
cfe/trunk/lib/Format/Format.cpp | ||
---|---|---|
881 ↗ | (On Diff #193700) | nit: "headers" |
maybe we should also only use regroup for cpp? regroup is only supported in sortCppIncludes after all.