include cleanup using iwyu

This commit is contained in:
Max Kellermann
2013-11-28 11:50:54 +01:00
parent 46bab7e4b9
commit f90abe9530
185 changed files with 114 additions and 338 deletions

View File

@@ -26,9 +26,7 @@
#include <limits>
#include <stdint.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <unistd.h>
#include <string.h>
static constexpr Domain aiff_domain("aiff");

View File

@@ -34,6 +34,6 @@ extern const struct tag_table ape_tags[];
*/
bool
tag_ape_scan2(Path path_fs,
const struct tag_handler *handler, void *handler_ctx);
const tag_handler *handler, void *handler_ctx);
#endif

View File

@@ -26,7 +26,6 @@
#include <limits>
#include <stdint.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <string.h>

View File

@@ -20,8 +20,8 @@
#ifndef MPD_TAG_HXX
#define MPD_TAG_HXX
#include "TagType.h"
#include "TagItem.hxx"
#include "TagType.h" // IWYU pragma: export
#include "TagItem.hxx" // IWYU pragma: export
#include "Compiler.h"
#include <algorithm>

View File

@@ -30,8 +30,6 @@
#include <algorithm>
#include <string.h>
void
TagLoadConfig()
{

View File

@@ -20,8 +20,6 @@
#ifndef MPD_TAG_CONFIG_HXX
#define MPD_TAG_CONFIG_HXX
#include "TagType.h"
void
TagLoadConfig();

View File

@@ -21,7 +21,6 @@
#include "TagId3.hxx"
#include "TagHandler.hxx"
#include "TagTable.hxx"
#include "Tag.hxx"
#include "TagBuilder.hxx"
#include "util/Error.hxx"
#include "util/Domain.hxx"

View File

@@ -33,10 +33,10 @@ class Error;
bool
tag_id3_scan(Path path_fs,
const struct tag_handler *handler, void *handler_ctx);
const tag_handler *handler, void *handler_ctx);
Tag *
tag_id3_import(struct id3_tag *);
tag_id3_import(id3_tag *);
/**
* Loads the ID3 tags from the file into a libid3tag object. The
@@ -53,8 +53,8 @@ tag_id3_load(Path path_fs, Error &error);
*
*/
void
scan_id3_tag(struct id3_tag *tag,
const struct tag_handler *handler, void *handler_ctx);
scan_id3_tag(id3_tag *tag,
const tag_handler *handler, void *handler_ctx);
#else
@@ -62,7 +62,7 @@ scan_id3_tag(struct id3_tag *tag,
static inline bool
tag_id3_scan(gcc_unused Path path_fs,
gcc_unused const struct tag_handler *handler,
gcc_unused const tag_handler *handler,
gcc_unused void *handler_ctx)
{
return false;

View File

@@ -21,10 +21,10 @@
#include "TagRva2.hxx"
#include "ReplayGainInfo.hxx"
#include <id3tag.h>
#include <stdint.h>
#include <string.h>
#include <glib.h>
#include <id3tag.h>
enum rva2_channel {
CHANNEL_OTHER = 0x00,

View File

@@ -32,6 +32,6 @@ struct ReplayGainInfo;
* @return true on success
*/
bool
tag_rva2_parse(struct id3_tag *tag, ReplayGainInfo &replay_gain_info);
tag_rva2_parse(id3_tag *tag, ReplayGainInfo &replay_gain_info);
#endif