Skip to content

Commit

Permalink
Added the IWYU pragma export (#1154)
Browse files Browse the repository at this point in the history
* Added the IWYU pragma export

clang-tidy has added the check misc-include-cleaner with version 17. This check respects the IWYU pragmas.
  • Loading branch information
hkroeg authored Oct 15, 2024
1 parent 32511b8 commit 82ba6c7
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions include/gsl/gsl
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
#ifndef GSL_GSL_H
#define GSL_GSL_H

// IWYU pragma: begin_exports
#include "algorithm" // copy
#include "assert" // Ensures/Expects
#include "byte" // byte
Expand All @@ -28,5 +29,6 @@
#ifdef __cpp_exceptions
#include "narrow" // narrow()
#endif
// IWYU pragma: end_exports

#endif // GSL_GSL_H

0 comments on commit 82ba6c7

Please sign in to comment.