r357567 started to regroup include block for Google style; it was meant to apply
only for C++. This patch reverts this for ObjC.
Details
Details
Diff Detail
Diff Detail
- Repository
- rL LLVM
Event Timeline
lib/Format/Format.cpp | ||
---|---|---|
787 ↗ | (On Diff #193696) | maybe we should also only use regroup for cpp? regroup is only supported in sortCppIncludes after all. |
lib/Format/Format.cpp | ||
---|---|---|
787 ↗ | (On Diff #193696) | 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. |
Comment Actions
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.
Comment Actions
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.
nit: "headers"