We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hi, I'm using Uncrustify 0.80.1 and the default config from https://github.com/uncrustify/uncrustify/blob/master/documentation/htdocs/default.cfg and else if constexpr block is not correctly formatted
else if constexpr
if constexpr (std::is_same_v<T, bool>) { values.push_back(arg ? "true" : "false"); } else if constexpr (std::is_same_v<T, string>) { values.push_back(string::format("\"%@\"", arg)); } else if constexpr (std::is_same_v<T, json>) { values.push_back(arg.dump()); } else { std::cout << "Unsupported type" << std::endl; }
I'm expecting uncrustify to leave this untouched but it formats the code as follows
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Description
Hi, I'm using Uncrustify 0.80.1 and the default config from https://github.com/uncrustify/uncrustify/blob/master/documentation/htdocs/default.cfg and
else if constexpr
block is not correctly formattedOriginal
I'm expecting uncrustify to leave this untouched but it formats the code as follows
Formatted
The text was updated successfully, but these errors were encountered: