R# keeps on adding a space between macros and semicolons in C++

Completed

Hello,

It seems like R# keeps on adding a space between macros and semicolons in C++ but not between functions.

Here is an example:

WHEN("The original exception is assigned to an existing exception and the error code is retrieved from it") {
            Win32Exception exceptionAssignment;

            exceptionAssignment = exception;

            DWORD errorCode = exceptionAssignment.errorCode();

            THEN("It should match the error code that was provided to the original exception") {
                REQUIRE(errorCode == ERROR_BAD_FORMAT) ;
            }
        }

I didn't find any option to disable it, can anyone help me out with this? just to be crystal clear I don't want to have a space.

2 comments
Comment actions Permalink

Hello Eyal,

This is a bug in R++'s formatter, I filed https://youtrack.jetbrains.com/issue/RSCPP-16877 to track it and we'll try to fix it for the next release. As an adhoc workaround in the meantime, you could delete the comment at the end of INTERNAL_CATCH_TEST's macro definition in the Catch header - it seems to help.

If you've got any other problems with R++, please report them at https://resharper-support.jetbrains.com/hc/en-us/community/topics/200366089-ReSharper-C-  - we've got a dedicated support forum for R++.

Thanks!

0
Comment actions Permalink

Thank you! :)

0

Please sign in to leave a comment.