[gjs: 11/12] build: Fix IWYU errors
- From: Philip Chimento <pchimento src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gjs: 11/12] build: Fix IWYU errors
- Date: Tue, 10 Aug 2021 04:08:01 +0000 (UTC)
commit 210cfc395d5408122b0369f744a7864ba19fe867
Author: Philip Chimento <philip chimento gmail com>
Date: Sat Jul 31 22:41:24 2021 -0700
build: Fix IWYU errors
gjs/jsapi-util-string.cpp | 1 -
tools/gjs-private-iwyu.imp | 1 +
tools/process_iwyu.py | 1 +
3 files changed, 2 insertions(+), 1 deletion(-)
---
diff --git a/gjs/jsapi-util-string.cpp b/gjs/jsapi-util-string.cpp
index e5de20c2..f6ce1521 100644
--- a/gjs/jsapi-util-string.cpp
+++ b/gjs/jsapi-util-string.cpp
@@ -19,7 +19,6 @@
#include <js/BigInt.h>
#include <js/CharacterEncoding.h>
#include <js/Class.h>
-#include <js/ComparisonOperators.h>
#include <js/GCAPI.h> // for AutoCheckCannotGC
#include <js/Id.h> // for JSID_IS_STRING...
#include <js/Promise.h>
diff --git a/tools/gjs-private-iwyu.imp b/tools/gjs-private-iwyu.imp
index e3c32723..502e6b43 100644
--- a/tools/gjs-private-iwyu.imp
+++ b/tools/gjs-private-iwyu.imp
@@ -3,6 +3,7 @@
# IWYU mapping file for files that are part of libgjs
[
+ {"include": ["<bits/this_thread_sleep.h>", "private", "<thread>", "public"]},
{"include": ["<bits/types/sigevent_t.h>", "private", "<signal.h>", "public"]},
{"include": ["<bits/types/siginfo_t.h>", "private", "<signal.h>", "public"]},
{"include": ["<bits/types/struct_itimerspec.h>", "private", "<time.h>", "public"]},
diff --git a/tools/process_iwyu.py b/tools/process_iwyu.py
index a950685c..c57da73d 100755
--- a/tools/process_iwyu.py
+++ b/tools/process_iwyu.py
@@ -94,6 +94,7 @@ FALSE_POSITIVES = (
# False positive when using GjsAutoPointer
# https://github.com/include-what-you-use/include-what-you-use/issues/927
+ ('gi/boxed.cpp', '#include <type_traits>', 'for remove_reference<>::type'),
('gi/object.cpp', '#include <type_traits>',
'for remove_reference<>::type'),
('gi/private.cpp', '#include <type_traits>',
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]