further #include cleanup (IWYU)
Peter Eisentraut <peter@eisentraut.org>
From: Peter Eisentraut <peter@eisentraut.org>
To: pgsql-hackers <pgsql-hackers@postgresql.org>
Date: 2024-10-20T07:50:00Z
Lists: pgsql-hackers
Attachments
- 0001-Remove-unused-include-s-from-backend-.c-files.patch (text/plain) patch 0001
- 0002-Remove-unused-include-s-from-contrib-.c-files.patch (text/plain) patch 0002
- 0003-Remove-unused-include-s-from-pl-.c-files.patch (text/plain) patch 0003
- 0004-Remove-unused-include-s-from-src-test-.c-files.patch (text/plain) patch 0004
- 0005-Remove-unused-include-s-from-bin-.c-files.patch (text/plain) patch 0005
This is a continuation of [0] ("backend *.c #include cleanup (IWYU)"),
which removed a bunch of unneeded #include's, found by the
include-what-you-use (IWYU) tool. I went through the rest of the code
and did similar cleanups. The patches are organized by code area, but
they are otherwise not separate. The first patch ("Remove unused
#include's from backend .c files") is mostly stuff that is new since
[0]. The remaining patches deal with code that wasn't touched by [0],
so a lot of the changes have similar patterns as [0].
[0]:
https://www.postgresql.org/message-id/flat/af837490-6b2f-46df-ba05-37ea6a6653fc%40eisentraut.org
Commits
-
Remove unused #include's from bin .c files
- ecb5af779877 18.0 landed
-
Remove unused #include's from contrib, pl, test .c files
- 9be4e5d293b5 18.0 landed
-
Remove unused #include's from backend .c files
- e18512c000ee 18.0 landed
-
Replace most usages of ntoh[ls] and hton[sl] with pg_bswap.h.
- 0ba99c84e8c7 11.0 cited