This is an archive of the discontinued LLVM Phabricator instance.

[clang-format] Fix align consecutive declarations over function pointers
ClosedPublic

Authored by gedare on Jun 22 2023, 1:10 PM.

Details

Summary

Fixes a bug (Github Issue #63451) that prevents alignment from proceeding through a function pointer in a list of declarations.

https://github.com/llvm/llvm-project/issues/63451

Diff Detail

Event Timeline

gedare created this revision.Jun 22 2023, 1:10 PM
Herald added projects: Restricted Project, Restricted Project, Restricted Project. · View Herald TranscriptJun 22 2023, 1:10 PM
Herald added a subscriber: cfe-commits. · View Herald Transcript
gedare requested review of this revision.Jun 22 2023, 1:10 PM

Split this out from D153579. This requires D153579 first, for the test cases to pass.

I'm not sure how to properly stack dependent revs.

Can you reference the GitHub bug

This revision is now accepted and ready to land.Jun 24 2023, 3:47 AM
MyDeveloperDay accepted this revision.Jun 26 2023, 1:44 AM
MyDeveloperDay edited the summary of this revision. (Show Details)
owenpan added inline comments.Jun 26 2023, 5:24 PM
clang/lib/Format/WhitespaceManager.cpp
869–871

We should merge the two if statements.

gedare updated this revision to Diff 537359.Jul 5 2023, 8:14 AM

Merge the two if statements.

gedare edited the summary of this revision. (Show Details)Jul 5 2023, 8:14 AM
gedare requested review of this revision.Jul 5 2023, 8:15 AM
gedare marked an inline comment as done.
owenpan accepted this revision.Jul 5 2023, 12:38 PM
This revision is now accepted and ready to land.Jul 5 2023, 12:38 PM
This revision was landed with ongoing or failed builds.Jul 6 2023, 2:17 AM
This revision was automatically updated to reflect the committed changes.