[gjs/esm/static-imports: 8/13] CI: Fix stdint.h IWYU workaround
- From: Philip Chimento <pchimento src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gjs/esm/static-imports: 8/13] CI: Fix stdint.h IWYU workaround
- Date: Thu, 10 Dec 2020 23:53:21 +0000 (UTC)
commit 7ccddc51e575b0dc2f52c88a4bc78de0f0fa18db
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]