diff options
author | Oswald Buddenhagen <oswald.buddenhagen@digia.com> | 2014-01-15 20:46:46 +0100 |
---|---|---|
committer | The Qt Project <gerrit-noreply@qt-project.org> | 2014-01-20 09:26:40 +0100 |
commit | f98a96fded6338f5f270541d3888e20cf6837af6 (patch) | |
tree | 4981fa769c7439f2796593cf38a56ae3482650bd /util | |
parent | e06557b596e7bc37aad70e4083bf59ff240681a1 (diff) | |
download | qtbase-f98a96fded6338f5f270541d3888e20cf6837af6.tar.gz qtbase-f98a96fded6338f5f270541d3888e20cf6837af6.tar.bz2 qtbase-f98a96fded6338f5f270541d3888e20cf6837af6.zip |
fix includes
use style suitable for bootstrapping. while we're at it, order the
includes the usual way.
Change-Id: I4fe96bfb73442c8a5de6dfe52d1a8c7eb22104c8
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Diffstat (limited to 'util')
-rw-r--r-- | util/qlalr/compress.cpp | 6 | ||||
-rw-r--r-- | util/qlalr/compress.h | 2 | ||||
-rw-r--r-- | util/qlalr/cppgenerator.cpp | 7 | ||||
-rw-r--r-- | util/qlalr/dotgraph.cpp | 6 | ||||
-rw-r--r-- | util/qlalr/dotgraph.h | 2 | ||||
-rw-r--r-- | util/qlalr/lalr.cpp | 2 | ||||
-rw-r--r-- | util/qlalr/lalr.g | 12 | ||||
-rw-r--r-- | util/qlalr/lalr.h | 16 | ||||
-rw-r--r-- | util/qlalr/main.cpp | 14 | ||||
-rw-r--r-- | util/qlalr/parsetable.cpp | 5 | ||||
-rw-r--r-- | util/qlalr/parsetable.h | 2 | ||||
-rw-r--r-- | util/qlalr/recognizer.cpp | 1 | ||||
-rw-r--r-- | util/qlalr/recognizer.h | 11 |
13 files changed, 48 insertions, 38 deletions
diff --git a/util/qlalr/compress.cpp b/util/qlalr/compress.cpp index bd35b171cf..aefcb03cd6 100644 --- a/util/qlalr/compress.cpp +++ b/util/qlalr/compress.cpp @@ -39,14 +39,14 @@ ** ****************************************************************************/ +#include "compress.h" -#include <QtCore/QtDebug> -#include <QtCore/QList> +#include <QtCore/qdebug.h> +#include <QtCore/qlist.h> #include <algorithm> #include <iterator> #include <iostream> -#include "compress.h" #define QLALR_NO_CHECK_SORTED_TABLE diff --git a/util/qlalr/compress.h b/util/qlalr/compress.h index 64c2bba14c..72f1d1db83 100644 --- a/util/qlalr/compress.h +++ b/util/qlalr/compress.h @@ -42,7 +42,7 @@ #ifndef COMPRESS_H #define COMPRESS_H -#include <QtCore/QVector> +#include <QtCore/qvector.h> class Compress { diff --git a/util/qlalr/cppgenerator.cpp b/util/qlalr/cppgenerator.cpp index c62ee78917..d48c059397 100644 --- a/util/qlalr/cppgenerator.cpp +++ b/util/qlalr/cppgenerator.cpp @@ -39,15 +39,16 @@ ** ****************************************************************************/ +#include "cppgenerator.h" + +#include "lalr.h" +#include "recognizer.h" #include <QtCore/qbitarray.h> #include <QtCore/qtextstream.h> #include <QtCore/qfile.h> #include <QtCore/qmap.h> -#include "cppgenerator.h" -#include "lalr.h" -#include "recognizer.h" QString CppGenerator::copyrightHeader() const { diff --git a/util/qlalr/dotgraph.cpp b/util/qlalr/dotgraph.cpp index de3ff83112..60ec82ae84 100644 --- a/util/qlalr/dotgraph.cpp +++ b/util/qlalr/dotgraph.cpp @@ -39,11 +39,11 @@ ** ****************************************************************************/ - -#include <QtCore/QTextStream> +#include "dotgraph.h" #include "lalr.h" -#include "dotgraph.h" + +#include <QtCore/qtextstream.h> DotGraph::DotGraph(QTextStream &o): out (o) diff --git a/util/qlalr/dotgraph.h b/util/qlalr/dotgraph.h index 587817d4d2..1d21db060a 100644 --- a/util/qlalr/dotgraph.h +++ b/util/qlalr/dotgraph.h @@ -42,6 +42,8 @@ #ifndef DOTGRAPH_H #define DOTGRAPH_H +#include <QtCore/qglobal.h> + QT_FORWARD_DECLARE_CLASS(QTextStream); class Automaton; diff --git a/util/qlalr/lalr.cpp b/util/qlalr/lalr.cpp index 6a14c0d701..7377bf6321 100644 --- a/util/qlalr/lalr.cpp +++ b/util/qlalr/lalr.cpp @@ -39,8 +39,8 @@ ** ****************************************************************************/ - #include "lalr.h" + #include <limits.h> #include <algorithm> diff --git a/util/qlalr/lalr.g b/util/qlalr/lalr.g index b744d7ea65..e060eea6f1 100644 --- a/util/qlalr/lalr.g +++ b/util/qlalr/lalr.g @@ -116,14 +116,15 @@ ** ****************************************************************************/ -#include <QtCore/QtDebug> -#include <QtCore/QString> -#include <QtCore/QFile> -#include <QtCore/QTextStream> - #include "$header" + #include "lalr.h" +#include <QtCore/qdebug.h> +#include <QtCore/qstring.h> +#include <QtCore/qfile.h> +#include <QtCore/qtextstream.h> + #include <cstdlib> class Recognizer: protected $table @@ -231,6 +232,7 @@ protected: ****************************************************************************/ #include "recognizer.h" + #include <cstdlib> #include <cstring> #include <cctype> diff --git a/util/qlalr/lalr.h b/util/qlalr/lalr.h index a4649d09b5..7f62b411ca 100644 --- a/util/qlalr/lalr.h +++ b/util/qlalr/lalr.h @@ -42,15 +42,15 @@ #ifndef LALR_H #define LALR_H -#include <functional> +#include <QtCore/qset.h> +#include <QtCore/qstack.h> +#include <QtCore/qmap.h> +#include <QtCore/qlinkedlist.h> +#include <QtCore/qstring.h> +#include <QtCore/qtextstream.h> +#include <QtCore/qpair.h> -#include <QtCore/QSet> -#include <QtCore/QStack> -#include <QtCore/QMap> -#include <QtCore/QLinkedList> -#include <QtCore/QString> -#include <QtCore/QTextStream> -#include <QtCore/QPair> +#include <functional> class Rule; class State; diff --git a/util/qlalr/main.cpp b/util/qlalr/main.cpp index 203e4dec66..1e4f030122 100644 --- a/util/qlalr/main.cpp +++ b/util/qlalr/main.cpp @@ -39,19 +39,19 @@ ** ****************************************************************************/ -#include <QtCore/QCoreApplication> -#include <QtCore/QFile> -#include <QtCore/QStringList> -#include <QtCore/QtDebug> - -#include <cstdlib> - #include "lalr.h" #include "dotgraph.h" #include "parsetable.h" #include "cppgenerator.h" #include "recognizer.h" +#include <QtCore/qcoreapplication.h> +#include <QtCore/qfile.h> +#include <QtCore/qstringlist.h> +#include <QtCore/qdebug.h> + +#include <cstdlib> + #define QLALR_NO_DEBUG_TABLE #define QLALR_NO_DEBUG_DOT diff --git a/util/qlalr/parsetable.cpp b/util/qlalr/parsetable.cpp index 25c7f8f8d6..6877af7a00 100644 --- a/util/qlalr/parsetable.cpp +++ b/util/qlalr/parsetable.cpp @@ -39,10 +39,11 @@ ** ****************************************************************************/ +#include "parsetable.h" -#include <QtCore/QTextStream> #include "lalr.h" -#include "parsetable.h" + +#include <QtCore/qtextstream.h> ParseTable::ParseTable (QTextStream &o): out (o) diff --git a/util/qlalr/parsetable.h b/util/qlalr/parsetable.h index 75922ab16b..d0fe78be81 100644 --- a/util/qlalr/parsetable.h +++ b/util/qlalr/parsetable.h @@ -42,6 +42,8 @@ #ifndef PARSETABLE_H #define PARSETABLE_H +#include <QtCore/qglobal.h> + QT_FORWARD_DECLARE_CLASS(QTextStream); class Automaton; diff --git a/util/qlalr/recognizer.cpp b/util/qlalr/recognizer.cpp index d68d6fb78b..6808f3f66b 100644 --- a/util/qlalr/recognizer.cpp +++ b/util/qlalr/recognizer.cpp @@ -41,6 +41,7 @@ ****************************************************************************/ #include "recognizer.h" + #include <cstdlib> #include <cstring> #include <cctype> diff --git a/util/qlalr/recognizer.h b/util/qlalr/recognizer.h index 9c64fac043..8eb089eb8d 100644 --- a/util/qlalr/recognizer.h +++ b/util/qlalr/recognizer.h @@ -40,14 +40,15 @@ ** ****************************************************************************/ -#include <QtCore/QtDebug> -#include <QtCore/QString> -#include <QtCore/QFile> -#include <QtCore/QTextStream> - #include "grammar_p.h" + #include "lalr.h" +#include <QtCore/qdebug.h> +#include <QtCore/qstring.h> +#include <QtCore/qfile.h> +#include <QtCore/qtextstream.h> + #include <cstdlib> class Recognizer: protected grammar |