This patch enables sorting the full block of using declarations when
some line is affected.
Details
Details
- Reviewers
djasper - Commits
- rG9da65aa8585a: [clang-format] Sort whole block of using declarations while partially formatting
rC316130: [clang-format] Sort whole block of using declarations while partially formatting
rL316130: [clang-format] Sort whole block of using declarations while partially formatting
Diff Detail
Diff Detail
- Build Status
Buildable 11269 Build 11269: arc lint + arc unit
Event Timeline
lib/Format/UsingDeclarationsSorter.cpp | ||
---|---|---|
79 | I'd prefer to iterator over UsingDeclarations here and see whether any of the contained lines is Affected. Seems like a much more encapsulated way to do this and prevents you from needing the awkward in-out parameter. |
I'd prefer to iterator over UsingDeclarations here and see whether any of the contained lines is Affected. Seems like a much more encapsulated way to do this and prevents you from needing the awkward in-out parameter.