[PATCH] c-family: Add fix-it suggestions for <stdlib.h> names [PR101052]

Jakub Jelinek jakub@redhat.com
Mon Jun 14 17:13:29 GMT 2021


On Mon, Jun 14, 2021 at 01:17:10PM +0100, Jonathan Wakely via Gcc-patches wrote:
> commit 8f211596b34662f4b9a041fdf8634f69cf8efe4c
> Author: Jonathan Wakely <jwakely@redhat.com>
> Date:   Mon Jun 14 11:38:11 2021
> 
>     c-family: Add fix-it suggestions for <stdlib.h> names [PR101052]
>     
>             PR c++/101052
>     
>     gcc/c-family/ChangeLog:
>     
>             * known-headers.cc (get_stdlib_header_for_name): Add known
>             headers for EXIT_FAILURE, EXIT_SUCCESS, abort, atexit, calloc,
>             exit, and getenv.
>     
>     gcc/testsuite/ChangeLog:
>     
>             * g++.dg/spellcheck-stdlib.C: Add checks for <cstdlib> names.
>             * gcc.dg/spellcheck-stdlib.c: Likewise.

LGTM, thanks.

	Jakub



More information about the Gcc-patches mailing list