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>
This commit is contained in:
Oswald Buddenhagen 2014-01-15 20:46:46 +01:00 committed by The Qt Project
parent e06557b596
commit f98a96fded
13 changed files with 49 additions and 39 deletions

View File

@ -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

View File

@ -42,7 +42,7 @@
#ifndef COMPRESS_H
#define COMPRESS_H
#include <QtCore/QVector>
#include <QtCore/qvector.h>
class Compress
{

View File

@ -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
{

View File

@ -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)

View File

@ -42,6 +42,8 @@
#ifndef DOTGRAPH_H
#define DOTGRAPH_H
#include <QtCore/qglobal.h>
QT_FORWARD_DECLARE_CLASS(QTextStream);
class Automaton;

View File

@ -39,8 +39,8 @@
**
****************************************************************************/
#include "lalr.h"
#include <limits.h>
#include <algorithm>

View File

@ -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>

View File

@ -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;

View File

@ -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

View File

@ -39,11 +39,12 @@
**
****************************************************************************/
#include <QtCore/QTextStream>
#include "lalr.h"
#include "parsetable.h"
#include "lalr.h"
#include <QtCore/qtextstream.h>
ParseTable::ParseTable (QTextStream &o):
out (o)
{

View File

@ -42,6 +42,8 @@
#ifndef PARSETABLE_H
#define PARSETABLE_H
#include <QtCore/qglobal.h>
QT_FORWARD_DECLARE_CLASS(QTextStream);
class Automaton;

View File

@ -41,6 +41,7 @@
****************************************************************************/
#include "recognizer.h"
#include <cstdlib>
#include <cstring>
#include <cctype>

View File

@ -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