mirror of
https://github.com/bitcoin/bitcoin.git
synced 2026-04-14 17:48:01 +02:00
Merge bitcoin/bitcoin#34498: iwyu: Fix patch to prefer <cstdint>
b65a3d8009iwyu: Fix patch to prefer `<cstdint>` (Hennadii Stepanov) Pull request description: The goal of the [patch](https://github.com/bitcoin/bitcoin/blob/master/ci/test/01_iwyu.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 PR fixes this behavior. ACKs for top commit: maflcko: lgtm ACKb65a3d8009furszy: utACKb65a3d8009willcl-ark: utACKb65a3d8009Tree-SHA512: 695efdd44b92a642401738572e49c8b6591aa4463d387107fdf3d2f7c9c4b39f4097cb82413752caf9e8890dcca7246a894e562a1dd17023b05a7e455705beac
This commit is contained in:
@@ -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[] = {
|
||||
|
||||
Reference in New Issue
Block a user