Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Don't remove trailing newline for function call #39

Open
msanders opened this issue Feb 23, 2016 · 1 comment
Open

Don't remove trailing newline for function call #39

msanders opened this issue Feb 23, 2016 · 1 comment

Comments

@msanders
Copy link

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.

@Airsola
Copy link

Airsola commented Oct 12, 2016

I get the same trouble . I define the function but i do not want break to a newline... How can I configuration the .clang-format

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants