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

run IWYU for some files #72906

Merged
merged 2 commits into from
Apr 9, 2024
Merged

run IWYU for some files #72906

merged 2 commits into from
Apr 9, 2024

Conversation

Brambor
Copy link
Contributor

@Brambor Brambor commented Apr 8, 2024

Summary

None

Purpose of change

IWYU changes are good.

Describe the solution

The first commit changes #includes in selected files to comply with IWYU.

  • I did run into #include <cxxabi.h> issue for game.cpp. Including it broke the compilation. According to the issue, I deduced that IWYU would not require it in the new version.

The second commit adds some includes to other files so that the project compiles.

  • IWYU would suggest these changes. Except for sdltiles.cpp, where there are #ifdefs that confuse IWYU.

Describe alternatives you've considered

Testing

Compiled locally on my Windows machine Visual Studio with tiles on.

Additional context

I remember there was some fiasco last time when #71141 and #71183 were merged in the same merge commit. I ask the reviewer to not include any other iwyu changes in their merge. Right now, there aren't any anyway.

I work on these files somewhere else and use IWYU to check that the files I changed have good includes. By making this PR, I improve my local noise ratio.

@github-actions github-actions bot added Info / User Interface Game - player communication, menus, etc. Mutations / Traits / Professions/ Hobbies Mutations / Traits / Professions/ Hobbies [C++] Changes (can be) made in C++. Previously named `Code` Mechanics: Weather Rain, snow, portal storms and non-temperature environment astyled astyled PR, label is assigned by github actions json-styled JSON lint passed, label assigned by github actions BasicBuildPassed This PR builds correctly, label assigned by github actions labels Apr 8, 2024
@github-actions github-actions bot removed the BasicBuildPassed This PR builds correctly, label assigned by github actions label Apr 8, 2024
@github-actions github-actions bot added the BasicBuildPassed This PR builds correctly, label assigned by github actions label Apr 9, 2024
@kevingranade kevingranade merged commit fe6bfdd into CleverRaven:master Apr 9, 2024
23 of 27 checks passed
@Brambor Brambor deleted the iwyu branch April 9, 2024 07:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
astyled astyled PR, label is assigned by github actions BasicBuildPassed This PR builds correctly, label assigned by github actions [C++] Changes (can be) made in C++. Previously named `Code` Info / User Interface Game - player communication, menus, etc. json-styled JSON lint passed, label assigned by github actions Mechanics: Weather Rain, snow, portal storms and non-temperature environment Mutations / Traits / Professions/ Hobbies Mutations / Traits / Professions/ Hobbies
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants