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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions