-
Notifications
You must be signed in to change notification settings - Fork 13.5k
[clang-format] No space between between )
and {
at constructor/destructor when there is a semicolon at the end.
#79834
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
Labels
Comments
owenca
added a commit
to owenca/llvm-project
that referenced
this issue
Feb 17, 2024
Also reformat polly. Fixes llvm#79834.
Would it be possible to get this cherry-picked into the next patch release of llvm-18? It doesn't appear to have made it into llvm-18.1.2, even though the commit was merged before it was released. |
I've added #82097 to the LLVM 18 Release milestone. |
Thank you!
…On Mon, Apr 1, 2024, 8:19 PM Owen Pan ***@***.***> wrote:
I've added #82097 <#82097> to
the LLVM 18 Release milestone.
—
Reply to this email directly, view it on GitHub
<#79834 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAS2PKTJTZK3SWZZUFFYJ2LY3IPTHAVCNFSM6AAAAABCPRGELCVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDAMZRGAYDAOBWGA>
.
You are receiving this because you commented.Message ID:
***@***.***>
|
llvmbot
pushed a commit
to llvmbot/llvm-project
that referenced
this issue
Apr 5, 2024
…2097) Also reformat Polly. Fixes llvm#79834. (cherry picked from commit 8de2300)
tstellar
pushed a commit
to llvmbot/llvm-project
that referenced
this issue
Apr 10, 2024
…2097) Also reformat Polly. Fixes llvm#79834. (cherry picked from commit 8de2300)
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Environment
The tested v18 clang-format executable was built from latest source of 15.01.2024.
Setting in
.clang-format
is:Problem
No space between between
)
and{
at constructor/destructor when there is a semicolon at the end. A member function seems to work by adding the space, due to the fix #72733 in version 18.When adding something (in that case
int i;
) into the implementation, it seems to work for the constructor:It looks like #58251 mentions clang-format "cannot determine {} as an empty function".
For our case maybe a fix of #79833 would also workaround this in case you automatically let the semicolons removed. I don't know if they are related in some way, so I tried to split them into separate issues.
The text was updated successfully, but these errors were encountered: