Re: [PATCH v2 2/2] lib/string: shrink lib/string.i via IWYU

From: Kees Cook
Date: Thu Dec 14 2023 - 16:39:19 EST


On Thu, Dec 14, 2023 at 09:06:13PM +0000, tanzirh@xxxxxxxxxx wrote:
> This diff uses an open source tool include-what-you-use (IWYU) to modify
> the include list changing indirect includes to direct includes.
> IWYU is implemented using the IWYUScripts github repository which is a tool that is
> currently undergoing development. These changes seek to improve build times.
>
> This change to lib/string.c resulted in a preprocessed size of
> lib/string.i from 26371 lines to 5259 lines (-80%) for the x86
> defconfig.
>
> Link: https://github.com/ClangBuiltLinux/IWYUScripts
>

nit: Please drop this blank line to keep your tags together.

> Signed-off-by: Tanzir Hasan <tanzirh@xxxxxxxxxx>

I'm glad to see such a big difference with just a little header
tweaking. I look forward to more like this!

Reviewed-by: Kees Cook <keescook@xxxxxxxxxxxx>

--
Kees Cook