Skip to content

Don't remove trailing newline for function call #39

Description

@msanders

Is it possible to get spacecommander to respect this:

@import UIKit;

void main() {
    CGRect rect = CGRectMake(
        0.f,
        0.f,
        100.f,
        200.f
    );

    NSLog(@"%@", NSStringFromCGRect(rect));
}

Rather than converting it to this?

@import UIKit;

void main() {
    CGRect rect = CGRectMake(
        0.f,
        0.f,
        100.f,
        200.f);

    NSLog(@"%@", NSStringFromCGRect(rect));
}

This looks like a shortcoming with clang-format but not sure if it's possible to workaround with a script in spacecommander.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions