New issue
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
templated lambda recognized as compare type #4242
Comments
Is the template part recognized correctly?
Can you provide a compileable source? |
Thanks for your reply! Yes the template seems to be recognized correctly. (see the new debug output below). New Debug ouput
Compileusing
|
can you close? |
I just tested with the latest master (Uncrustify-0.78.1-143-d2b66ae86) and the issue seems to still be present. |
@guy-maurel I don't want to push, I just want to make sure that all the necessary information is available. So, is anything still missing? |
Uncrustify version: 0.78.1
Issue
C++20's templated lambdas are not parsed correctly. Given the following code
The template part
<typename T>
is parsed as a part of a comparison (see debug output below).This has the effect that if
sp_compare
is set toforce
, the template part is formatted as follows:[] < typename T > (T t)
Expected
The template part is recognized correctly and is independent of
sp_compare
.Maybe a new option has to be added for controlling newlines for these templates to distinguish function templates and templated lambdas?
Debug output
The text was updated successfully, but these errors were encountered: