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

[core] clang-format the include order + fix resulting build breaks #606

Merged
merged 1 commit into from
May 13, 2023

Conversation

ivmaykov
Copy link
Contributor

Auto-format the include sections of all files using clang-format. Fix the resulting build breaks by adding missing includes. This makes the build less fragile as compilation success doesn't depend as much on include order.

We're not all the way there since this isn't a full "IWYU" (include what you use) pass. But, it's a start.

Auto-format the include sections of all files using clang-format.
Fix the resulting build breaks by adding missing includes.
This makes the build less fragile as compilation success doesn't depend
as much on include order.

We're not all the way there since this isn't a full "IWYU" (include what you use) pass.
But, it's a start.
@oreparaz
Copy link
Collaborator

What was the command used for this?

@ivmaykov
Copy link
Contributor Author

@oreparaz I selected the headers and used cmd-K cmd-F from VS Code ("Format selection"). This is with the clang-format extension and the .clang-format file from #587

@ivmaykov ivmaykov merged commit 0593eff into square:master May 13, 2023
@ivmaykov ivmaykov deleted the fix-imports branch May 13, 2023 01:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants