mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
[SourceKit] Indentation: aligning parameters when argument names are present. rdar://24862107
Fix is in AST by removing unnecessary override. Originally reported by: https://twitter.com/JohnRHeaton/status/702526804138074112
This commit is contained in:
@@ -1967,7 +1967,7 @@ class FormatWalker: public ide::SourceEntityWalker {
|
||||
|
||||
// Function parameters are siblings.
|
||||
for (auto P : AFD->getParameterLists()) {
|
||||
for (auto param : *P) {
|
||||
for (ParamDecl* param : *P) {
|
||||
if (!param->isSelfParameter())
|
||||
addPair(param->getEndLoc(), FindAlignLoc(param->getStartLoc()),
|
||||
tok::comma);
|
||||
|
||||
Reference in New Issue
Block a user