IWYU: Include all headers for symbols used in files.

Semi-automatically taking the the misc-include-cleaner warnings
by clang-tidy and fixing files to be self-contained.

Change-Id: Iaaa2b2ec9d6dcce547fa5cb6b4f056dfc8c781ff
This commit is contained in:
Henner Zeller
2025-05-10 19:00:56 +02:00
parent eb3ff78159
commit 98c2780100
152 changed files with 517 additions and 110 deletions

View File

@@ -15,6 +15,7 @@
#include <math.h> // for pow()
#include <stdio.h>
#include <stdlib.h> // for abs()
#include <string.h>
#include "src/mux/animi.h"
#include "src/utils/utils.h"
@@ -22,6 +23,7 @@
#include "src/webp/encode.h"
#include "src/webp/format_constants.h"
#include "src/webp/mux.h"
#include "src/webp/mux_types.h"
#include "src/webp/types.h"
#if defined(_MSC_VER) && _MSC_VER < 1900

View File

@@ -13,8 +13,16 @@
// Vikas (vikasa@google.com)
#include <assert.h>
#include <stddef.h>
#include <string.h>
#include "src/dec/vp8_dec.h"
#include "src/mux/muxi.h"
#include "src/utils/utils.h"
#include "src/webp/format_constants.h"
#include "src/webp/mux.h"
#include "src/webp/mux_types.h"
#include "src/webp/types.h"
//------------------------------------------------------------------------------
// Life of a mux object.

View File

@@ -16,9 +16,13 @@
#include <assert.h>
#include <stdlib.h>
#include "src/dec/vp8i_dec.h"
#include "src/dec/vp8li_dec.h"
#include "src/webp/format_constants.h"
#include "src/webp/mux.h"
#include "src/webp/mux_types.h"
#include "src/webp/types.h"
#ifdef __cplusplus
extern "C" {

View File

@@ -13,8 +13,15 @@
// Vikas (vikasa@google.com)
#include <assert.h>
#include <stddef.h>
#include <string.h>
#include "src/mux/muxi.h"
#include "src/webp/types.h"
#include "src/utils/utils.h"
#include "src/webp/format_constants.h"
#include "src/webp/mux.h"
#include "src/webp/mux_types.h"
#define UNDEFINED_CHUNK_SIZE ((uint32_t)(-1))
@@ -546,4 +553,3 @@ WebPMuxError MuxValidate(const WebPMux* const mux) {
#undef NO_FLAG
//------------------------------------------------------------------------------

View File

@@ -13,8 +13,15 @@
// Vikas (vikasa@google.com)
#include <assert.h>
#include <stddef.h>
#include "src/dec/vp8_dec.h"
#include "src/mux/muxi.h"
#include "src/utils/utils.h"
#include "src/webp/format_constants.h"
#include "src/webp/mux.h"
#include "src/webp/mux_types.h"
#include "src/webp/types.h"
//------------------------------------------------------------------------------
// Helper method(s).