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
- Repository
- rL LLVM
Event Timeline
lib/Format/UsingDeclarationsSorter.cpp | ||
---|---|---|
79 ↗ | (On Diff #119405) | 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. |