include cleanups (powered by iwyu)

This commit is contained in:
Max Kellermann
2019-07-05 09:59:00 +02:00
parent 9cdebc90a0
commit d663f81420
229 changed files with 67 additions and 397 deletions

View File

@@ -21,6 +21,8 @@
#include <alsa/asoundlib.h>
#include <stdlib.h>
gcc_pure
static uint_least32_t
ParseAlsaVersion(const char *p) noexcept

View File

@@ -32,8 +32,6 @@
#include "event/Call.hxx"
#include "thread/Mutex.hxx"
#include <atomic>
#include <assert.h>
Mutex CurlInit::mutex;

View File

@@ -35,8 +35,7 @@
#include <dbus/dbus.h>
#include <algorithm>
#include <stdexcept>
#include <utility>
namespace ODBus {

View File

@@ -35,8 +35,8 @@
#include <dbus/dbus.h>
#include <algorithm>
#include <stdexcept>
#include <utility>
namespace ODBus {

View File

@@ -36,7 +36,6 @@
#include "Connection.hxx"
#include "event/SocketMonitor.hxx"
#include "event/DeferEvent.hxx"
#include "util/Compiler.h"
#include <dbus/dbus.h>

View File

@@ -37,4 +37,3 @@ FfmpegInit()
av_register_all();
#endif
}

View File

@@ -30,8 +30,6 @@ extern "C" {
#include <libavutil/log.h>
}
#include <stdio.h>
gcc_const
static LogLevel
FfmpegImportLogLevel(int level) noexcept

View File

@@ -31,8 +31,6 @@
#include "Hash.hxx"
#include "util/HexFormat.hxx"
#include <stdio.h>
std::array<uint8_t, 16>
MD5(ConstBuffer<void> input) noexcept
{

View File

@@ -24,6 +24,7 @@
#include "event/SocketMonitor.hxx"
#include "event/TimerEvent.hxx"
#include "event/DeferEvent.hxx"
#include "util/Compiler.h"
#include <string>
#include <list>

View File

@@ -34,9 +34,8 @@
#define UNIQUE_REGEX_HXX
#include "RegexPointer.hxx"
#include "util/StringView.hxx"
#include <algorithm>
#include <utility>
#include <pcre.h>

View File

@@ -20,6 +20,7 @@
#ifndef MPD_SQLITE_UTIL_HXX
#define MPD_SQLITE_UTIL_HXX
#include "util/Compiler.h"
#include "Error.hxx"
#include <sqlite3.h>

View File

@@ -21,11 +21,12 @@
#include "UniqueIxml.hxx"
#include "Device.hxx"
#include "ixmlwrap.hxx"
#include "Action.hxx"
#include "util/UriUtil.hxx"
#include "util/RuntimeError.hxx"
#include "util/SplitString.hxx"
#include <upnptools.h>
ContentDirectoryService::ContentDirectoryService(const UPnPDevice &device,
const UPnPService &service) noexcept
:m_actionURL(uri_apply_base(service.controlURL, device.URLBase)),

View File

@@ -28,7 +28,6 @@
#include "lib/curl/Request.hxx"
#include "thread/Mutex.hxx"
#include "event/DeferEvent.hxx"
#include "util/Compiler.h"
#include <upnp.h>
@@ -37,7 +36,6 @@
#include <list>
#include <vector>
#include <string>
#include <memory>
#include <chrono>
#if UPNP_VERSION < 10800

View File

@@ -19,8 +19,6 @@
#include "Util.hxx"
#include <assert.h>
/** Get rid of white space at both ends */
void
trimstring(std::string &s, const char *ws) noexcept

View File

@@ -19,8 +19,6 @@
#include <ixml.h>
#include <string>
namespace ixmlwrap {
/**
* Retrieve the text content for the first element of given

View File

@@ -20,7 +20,6 @@
#ifndef MPD_FLAC_IO_HANDLE_HXX
#define MPD_FLAC_IO_HANDLE_HXX
#include "util/Compiler.h"
#include "input/InputStream.hxx"
#include <FLAC/callback.h>

View File

@@ -20,7 +20,7 @@
#ifndef MPD_FLAC_STREAM_METADATA_HXX
#define MPD_FLAC_STREAM_METADATA_HXX
#include <FLAC/metadata.h>
#include <FLAC/format.h>
class TagHandler;
class MixRampInfo;

View File

@@ -25,8 +25,6 @@
#include <ogg/ogg.h>
#include <stddef.h>
class Reader;
/**