difference with clang-format for spaces before parentheses

space before parentheses rules are different, I want no space before empty, space when non-empty.

But in r# it'll always put a space when it's the declaration.

How can I get r# to do the same as clang-format?

clang-format:

    void ftest1 (int a);
    void ftest2 (int a) { a++; }
    void ftest3();

    void ftest4()
    {
        int a;
        ftest3();
        ftest2 (a);
    };
 

r#:

    void ftest1 (int a);
    void ftest2 (int a) { a++; }
    void ftest3 ();

    void ftest4 ()
    {
        int a;
        ftest3();
        ftest2 (a);
    };
 

 

0
1 comment

Hello,

R#'s formatter does not let you distinguish between empty and non-empty parens. Filed https://youtrack.jetbrains.com/issue/RSCPP-35003/Configure-space-before-opening-parens-for-empty-non-empty-parens-separately.

Thanks!

0

Please sign in to leave a comment.