Skip to content

Commit

Permalink
IWYU pragmas for "caster" headers
Browse files Browse the repository at this point in the history
  • Loading branch information
tkoeppe authored and copybara-github committed Oct 20, 2023
1 parent f6ff925 commit 4b883e4
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 3 deletions.
4 changes: 4 additions & 0 deletions pybind11_abseil/absl_casters.h
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,10 @@
//
// 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_
#define PYBIND11_ABSEIL_ABSL_CASTERS_H_

Expand Down
11 changes: 8 additions & 3 deletions pybind11_abseil/status_casters.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,16 @@
// For details, see the README.md.
//
// 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_
#define PYBIND11_ABSEIL_STATUS_CASTERS_H_

#include "pybind11_abseil/status_caster.h"
#include "pybind11_abseil/statusor_caster.h"
#include "pybind11_abseil/import_status_module.h"
#include "pybind11_abseil/status_caster.h" // IWYU pragma: export
#include "pybind11_abseil/statusor_caster.h" // IWYU pragma: export
#include "pybind11_abseil/import_status_module.h" // IWYU pragma: export

#endif // PYBIND11_ABSEIL_STATUS_CASTERS_H_

0 comments on commit 4b883e4

Please sign in to comment.