include cleanups (powered by iwyu)

This commit is contained in:
Max Kellermann 2019-08-15 17:57:20 +02:00
parent 92c89f0c86
commit f909615b14
16 changed files with 13 additions and 21 deletions

View File

@ -33,7 +33,6 @@
#include <algorithm> #include <algorithm>
#include <assert.h> #include <assert.h>
#include <string.h>
#ifdef HAVE_FS_CHARSET #ifdef HAVE_FS_CHARSET

View File

@ -20,7 +20,6 @@
#include "TidalErrorParser.hxx" #include "TidalErrorParser.hxx"
#include "TidalError.hxx" #include "TidalError.hxx"
#include "lib/yajl/Callbacks.hxx" #include "lib/yajl/Callbacks.hxx"
#include "util/ConstBuffer.hxx"
#include "util/RuntimeError.hxx" #include "util/RuntimeError.hxx"
using Wrapper = Yajl::CallbacksWrapper<TidalErrorParser>; using Wrapper = Yajl::CallbacksWrapper<TidalErrorParser>;

View File

@ -30,6 +30,8 @@
#include "Delegate.hxx" #include "Delegate.hxx"
#include "Parser.hxx" #include "Parser.hxx"
#include <utility>
#include <assert.h> #include <assert.h>
void void

View File

@ -1,5 +1,5 @@
/* /*
* Copyright 2007-2017 Content Management AG * Copyright 2007-2019 Content Management AG
* All rights reserved. * All rights reserved.
* *
* author: Max Kellermann <mk@cm4all.com> * author: Max Kellermann <mk@cm4all.com>
@ -33,6 +33,8 @@
#include "Message.hxx" #include "Message.hxx"
#include "ReadIter.hxx" #include "ReadIter.hxx"
#include <stdexcept>
ODBus::Message ODBus::Message
ODBus::Message::NewMethodCall(const char *destination, ODBus::Message::NewMethodCall(const char *destination,
const char *path, const char *path,

View File

@ -1,5 +1,5 @@
/* /*
* Copyright 2007-2017 Content Management AG * Copyright 2007-2019 Content Management AG
* All rights reserved. * All rights reserved.
* *
* author: Max Kellermann <mk@cm4all.com> * author: Max Kellermann <mk@cm4all.com>
@ -35,7 +35,6 @@
#include <dbus/dbus.h> #include <dbus/dbus.h>
#include <stdexcept>
#include <utility> #include <utility>
namespace ODBus { namespace ODBus {

View File

@ -21,8 +21,6 @@
#include "Domain.hxx" #include "Domain.hxx"
#include "Log.hxx" #include "Log.hxx"
#include <cstdint> /* needed due to libavutil bug */
extern "C" { extern "C" {
#include <libavutil/error.h> #include <libavutil/error.h>
} }

View File

@ -27,7 +27,6 @@
#ifdef HAVE_ICU #ifdef HAVE_ICU
#include "Util.hxx" #include "Util.hxx"
#include "util/AllocatedArray.hxx" #include "util/AllocatedArray.hxx"
#include "util/ConstBuffer.hxx"
#include <unicode/ucol.h> #include <unicode/ucol.h>
#include <unicode/ustring.h> #include <unicode/ustring.h>

View File

@ -20,7 +20,6 @@
#include "Converter.hxx" #include "Converter.hxx"
#include "util/AllocatedString.hxx" #include "util/AllocatedString.hxx"
#include "util/AllocatedArray.hxx" #include "util/AllocatedArray.hxx"
#include "util/ConstBuffer.hxx"
#include "util/FormatString.hxx" #include "util/FormatString.hxx"
#include "config.h" #include "config.h"

View File

@ -20,7 +20,6 @@
#include "Util.hxx" #include "Util.hxx"
#include "util/AllocatedString.hxx" #include "util/AllocatedString.hxx"
#include "util/AllocatedArray.hxx" #include "util/AllocatedArray.hxx"
#include "util/WritableBuffer.hxx"
#include "util/ConstBuffer.hxx" #include "util/ConstBuffer.hxx"
#include <unicode/ustring.h> #include <unicode/ustring.h>

