-
Notifications
You must be signed in to change notification settings - Fork 10.8k
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 wrongly removes a space after "delete &&" #78789
Labels
Comments
rymiel
added a commit
to rymiel/llvm-project
that referenced
this issue
Jan 20, 2024
Simply always return false if tok::ampamp is passed into determineUnaryOperatorByUsage. I've done a fix earlier regarding ampamp becoming an unary operator, this would technically supersede that. I'm not sure why this hasn't been done before, I don't see any downsides. Fixes llvm#78789
Many thanks for having taken into account the report, and already provided a fix! |
owenca
added a commit
to owenca/llvm-project
that referenced
this issue
Apr 17, 2024
owenca
added a commit
that referenced
this issue
Apr 18, 2024
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
When a variable is named
delete
in C code, a space is removed in&&
conditions (but not in||
conditions):Tested with clang-format 16.0.6.
Could it be fixed? Maybe other special variables like
delete
are also impacted.The text was updated successfully, but these errors were encountered: