Skip to content

Commit 379a670

Browse files
committed
maint: Update IWYU includes and false positives for 0.22
The CI bump brings in a new version of IWYU.
1 parent 1df5d72 commit 379a670

File tree

14 files changed

+10
-31
lines changed

14 files changed

+10
-31
lines changed

gi/arg.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@
1010
#include <string.h> // for strcmp, strlen, memcpy
1111

1212
#include <string>
13-
#include <type_traits>
1413

1514
#include <girepository.h>
1615
#include <glib-object.h>

gi/boxed.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77
#include <stdint.h>
88
#include <string.h> // for memcpy, size_t, strcmp
99

10-
#include <string>
1110
#include <utility> // for move, forward
1211

1312
#include <girepository.h>

gi/cwrapper.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
#include <js/CallArgs.h>
1717
#include <js/Class.h>
1818
#include <js/ErrorReport.h> // for JSEXN_TYPEERR
19+
#include <js/GCVector.h> // for MutableHandleIdVector
1920
#include <js/GlobalObject.h> // for CurrentGlobalOrNull
2021
#include <js/Id.h>
2122
#include <js/Object.h> // for GetClass

gi/fundamental.cpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,9 @@
88
#include <girepository.h>
99
#include <glib.h>
1010

11-
#include <js/AllocPolicy.h> // for SystemAllocPolicy
1211
#include <js/Class.h>
1312
#include <js/ErrorReport.h> // for JS_ReportOutOfMemory
1413
#include <js/GCHashTable.h> // for WeakCache
15-
#include <js/HashTable.h> // for DefaultHasher via WeakCache
1614
#include <js/Object.h> // for GetClass
1715
#include <js/PropertyAndElement.h>
1816
#include <js/RootingAPI.h>

gi/gtype.cpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,9 @@
88
#include <glib-object.h>
99
#include <glib.h>
1010

11-
#include <js/AllocPolicy.h> // for SystemAllocPolicy
1211
#include <js/CallArgs.h>
1312
#include <js/Class.h>
1413
#include <js/GCHashTable.h> // for WeakCache
15-
#include <js/HashTable.h> // for DefaultHasher via WeakCache
1614
#include <js/PropertyAndElement.h>
1715
#include <js/PropertyDescriptor.h> // for JSPROP_PERMANENT
1816
#include <js/PropertySpec.h>

gi/ns.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,10 @@
44

55
#include <config.h>
66

7+
#include <string.h>
8+
9+
#include <vector>
10+
711
#include <girepository.h>
812
#include <glib.h>
913

gi/utils-inl.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88

99
#include <stdint.h>
1010

11+
#include <algorithm> // IWYU pragma: keep (for find)
1112
#include <utility> // IWYU pragma: keep (for swap)
1213
#include <vector>
1314

gi/wrapperutils.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
#include <js/CallArgs.h>
2121
#include <js/ComparisonOperators.h>
2222
#include <js/ErrorReport.h> // for JSEXN_TYPEERR
23+
#include <js/GCVector.h> // for MutableHandleIdVector
2324
#include <js/Id.h>
2425
#include <js/MemoryFunctions.h>
2526
#include <js/Object.h>

gjs/context.cpp

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,6 @@
1919
# include <windows.h>
2020
#endif
2121

22-
#ifdef DEBUG
23-
# include <algorithm> // for find
24-
#endif
2522
#include <new>
2623
#include <string> // for u16string
2724
#include <thread> // for get_id

gjs/jsapi-util-args.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@
2222
#include <js/RootingAPI.h>
2323
#include <js/TypeDecls.h>
2424
#include <js/Utility.h> // for UniqueChars
25+
#include <js/Value.h>
2526
#include <mozilla/Result.h> // for GenericErrorResult
2627
#include <mozilla/ResultVariant.h> // IWYU pragma: keep
2728

0 commit comments

Comments
 (0)