-
Notifications
You must be signed in to change notification settings - Fork 12.3k
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
[clang-format] Wrong formatting when template variable is last thing before closing parenthesis #120148
Comments
Hi, I guess the problem you mentioned comes from this part of the code. The below code in llvm-project/clang/lib/Format/TokenAnnotator.cpp. To verify this, you can add " SpaceAfterCStyleCast : true
|
Probably the issue is earlier. Why is this being treated as a cast? Given that the next token is a TT_BinaryOperator, the code says "fixme: detect correctly". |
We probably need to add a new option, e.g.
|
is formatted as
https://godbolt.org/z/9K11MrPz9
clang-format version 20.0.0git (https://github.com/llvm/llvm-project.git 8daf4f16fa08b5d876e98108721dd1743a360326)
The text was updated successfully, but these errors were encountered: