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

@@ -16,6 +16,7 @@
#include <cstdint>
#include <cstdio>
#include <cstdlib>
#include <string_view>
#include "src/webp/decode.h"
@@ -27,7 +28,7 @@ void DecodeWebP(std::string_view arbitrary_bytes) {
WebPDecoderConfig decoder_config;
if (!WebPInitDecoderConfig(&decoder_config)) {
fprintf(stderr, "WebPInitDecoderConfig failed.\n");
abort();
std::abort();
}
const VP8StatusCode status =
WebPDecode(reinterpret_cast<const uint8_t*>(arbitrary_bytes.data()),
@@ -36,7 +37,7 @@ void DecodeWebP(std::string_view arbitrary_bytes) {
// The decoding may fail (because the fuzzed input can be anything) but not
// for these reasons.
if (status == VP8_STATUS_SUSPENDED || status == VP8_STATUS_USER_ABORT) {
abort();
std::abort();
}
}