Skip to content
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] functions without argument names are treated as K&R function and cause a break after closing paren #50812

Closed
mydeveloperday opened this issue Aug 13, 2021 · 9 comments
Labels
bugzilla Issues migrated from bugzilla clang-format

Comments

@mydeveloperday
Copy link
Contributor

Bugzilla Link 51470
Resolution FIXED
Resolved on Oct 11, 2021 20:29
Version trunk
OS Windows NT
Blocks #51489
CC @owenca,@tstellar
Fixed by commit(s) 4593492 f6928cf 643f2be 748f09f 4ab7fe9 c8d8248

Extended Description

bool foo(int A,Bar) override;

becoming

bool foo(int A,Bar) 
override;

This is likely related to the support for K&R that was added

https://reviews.llvm.org/D106112

The regression is resolve by

https://reviews.llvm.org/D107950 (4593492)

This is impacting the 13.0 RC branch

@owenca
Copy link
Contributor

owenca commented Aug 18, 2021

There are two follow-up commits: f6928cf and 643f2be

@tstellar
Copy link
Collaborator

tstellar commented Sep 2, 2021

There are two follow-up commits: f6928cf and 643f2be

Are there any more follow-ups or is this it?

@owenca
Copy link
Contributor

owenca commented Sep 2, 2021

This is it.

@tstellar
Copy link
Collaborator

tstellar commented Sep 8, 2021

The fix does not apply cleanly, could someone backport this and push a branch to their local github fork?

@owenca
Copy link
Contributor

owenca commented Sep 9, 2021

Can you try applying commits f6bc614 and 0fc27ef before f6928cf and 643f2be? Thanks!

@owenca
Copy link
Contributor

owenca commented Sep 9, 2021

Can you try applying commits f6bc614 and 0fc27ef before
f6928cf and 643f2be? Thanks!

I meant applying f6bc614 and 0fc27ef before 4593492, f6928cf, and 643f2be.

@owenca
Copy link
Contributor

owenca commented Sep 9, 2021

I created a 13.0.0-rc2 branch and applied the commits:
https://github.com/owenca/llvm-project/tree/13.0.0-rc2

@tstellar
Copy link
Collaborator

Merged:

@tstellar
Copy link
Collaborator

mentioned in issue #51489

@llvmbot llvmbot transferred this issue from llvm/llvm-bugzilla-archive Dec 11, 2021
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bugzilla Issues migrated from bugzilla clang-format
Projects
None yet
Development

No branches or pull requests

3 participants