[PATCH] c-family: Add fix-it suggestions for <stdlib.h> names [PR101052]
Mon Jun 14 17:53:49 GMT 2021
On Mon, 2021-06-14 at 13:17 +0100, Jonathan Wakely wrote:
> PR c++/101052
> * known-headers.cc (get_stdlib_header_for_name): Add known
> headers for EXIT_FAILURE, EXIT_SUCCESS, abort, atexit,
> exit, and getenv.
> * g++.dg/spellcheck-stdlib.C: Add checks for <cstdlib> names.
> * gcc.dg/spellcheck-stdlib.c: Likewise.
> There are no C tests for the functions because the C front-end
> give fix-it hints for them, it complains about mismatched implicit
> declarations. I assume this is why there were no existing tests for
> malloc, free, etc.
> Tested powerpc64le-linux. OK for trunk?
More information about the Gcc-patches