mirror of
https://github.com/bitcoin/bitcoin.git
synced 2026-03-02 09:46:14 +00:00
Merge bitcoin/bitcoin#34498: iwyu: Fix patch to prefer <cstdint>
b65a3d80093b992a2574d5762a8cd03ce2eb4412 iwyu: 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 ACK b65a3d80093b992a2574d5762a8cd03ce2eb4412 furszy: utACK b65a3d80093b992a2574d5762a8cd03ce2eb4412 willcl-ark: utACK b65a3d80093b992a2574d5762a8cd03ce2eb4412 Tree-SHA512: 695efdd44b92a642401738572e49c8b6591aa4463d387107fdf3d2f7c9c4b39f4097cb82413752caf9e8890dcca7246a894e562a1dd17023b05a7e455705beac
This commit is contained in:
commit
46e1288df2
@ -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[] = {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user