You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Uncrustify version 0.78.1 (also occurs in latest commit for the master branch - 42cbc77).
Use the default config settings, but set sp_arith to force.
A space is added after the reference (&) when it follows a cast, and when the cast is a custom type (not int, double, etc.). It appears to be incorrectly treated as sp_arith.
bool AddEventToList(TEvent event)
{
EventList->Add((TEvent) & event); // unexpected space after ampersand
EventList->Add((int) &event);
EventList->Add((TEvent) (&event)); // wrapping inside parens is a workaround.
EventList->Add((TEvent*) &event); // if the cast is a pointer, works
}
The text was updated successfully, but these errors were encountered:
Uncrustify version 0.78.1 (also occurs in latest commit for the master branch - 42cbc77).
Use the default config settings, but set
sp_arith
to force.A space is added after the reference (&) when it follows a cast, and when the cast is a custom type (not
int
,double
, etc.). It appears to be incorrectly treated assp_arith
.Expected results:
Actual results:
The text was updated successfully, but these errors were encountered: