]> gcc.gnu.org Git - gcc.git/commit
Suggest including <stdint.h> or <cstdint> for [u]int[8|16|32|64]_t
authorMark Wielaard <mark@klomp.org>
Tue, 19 May 2020 22:55:00 +0000 (00:55 +0200)
committerMark Wielaard <mark@klomp.org>
Fri, 22 May 2020 21:22:30 +0000 (23:22 +0200)
commitaf114c38db819a6fea3e024c5143aaea7f9d33d4
tree8e3a2c9a3cdc3758bb4c6e29702d42c62dbdffb0
parent45c50b6a63a120d3eb6957883c4c7b968c84d010
Suggest including <stdint.h> or <cstdint> for [u]int[8|16|32|64]_t

Plus [u]intptr_t and associated constants.

Refactor the bool, true, false, <stdbool.h> code so it fits into the
new table based design.

gcc/c-family/ChangeLog:

* known-headers.cc (get_stdlib_header_for_name): Add a new
stdlib_hint array for stdbool and stdint.

gcc/testsuite/ChangeLog:

* gcc.dg/spellcheck-stdint.c: New test.
* g++.dg/spellcheck-stdint.C: Likewise.
gcc/c-family/ChangeLog
gcc/c-family/known-headers.cc
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/spellcheck-stdint.C [new file with mode: 0644]
gcc/testsuite/gcc.dg/spellcheck-stdint.c [new file with mode: 0644]
This page took 0.064038 seconds and 5 git commands to generate.