Skip to content

Commit fbf6bdf

Browse files
author
Steinar H. Gunderson
committed
Bug #26597243: AMBIGUOUS INCLUDE PATHS [noclose, angle brackets]
Clean up all #includes of files from include/ so that they use quotes instead of angle brackets, with the notable exception of include/mysql/, since some of those are used from client headers (where they are reasonably system headers). Then resort headers in all affected files. As before, InnoDB is left alone. Change-Id: Ibd1874aed443c34899553d7c895c8484eca171af
1 parent 226bdba commit fbf6bdf

File tree

206 files changed

+522
-473
lines changed

Some content is hidden

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

206 files changed

+522
-473
lines changed

client/base/abstract_value_option.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,10 @@
1818
#ifndef ABSTRACT_VALUE_OPTION_INCLUDED
1919
#define ABSTRACT_VALUE_OPTION_INCLUDED
2020

21-
#include <my_getopt.h>
2221
#include <string>
2322

2423
#include "client/base/abstract_option.h"
24+
#include "my_getopt.h"
2525

2626
namespace Mysql{
2727
namespace Tools{

client/base/bool_option.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,10 @@
1818
#ifndef BOOL_OPTION_INCLUDED
1919
#define BOOL_OPTION_INCLUDED
2020

21-
#include <my_getopt.h>
2221
#include <string>
2322

2423
#include "client/base/abstract_option.h"
24+
#include "my_getopt.h"
2525

2626
namespace Mysql{
2727
namespace Tools{

client/base/disabled_option.h

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,8 @@
1818
#ifndef DISABLED_OPTION_INCLUDED
1919
#define DISABLED_OPTION_INCLUDED
2020

21-
#include <my_getopt.h>
22-
2321
#include "client/base/abstract_option.h"
22+
#include "my_getopt.h"
2423

2524
namespace Mysql{
2625
namespace Tools{

client/base/help_options.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,14 +18,14 @@
1818
#include "client/base/help_options.h"
1919

2020
#include <stdlib.h>
21-
#include <welcome_copyright_notice.h> /* ORACLE_WELCOME_COPYRIGHT_NOTICE */
2221
#include <functional>
2322
#include <sstream>
2423

2524
#include "client/base/abstract_program.h"
2625
#include "client/client_priv.h"
2726
#include "my_default.h"
2827
#include "print_version.h"
28+
#include "welcome_copyright_notice.h" /* ORACLE_WELCOME_COPYRIGHT_NOTICE */
2929

3030
using namespace Mysql::Tools::Base::Options;
3131
using std::placeholders::_1;

client/base/i_options_provider.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,10 @@
1818
#ifndef I_OPTIONS_PROVIDER_INCLUDED
1919
#define I_OPTIONS_PROVIDER_INCLUDED
2020

21-
#include <my_getopt.h>
2221
#include <vector>
2322

2423
#include "client/base/i_option_changed_listener.h"
24+
#include "my_getopt.h"
2525

2626
namespace Mysql{
2727
namespace Tools{

client/base/mysql_connection_options.cc

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@
1717

1818
#include "client/base/mysql_connection_options.h"
1919

20-
#include <mysys_err.h>
2120
#include <stdlib.h>
2221
#include <functional>
2322
#include <sstream>

client/base/password_option.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,10 @@
1818
#ifndef PASSWORD_OPTION_INCLUDED
1919
#define PASSWORD_OPTION_INCLUDED
2020

21-
#include <my_getopt.h>
2221
#include <string>
2322

2423
#include "client/base/abstract_string_option.h"
24+
#include "my_getopt.h"
2525
#include "nullable.h"
2626

2727
namespace Mysql{

client/base/simple_option.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,10 @@
1818
#ifndef SIMPLE_OPTION_INCLUDED
1919
#define SIMPLE_OPTION_INCLUDED
2020

21-
#include <my_getopt.h>
2221
#include <string>
2322

2423
#include "client/base/abstract_option.h"
24+
#include "my_getopt.h"
2525

2626
namespace Mysql{
2727
namespace Tools{

client/base/string_option.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,10 @@
1818
#ifndef STRING_OPTION_INCLUDED
1919
#define STRING_OPTION_INCLUDED
2020

21-
#include <my_getopt.h>
2221
#include <string>
2322

2423
#include "client/base/abstract_string_option.h"
24+
#include "my_getopt.h"
2525
#include "nullable.h"
2626

2727
namespace Mysql{

client/check/mysqlcheck.cc

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -17,22 +17,22 @@
1717

1818
#include "client/check/mysqlcheck.h"
1919

20-
#include <caching_sha2_passwordopt-vars.h>
21-
#include <m_ctype.h>
2220
#include <mysql_version.h>
2321
#include <mysqld_error.h>
24-
#include <sslopt-vars.h>
2522
#include <stdlib.h>
26-
#include <welcome_copyright_notice.h> /* ORACLE_WELCOME_COPYRIGHT_NOTICE */
2723

24+
#include "caching_sha2_passwordopt-vars.h"
2825
#include "client/client_priv.h"
26+
#include "m_ctype.h"
2927
#include "my_dbug.h"
3028
#include "my_default.h"
3129
#include "my_inttypes.h"
3230
#include "my_macros.h"
3331
#include "mysql/service_mysql_alloc.h"
3432
#include "print_version.h"
33+
#include "sslopt-vars.h"
3534
#include "typelib.h"
35+
#include "welcome_copyright_notice.h" /* ORACLE_WELCOME_COPYRIGHT_NOTICE */
3636

3737
using namespace Mysql::Tools::Check;
3838
using std::string;
@@ -196,8 +196,8 @@ static struct my_option my_long_options[] =
196196
{"socket", 'S', "The socket file to use for connection.",
197197
&opt_mysql_unix_port, &opt_mysql_unix_port, 0, GET_STR,
198198
REQUIRED_ARG, 0, 0, 0, 0, 0, 0},
199-
#include <caching_sha2_passwordopt-longopts.h>
200-
#include <sslopt-longopts.h>
199+
#include "caching_sha2_passwordopt-longopts.h"
200+
#include "sslopt-longopts.h"
201201

202202
{"tables", OPT_TABLES, "Overrides option --databases (-B).", 0, 0, 0,
203203
GET_NO_ARG, NO_ARG, 0, 0, 0, 0, 0, 0},
@@ -314,7 +314,7 @@ get_one_option(int optid, const struct my_option *opt,
314314
DBUG_PUSH(argument ? argument : "d:t:o");
315315
debug_check_flag= 1;
316316
break;
317-
#include <sslopt-case.h>
317+
#include "sslopt-case.h"
318318

319319
case OPT_TABLES:
320320
opt_databases = 0;

0 commit comments

Comments
 (0)