diff --git a/tests/config/staging/UNI-25811.cfg b/tests/config/staging/UNI-25811.cfg deleted file mode 100644 index d6b709df09..0000000000 --- a/tests/config/staging/UNI-25811.cfg +++ /dev/null @@ -1,2 +0,0 @@ -sp_between_new_paren=add -sp_after_newop_paren=add \ No newline at end of file diff --git a/tests/config/staging/Uncrustify.Common-CStyle.cfg b/tests/config/staging/Uncrustify.Common-CStyle.cfg index 477a40b643..32568f43a1 100644 --- a/tests/config/staging/Uncrustify.Common-CStyle.cfg +++ b/tests/config/staging/Uncrustify.Common-CStyle.cfg @@ -653,7 +653,7 @@ sp_after_new=force # { Ignore, Add, Re sp_between_new_paren=remove # { Ignore, Add, Remove, Force } # Controls the spaces between new and '(' in 'new()'. # -#sp_after_newop_paren { Ignore, Add, Remove, Force } +sp_after_newop_paren=add # { Ignore, Add, Remove, Force } # Controls the spaces between ')' and 'type' in 'new(foo) BAR'. # #sp_inside_newop_paren { Ignore, Add, Remove, Force } diff --git a/tests/output/staging/10050-UNI-1337.cpp b/tests/output/staging/10050-UNI-1337.cpp index 59635c19f1..c1ba2eab29 100644 --- a/tests/output/staging/10050-UNI-1337.cpp +++ b/tests/output/staging/10050-UNI-1337.cpp @@ -4,6 +4,6 @@ void foo() { void* p1 = new(ptr) Block(bucketsSize); // becomes... - void* p1 = new(ptr)Block(bucketsSize); + void* p1 = new(ptr) Block(bucketsSize); // missing space after ')' } diff --git a/tests/output/staging/60054-UNI-25811.cpp b/tests/output/staging/60054-UNI-25811.cpp index baf321b6c2..67a3860f9b 100644 --- a/tests/output/staging/60054-UNI-25811.cpp +++ b/tests/output/staging/60054-UNI-25811.cpp @@ -1,5 +1,5 @@ void Foo() { - void* pAllocatedInput = new (std::nothrow) PointerTouchInfo[inputCount]; - void* int = new (std::nothrow) int[10]; -} \ No newline at end of file + void* pAllocatedInput = new(std::nothrow) PointerTouchInfo[inputCount]; + void* int = new(std::nothrow) int[10]; +} diff --git a/tests/regression.test b/tests/regression.test index 45419012c4..84f3c1a3b4 100644 --- a/tests/regression.test +++ b/tests/regression.test @@ -139,7 +139,7 @@ 60051 staging/Uncrustify.Cpp.cfg staging/UNI-11643.cpp 60052 staging/UNI-40685.cfg staging/UNI-40685.cs 60053 staging/Uncrustify.CSharp.cfg staging/UNI-36862.cs -60054 staging/UNI-25811.cfg staging/UNI-25811.cpp +60054 staging/Uncrustify.Cpp.cfg staging/UNI-25811.cpp 60055 staging/Uncrustify.Common-Cpp.cfg staging/UNI-29935.cpp 60056 staging/Uncrustify.Common-Cpp.cfg staging/UNI-29935.cpp 60057 staging/Uncrustify.Cpp.cfg staging/UNI-crash.cpp