iwyu: Fix patch to prefer <cstdint>

The goal of the patch is to suggest C++ headers rather than their C
counterparts. However, for fixed width integer types, the patched IWYU
currently suggests `<cinttypes>` where `<cstdint>` is sufficient.

This change fixes this behavior.
This commit is contained in:
Hennadii Stepanov
2026-02-04 08:28:10 +00:00
parent 3532e24213
commit b65a3d8009

View File

@@ -535,7 +535,7 @@ See: https://github.com/include-what-you-use/include-what-you-use/blob/clang_21/
{ "<sys/ustat.h>", kPrivate, "<ustat.h>", kPublic },
// Exports guaranteed by the C standard
- { "<stdint.h>", kPublic, "<inttypes.h>", kPublic },
+ { "<stdint.h>", kPrivate, "<inttypes.h>", kPrivate },
+ { "<cstdint>", kPublic, "<cinttypes>", kPublic },
};
const IncludeMapEntry stdlib_c_include_map[] = {