Commit 4b883e48 by Thomas Köppe Committed by Copybara-Service

IWYU pragmas for "caster" headers

E.g. see https://github.com/include-what-you-use/include-what-you-use/blob/master/docs/IWYUPragmas.md.

PiperOrigin-RevId: 575331556
parent f6ff9255
...@@ -27,6 +27,10 @@ ...@@ -27,6 +27,10 @@
// //
// Author: Ken Oslund // Author: Ken Oslund
// This header declares template specializations, and thus its use may
// not be visible to inclusion analysis tools, but we must retain it.
// IWYU pragma: always_keep
#ifndef PYBIND11_ABSEIL_ABSL_CASTERS_H_ #ifndef PYBIND11_ABSEIL_ABSL_CASTERS_H_
#define PYBIND11_ABSEIL_ABSL_CASTERS_H_ #define PYBIND11_ABSEIL_ABSL_CASTERS_H_
......
...@@ -14,11 +14,16 @@ ...@@ -14,11 +14,16 @@
// For details, see the README.md. // For details, see the README.md.
// //
// Author: Ken Oslund (kenoslund@) // Author: Ken Oslund (kenoslund@)
// This header declares template specializations, and thus its use may
// not be visible to inclusion analysis tools, but we must retain it.
// IWYU pragma: always_keep
#ifndef PYBIND11_ABSEIL_STATUS_CASTERS_H_ #ifndef PYBIND11_ABSEIL_STATUS_CASTERS_H_
#define PYBIND11_ABSEIL_STATUS_CASTERS_H_ #define PYBIND11_ABSEIL_STATUS_CASTERS_H_
#include "pybind11_abseil/status_caster.h" #include "pybind11_abseil/status_caster.h" // IWYU pragma: export
#include "pybind11_abseil/statusor_caster.h" #include "pybind11_abseil/statusor_caster.h" // IWYU pragma: export
#include "pybind11_abseil/import_status_module.h" #include "pybind11_abseil/import_status_module.h" // IWYU pragma: export
#endif // PYBIND11_ABSEIL_STATUS_CASTERS_H_ #endif // PYBIND11_ABSEIL_STATUS_CASTERS_H_
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment