Skip to content

Commit a6e8cd3

Browse files
committed
Merge bitcoin/bitcoin#34310: iwyu: Add missed line to IWYU patch
de509c6 iwyu: Add missed line to IWYU patch (Hennadii Stepanov) Pull request description: This PR makes IWYU suggest `<cassert>` over `<assert.h>`. Fixes bitcoin/bitcoin#34237. ACKs for top commit: maflcko: lgtm ACK de509c6 Tree-SHA512: edba91eaf36992f684be2920f5da8c13a25ba6d79b879b92193e2af106cd454a64d7c4cf9dabc25675490df9edbccff1fd54c9f393e984a3a7a628b1c65f6c53
2 parents f441370 + de509c6 commit a6e8cd3

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

ci/test/01_iwyu.patch

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -539,10 +539,11 @@ See: https://github.com/include-what-you-use/include-what-you-use/blob/clang_21/
539539
};
540540

541541
const IncludeMapEntry stdlib_c_include_map[] = {
542-
@@ -601,31 +601,31 @@ const IncludeMapEntry stdlib_c_include_map[] = {
542+
@@ -600,32 +600,32 @@ const IncludeMapEntry stdlib_c_include_map[] = {
543+
// https://github.com/cplusplus/draft/blob/c+%2B20/source/lib-intro.tex
543544
//
544545
// $ curl -s -N https://raw.githubusercontent.com/cplusplus/draft/c%2B%2B20/source/lib-intro.tex | sed -n '/begin{multicolfloattable}.*{headers.cpp.c}/,/end{multicolfloattable}/p' | grep tcode | perl -nle 'm/tcode{<c(.*)>}/ && print qq@ { "<$1.h>", kPublic, "<c$1>", kPublic },@' | sort
545-
{ "<assert.h>", kPublic, "<cassert>", kPublic },
546+
- { "<assert.h>", kPublic, "<cassert>", kPublic },
546547
- { "<complex.h>", kPublic, "<ccomplex>", kPublic },
547548
- { "<ctype.h>", kPublic, "<cctype>", kPublic },
548549
- { "<errno.h>", kPublic, "<cerrno>", kPublic },
@@ -568,6 +569,7 @@ See: https://github.com/include-what-you-use/include-what-you-use/blob/clang_21/
568569
- { "<uchar.h>", kPublic, "<cuchar>", kPublic },
569570
- { "<wchar.h>", kPublic, "<cwchar>", kPublic },
570571
- { "<wctype.h>", kPublic, "<cwctype>", kPublic },
572+
+ { "<assert.h>", kPrivate, "<cassert>", kPublic },
571573
+ { "<complex.h>", kPrivate, "<ccomplex>", kPublic },
572574
+ { "<ctype.h>", kPrivate, "<cctype>", kPublic },
573575
+ { "<errno.h>", kPrivate, "<cerrno>", kPublic },

0 commit comments

Comments
 (0)