commit | 60ba714e351056384faa9e1db42ae86000f2a909 | [log] [tgz] |
---|---|---|
author | Wan-Teh Chang <wtc@google.com> | Fri Apr 07 11:54:40 2023 -0700 |
committer | Wan-Teh Chang <wtc@google.com> | Fri Apr 07 17:12:57 2023 -0700 |
tree | b08c7f360a8187bac1c966f465d818744252f11f | |
parent | 726b93287b74b0b094978caffe858b57f7d527d5 [diff] |
Add "IWYU pragma: export" to avif/internal.h The pragma says avif/internal.h is to be considered the provider of any symbol from avif/avif.h. See https://github.com/include-what-you-use/include-what-you-use/blob/master/docs/IWYUPragmas.md#iwyu-pragma-export Our current policy is as follows: 1. If a file uses only public libavif symbols, include avif/avif.h. 2. If a file uses not only public but also private libavif symbols, include avif/internal.h only.
diff --git a/include/avif/internal.h b/include/avif/internal.h index 8e75822..ce5b994 100644 --- a/include/avif/internal.h +++ b/include/avif/internal.h
@@ -4,7 +4,7 @@ #ifndef AVIF_INTERNAL_H #define AVIF_INTERNAL_H -#include "avif/avif.h" +#include "avif/avif.h" // IWYU pragma: export #ifdef __cplusplus extern "C" {