Skip to content

Commit

Permalink
Add "IWYU pragma: export" to avif/internal.h
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
wantehchang committed Apr 8, 2023
1 parent 726b932 commit 60ba714
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/avif/internal.h
Original file line number Diff line number Diff line change
Expand Up @@ -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" {
Expand Down

0 comments on commit 60ba714

Please sign in to comment.