Skip to content

Commit 4f5f441

Browse files
committed
iwyu cleanup (comprehensive only for cast.h and smart_holder*.h files).
1 parent 62afdc0 commit 4f5f441

File tree

4 files changed

+16
-0
lines changed

4 files changed

+16
-0
lines changed

include/pybind11/detail/init.h

+1
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
#pragma once
1212

1313
#include "class.h"
14+
#include "smart_holder_sfinae_hooks_only.h"
1415

1516
PYBIND11_NAMESPACE_BEGIN(PYBIND11_NAMESPACE)
1617
PYBIND11_NAMESPACE_BEGIN(detail)

include/pybind11/detail/smart_holder_type_casters.h

+13
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,22 @@
44

55
#pragma once
66

7+
#include "../pytypes.h"
8+
#include "common.h"
9+
#include "descr.h"
10+
#include "internals.h"
711
#include "smart_holder_poc.h"
812
#include "smart_holder_sfinae_hooks_only.h"
913
#include "type_caster_base.h"
14+
#include "typeid.h"
15+
16+
#include <cstddef>
17+
#include <memory>
18+
#include <new>
19+
#include <string>
20+
#include <type_traits>
21+
#include <typeinfo>
22+
#include <utility>
1023

1124
PYBIND11_NAMESPACE_BEGIN(PYBIND11_NAMESPACE)
1225

include/pybind11/pybind11.h

+1
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@
4848
#include "options.h"
4949
#include "detail/class.h"
5050
#include "detail/init.h"
51+
#include "detail/smart_holder_sfinae_hooks_only.h"
5152

5253
#include <memory>
5354
#include <vector>

include/pybind11/smart_holder.h

+1
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44

55
#pragma once
66

7+
#include "detail/common.h"
78
#include "detail/smart_holder_type_casters.h"
89
#include "pybind11.h"
910

0 commit comments

Comments
 (0)