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

Sort and force grouping of includes #4172

Merged
merged 8 commits into from
Nov 27, 2022
Merged

Sort and force grouping of includes #4172

merged 8 commits into from
Nov 27, 2022

Conversation

pajlada
Copy link
Member

@pajlada pajlada commented Nov 20, 2022

Pull request checklist:

  • CHANGELOG.md was updated, if applicable

Description

This change enforces strict include grouping using IncludeCategories

In addition to adding this to the .clang-format file and applying it in the tests/src and src directories, I also did the following small changes:

  • In ChatterSet.hpp, I changed lrucache to a <>include
  • In Irc2.hpp, I change common/SignalVector.hpp to a "project-include"
  • In AttachedWindow.cpp, NativeMessaging.cpp, WindowsHelper.hpp, BaseWindow.cpp, and StreamerMode.cpp, I disabled clang-format for the windows-includes
  • In WindowDescriptors.hpp, I added the missing vector include. It was previously not needed because the include was handled by another file that was previously included first.
  • clang-format minimum version has been bumped, so Ubuntu version used in the check-formatting job has been bumped to 22.04 (which is the latest LTS)

@pajlada pajlada marked this pull request as draft November 20, 2022 21:17
@pajlada pajlada marked this pull request as ready for review November 20, 2022 22:00
Copy link
Contributor

@kornes kornes left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks good 👍

src/.clang-format Outdated Show resolved Hide resolved
src/.clang-format Outdated Show resolved Hide resolved
@pajlada pajlada enabled auto-merge (squash) November 27, 2022 17:09
@pajlada pajlada merged commit 032f290 into master Nov 27, 2022
@pajlada pajlada deleted the chore/sort-includes branch November 27, 2022 18:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants