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
{{ message }}
Repository navigation
regression: nl_func_type_name / nl_func_proto_type_name always remove newline when return type is a reference #1360
This happens with the default uncrustify configuration: uncrustify --update-config-with-doc > default.cfg
Using the following input file:
class MyClass
{
// nl_func_proto_type_name = ignore is not being honored
int &
the_newline_after_the_return_type_is_removed();
// nl_func_type_name = ignore is not being honored
int &
the_newline_after_the_return_type_is_removed() {
}
};
In the generated output the newline between the return type int & and the function name the_newline_after_the_return_type_is_removed is removed:
...
int &the_newline_after_the_return_type_is_removed();
...
int &the_newline_after_the_return_type_is_removed() {
...
When using nl_func_type_name = ignore as well as nl_func_proto_type_name = ignore the expected output is unmodified compared to the input.
Activity