Skip to content

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.
@ivmaykov ivmaykov requested review from andozw and oreparaz as code owners May 13, 2023 00:40
@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