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:
1 file changed
+1
-1
@@ -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 },
|
{ "<sys/ustat.h>", kPrivate, "<ustat.h>", kPublic },
|
||||||
// Exports guaranteed by the C standard
|
// Exports guaranteed by the C standard
|
||||||
- { "<stdint.h>", kPublic, "<inttypes.h>", kPublic },
|
- { "<stdint.h>", kPublic, "<inttypes.h>", kPublic },
|
||||||
+ { "<stdint.h>", kPrivate, "<inttypes.h>", kPrivate },
|
+ { "<cstdint>", kPublic, "<cinttypes>", kPublic },
|
||||||
};
|
};
|
||||||
|
|
||||||
const IncludeMapEntry stdlib_c_include_map[] = {
|
const IncludeMapEntry stdlib_c_include_map[] = {
|
||||||
|
|||||||
Reference in new issue
Block a user