View File

@ -31,7 +31,6 @@
#include "song/DetachedSong.hxx" #include "song/DetachedSong.hxx"
#include "input/InputStream.hxx" #include "input/InputStream.hxx"
#include "util/RuntimeError.hxx" #include "util/RuntimeError.hxx"
#include "util/ScopeExit.hxx"
#include <FLAC/metadata.h> #include <FLAC/metadata.h>

View File

@ -31,7 +31,6 @@
#define HUGE_ALLOCATOR_HXX #define HUGE_ALLOCATOR_HXX
#include "WritableBuffer.hxx" #include "WritableBuffer.hxx"
#include "Compiler.h"
#include <utility> #include <utility>
@ -85,7 +84,7 @@ WritableBuffer<void>
HugeAllocate(size_t size); HugeAllocate(size_t size);
static inline void static inline void
HugeFree(void *p, gcc_unused size_t size) noexcept HugeFree(void *p, size_t) noexcept
{ {
VirtualFree(p, 0, MEM_RELEASE); VirtualFree(p, 0, MEM_RELEASE);
} }

View File

@ -1,5 +1,5 @@
/* /*
* Copyright 2013-2018 Max Kellermann <max.kellermann@gmail.com> * Copyright 2013-2019 Max Kellermann <max.kellermann@gmail.com>
* *
* Redistribution and use in source and binary forms, with or without * Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions * modification, are permitted provided that the following conditions
@ -29,6 +29,8 @@
#include "WStringCompare.hxx" #include "WStringCompare.hxx"
#include <string.h>
bool bool
StringEndsWith(const wchar_t *haystack, const wchar_t *needle) noexcept StringEndsWith(const wchar_t *haystack, const wchar_t *needle) noexcept
{ {

View File

@ -21,15 +21,11 @@
#include "mixer/MixerControl.hxx" #include "mixer/MixerControl.hxx"
#include "mixer/MixerList.hxx" #include "mixer/MixerList.hxx"
#include "filter/FilterRegistry.hxx" #include "filter/FilterRegistry.hxx"
#include "pcm/Volume.hxx"
#include "Main.hxx"
#include "event/Loop.hxx" #include "event/Loop.hxx"
#include "config/Block.hxx" #include "config/Block.hxx"
#include "util/PrintException.hxx" #include "util/PrintException.hxx"
#include <assert.h> #include <assert.h>
#include <string.h>
#include <unistd.h>
#include <stdlib.h> #include <stdlib.h>
const FilterPlugin * const FilterPlugin *

View File

@ -27,11 +27,11 @@
#include "fs/io/StdioOutputStream.hxx" #include "fs/io/StdioOutputStream.hxx"
#include "util/PrintException.hxx" #include "util/PrintException.hxx"
#include <exception>
#include <memory> #include <memory>
#include <stdio.h> #include <stdio.h>
#include <stdlib.h> #include <stdlib.h>
#include <stddef.h>
#include <unistd.h> #include <unistd.h>
int main(int argc, char **argv) int main(int argc, char **argv)

View File

@ -24,7 +24,7 @@
#include "event/Thread.hxx" #include "event/Thread.hxx"
#include "fs/Path.hxx" #include "fs/Path.hxx"
#include "AudioParser.hxx" #include "AudioParser.hxx"
#include "pcm/Convert.hxx" #include "AudioFormat.hxx"
#include "util/StringBuffer.hxx" #include "util/StringBuffer.hxx"
#include "util/RuntimeError.hxx" #include "util/RuntimeError.hxx"
#include "util/ScopeExit.hxx" #include "util/ScopeExit.hxx"

View File

@ -30,8 +30,8 @@
#include <memory> #include <memory>
#include <assert.h>
#include <stddef.h> #include <stddef.h>
#include <unistd.h>
static uint8_t zero[256]; static uint8_t zero[256];