[gjs: 3/9] CI: Fix stdint.h IWYU workaround
- From: Philip Chimento <pchimento src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gjs: 3/9] CI: Fix stdint.h IWYU workaround
- Date: Sat, 2 Jan 2021 20:52:41 +0000 (UTC)
commit ea4ecac693d50b5c8c133a990f36ad2786284b6b
Author: Philip Chimento <philip chimento gmail com>
Date: Thu Dec 10 15:32:56 2020 -0800
CI: Fix stdint.h IWYU workaround
This handles the case where IWYU wants to add <cstdint> but <stdint.h> is
already included.
tools/process_iwyu.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/tools/process_iwyu.py b/tools/process_iwyu.py
index df8d1559..7d4ac181 100755
--- a/tools/process_iwyu.py
+++ b/tools/process_iwyu.py
@@ -119,7 +119,7 @@ def output():
why = add.pop(CSTDINT, None)
if STDINTH in remove:
remove.pop(STDINTH, None)
- else:
+ elif STDINTH not in all_includes:
add[STDINTH] = why
if add_fwd_header:
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]