Skip to content

Commit b3aeb1d

Browse files
author
Steinar H. Gunderson
committed
Bug #24710065: SPLIT MY_GLOBAL.H
Run include-what-you-use limited to adding <sys/types.h> and then re-sorting the #includes (and nothing else); then remove <sys/types.h> from my_global.h. Change-Id: Iafb6783d4c6841029bfc02a5727fc2a911d88bfc
1 parent d34d68e commit b3aeb1d

File tree

405 files changed

+810
-204
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

405 files changed

+810
-204
lines changed

client/base/debug_options.cc

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,12 +15,14 @@
1515
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
1616
*/
1717

18+
#include "client/base/debug_options.h"
19+
1820
#include <stdlib.h>
21+
#include <sys/types.h>
1922
#include <functional>
2023

2124
#include "abstract_program.h"
2225
#include "client_priv.h"
23-
#include "debug_options.h"
2426
#include "my_dbug.h"
2527

2628
using namespace Mysql::Tools::Base::Options;

client/base/mysql_query_runner.cc

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
Copyright (c) 2014, 2016, Oracle and/or its affiliates. All rights reserved.
2+
Copyright (c) 2014, 2017, Oracle and/or its affiliates. All rights reserved.
33
44
This program is free software; you can redistribute it and/or modify
55
it under the terms of the GNU General Public License as published by
@@ -15,11 +15,13 @@
1515
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
1616
*/
1717

18+
#include "client/base/mysql_query_runner.h"
19+
1820
#include <stdlib.h>
21+
#include <sys/types.h>
1922
#include <functional>
2023

2124
#include "m_ctype.h"
22-
#include "mysql_query_runner.h"
2325
#include "sql_string.h"
2426
#include "template_utils.h"
2527

client/check/mysqlcheck.h

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
Copyright (c) 2014, 2015, Oracle and/or its affiliates. All rights reserved.
2+
Copyright (c) 2014, 2017, Oracle and/or its affiliates. All rights reserved.
33
44
This program is free software; you can redistribute it and/or modify
55
it under the terms of the GNU General Public License as published by
@@ -18,14 +18,15 @@
1818
#ifndef MYSQLCHECK_INCLUDED
1919
#define MYSQLCHECK_INCLUDED
2020

21+
#include <sys/types.h>
2122
#include <string>
2223
#include <vector>
2324

2425
namespace Mysql{
2526
namespace Tools{
2627
namespace Check{
2728

28-
enum operations { DO_CHECK=1, DO_REPAIR, DO_ANALYZE, DO_OPTIMIZE, DO_UPGRADE };
29+
enum operations { DO_CHECK=1, DO_REPAIR, DO_ANALYZE, DO_OPTIMIZE, DO_UPGRADE };
2930

3031
extern void mysql_check(MYSQL* connection, int what_to_do, my_bool opt_alldbs,
3132
my_bool opt_check_only_changed, my_bool opt_extended,

client/check/mysqlcheck_core.cc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
#include <m_ctype.h>
1919
#include <mysql_version.h>
2020
#include <mysqld_error.h>
21+
#include <sys/types.h>
2122
#include <string>
2223
#include <vector>
2324

client/dump/abstract_mysql_chain_element_extension.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
#ifndef ABSTRACT_MYSQL_CHAIN_ELEMENT_EXTENSION_INCLUDED
1919
#define ABSTRACT_MYSQL_CHAIN_ELEMENT_EXTENSION_INCLUDED
2020

21+
#include <sys/types.h>
2122
#include <functional>
2223

2324
#include "abstract_data_object.h"

client/dump/compression_zlib_writer.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
#define COMPRESSION_ZLIB_WRITER_INCLUDED
2020

2121
#include <string.h>
22+
#include <sys/types.h>
2223
#include <functional>
2324

2425
#include "abstract_output_writer_wrapper.h"

client/dump/mysql_field.h

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
Copyright (c) 2015, Oracle and/or its affiliates. All rights reserved.
2+
Copyright (c) 2015, 2017, Oracle and/or its affiliates. All rights reserved.
33
44
This program is free software; you can redistribute it and/or modify
55
it under the terms of the GNU General Public License as published by
@@ -18,9 +18,11 @@
1818
#ifndef MYSQL_FIELD_INCLUDED
1919
#define MYSQL_FIELD_INCLUDED
2020

21+
#include <sys/types.h>
22+
#include <string>
23+
2124
#include "my_global.h"
2225
#include "mysql.h"
23-
#include <string>
2426

2527
namespace Mysql{
2628
namespace Tools{

client/dump/mysql_object_reader.cc

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
Copyright (c) 2015, 2016, Oracle and/or its affiliates. All rights reserved.
2+
Copyright (c) 2015, 2017, Oracle and/or its affiliates. All rights reserved.
33
44
This program is free software; you can redistribute it and/or modify
55
it under the terms of the GNU General Public License as published by
@@ -15,10 +15,11 @@
1515
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
1616
*/
1717

18-
#include <functional>
18+
#include "client/dump/mysql_object_reader.h"
1919

20-
#include "mysql_object_reader.h"
2120
#include <boost/algorithm/string.hpp>
21+
#include <sys/types.h>
22+
#include <functional>
2223

2324
using namespace Mysql::Tools::Dump;
2425
using std::placeholders::_1;

client/dump/object_queue.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
#ifndef OBJECT_QUEUE_INCLUDED
1919
#define OBJECT_QUEUE_INCLUDED
2020

21+
#include <sys/types.h>
2122
#include <functional>
2223
#include <map>
2324
#include <queue>

client/dump/sql_formatter.cc

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,16 +15,18 @@
1515
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
1616
*/
1717

18+
#include "client/dump/sql_formatter.h"
19+
1820
#include "my_config.h"
1921

2022
#include <boost/algorithm/string.hpp>
23+
#include <sys/types.h>
2124
#include <chrono>
2225
#include <functional>
2326
#include <sstream>
2427

2528
#include "mysql_function.h"
2629
#include "privilege.h"
27-
#include "sql_formatter.h"
2830
#include "stored_procedure.h"
2931
#include "view.h"
3032

0 commit comments

Comments
 (0)