Commit 7dce2f98 authored by Friedemann Kleint's avatar Friedemann Kleint

Clean headers in QmlJs.

Ran script to remove inludes on a trial-and-error basis and
manually corrected it (Parser excluded).

Change-Id: I5ec6e1076430009bb72094411b2c3386f8bea548
Reviewed-by: default avatarAurindam Jana <aurindam.jana@digia.com>
parent ebfb3bbc
......@@ -35,7 +35,6 @@
#include <QDebug>
#include <QLatin1String>
#include <QRegExp>
#include <QMap>
#include <cmath>
......
......@@ -33,14 +33,11 @@
#include "qmljs_global.h"
#include <qmljs/qmljsdocument.h>
#include <qmljs/parser/qmljsastfwd_p.h>
#include <qmljs/parser/qmljsastvisitor_p.h>
#include <qmljs/qmljsstaticanalysismessage.h>
#include <utils/json.h>
#include <QString>
#include <QSet>
#include <QStack>
#include <QList>
......
......@@ -33,10 +33,6 @@
#include "qmljsdocument.h"
#include "qmljsmodelmanagerinterface.h"
#include <languageutils/componentversion.h>
#include <QDir>
#include <QFileInfo>
#include <QDebug>
using namespace LanguageUtils;
......
......@@ -31,12 +31,9 @@
#define QMLJSBIND_H
#include <qmljs/parser/qmljsastvisitor_p.h>
#include <qmljs/qmljsinterpreter.h>
#include <qmljs/qmljsvalueowner.h>
#include <QHash>
#include <QStringList>
#include <QSharedPointer>
#include <QCoreApplication>
namespace QmlJS {
......
......@@ -35,7 +35,6 @@
#include <qmljs/qmljsdocument.h>
#include <QString>
#include <QCoreApplication>
#include <QHash>
QT_FORWARD_DECLARE_CLASS(QTextStream)
......
......@@ -29,7 +29,6 @@
#include "qmljscheck.h"
#include "qmljsbind.h"
#include "qmljscontext.h"
#include "qmljsevaluate.h"
#include "qmljsutils.h"
#include "parser/qmljsast_p.h"
......@@ -38,8 +37,6 @@
#include <QDebug>
#include <QDir>
#include <QColor>
#include <QApplication>
using namespace QmlJS;
using namespace QmlJS::AST;
......
......@@ -30,8 +30,6 @@
#ifndef QMLJSCHECK_H
#define QMLJSCHECK_H
#include <qmljs/qmljsdocument.h>
#include <qmljs/qmljscontext.h>
#include <qmljs/qmljsscopebuilder.h>
#include <qmljs/qmljsscopechain.h>
#include <qmljs/qmljsstaticanalysismessage.h>
......@@ -40,7 +38,6 @@
#include <QCoreApplication>
#include <QSet>
#include <QStack>
#include <QColor>
namespace QmlJS {
......
......@@ -32,7 +32,6 @@
#include <QDebug>
#include <QMetaEnum>
#include <QTextDocument>
#include <QTextCursor>
#include <QTextBlock>
using namespace QmlJS;
......
......@@ -30,7 +30,6 @@
#include "qmljsdelta.h"
#include "qmljsutils.h"
#include <qmljs/parser/qmljsast_p.h>
#include <qmljs/parser/qmljsastvisitor_p.h>
#include <typeinfo>
......
......@@ -29,10 +29,9 @@
#include "qmljsdocument.h"
#include "qmljsbind.h"
#include <qmljs/parser/qmljsast_p.h>
#include <qmljs/parser/qmljslexer_p.h>
#include <qmljs/parser/qmljsparser_p.h>
#include <qmljs/parser/qmljsastfwd_p.h>
#include <QDir>
using namespace QmlJS;
......
......@@ -30,7 +30,6 @@
#define QMLJSDOCUMENT_H
#include <QList>
#include <QPair>
#include <QSharedPointer>
#include <QString>
......
......@@ -29,7 +29,6 @@
#include "qmljsevaluate.h"
#include "qmljscontext.h"
#include "qmljsvalueowner.h"
#include "qmljsscopechain.h"
#include "parser/qmljsast_p.h"
#include <QDebug>
......
......@@ -28,6 +28,7 @@
****************************************************************************/
#include "qmljsicons.h"
#include <QIcon>
#include <QDebug>
#include <QDir>
#include <QHash>
......
......@@ -32,7 +32,8 @@
#include <qmljs/qmljs_global.h>
#include <qmljs/parser/qmljsast_p.h>
#include <QIcon>
QT_FORWARD_DECLARE_CLASS(QIcon)
namespace QmlJS {
......
......@@ -66,7 +66,6 @@
*/
#include <qmljs/qmljsindenter.h>
#include <qmljs/qmljsscanner.h>
#include <QDebug>
#include <QTextBlock>
......
......@@ -29,8 +29,6 @@
#include "qmljsinterpreter.h"
#include "qmljsevaluate.h"
#include "qmljslink.h"
#include "qmljsbind.h"
#include "qmljsscopebuilder.h"
#include "qmljsscopechain.h"
#include "qmljsscopeastpath.h"
......@@ -39,21 +37,14 @@
#include "qmljscontext.h"
#include "parser/qmljsast_p.h"
#include <languageutils/fakemetaobject.h>
#include <utils/qtcassert.h>
#include <QFile>
#include <QDir>
#include <QString>
#include <QStringList>
#include <QMetaObject>
#include <QMetaProperty>
#include <QXmlStreamReader>
#include <QProcess>
#include <QDebug>
#include <algorithm>
using namespace LanguageUtils;
using namespace QmlJS;
using namespace QmlJS::AST;
......
......@@ -30,11 +30,8 @@
#ifndef QMLJS_INTERPRETER_H
#define QMLJS_INTERPRETER_H
#include <languageutils/componentversion.h>
#include <languageutils/fakemetaobject.h>
#include <qmljs/qmljsdocument.h>
#include <qmljs/qmljs_global.h>
#include <qmljs/parser/qmljsastfwd_p.h>
#include <QFileInfoList>
#include <QList>
......
......@@ -66,7 +66,6 @@
*/
#include <qmljs/qmljslineinfo.h>
#include <qmljs/qmljsscanner.h>
#include <QDebug>
......
......@@ -35,7 +35,6 @@
#include "qmljsutils.h"
#include "qmljsmodelmanagerinterface.h"
#include <QFileInfo>
#include <QDir>
#include <QDebug>
......
......@@ -30,10 +30,7 @@
#ifndef QMLJSLINK_H
#define QMLJSLINK_H
#include <qmljs/qmljsdocument.h>
#include <qmljs/qmljscontext.h>
#include <qmljs/parser/qmljsastfwd_p.h>
#include <languageutils/componentversion.h>
#include <QCoreApplication>
......
......@@ -30,8 +30,6 @@
#ifndef QMLJSPROPERTYREADER_H
#define QMLJSPROPERTYREADER_H
#include <qmljs/qmljs_global.h>
#include <qmljs/parser/qmljsastfwd_p.h>
#include <qmljs/qmljsdocument.h>
#include <QHash>
......
......@@ -30,14 +30,10 @@
#include "qmljsreformatter.h"
#include "qmljscodeformatter.h"
#include "qmljsscanner.h"
#include "parser/qmljsast_p.h"
#include "parser/qmljsastvisitor_p.h"
#include <QCoreApplication>
#include <QString>
#include <QFile>
#include <QTextStream>
#include <QTextBlock>
#include <QTextDocument>
#include <QTextCursor>
......
......@@ -30,9 +30,7 @@
#include "qmljsrewriter.h"
#include <qmljs/parser/qmljsast_p.h>
#include <qmljs/parser/qmljsengine_p.h>
#include <qmljs/qmljsutils.h>
#include <utils/changeset.h>
// ### FIXME: remove these includes:
#include <QTextBlock>
......
......@@ -29,8 +29,6 @@
#include <qmljs/qmljsscanner.h>
#include <QTextCharFormat>
using namespace QmlJS;
namespace {
......
......@@ -30,7 +30,6 @@
#include "qmljsscopebuilder.h"
#include "qmljsbind.h"
#include "qmljscontext.h"
#include "qmljsevaluate.h"
#include "qmljsscopechain.h"
#include "qmljsutils.h"
......
......@@ -32,12 +32,7 @@
#include "parser/qmljsparser_p.h"
#include "parser/qmljslexer_p.h"
#include "parser/qmljsengine_p.h"
#include "parser/qmljsast_p.h"
#include "parser/qmljsastvisitor_p.h"
#include <qmljs/qmljsdocument.h>
#include "qmljsbind.h"
#include "qmljsinterpreter.h"
#include "qmljsutils.h"
#include <QFile>
......
......@@ -32,16 +32,10 @@
#include "parser/qmljsparser_p.h"
#include "parser/qmljslexer_p.h"
#include "parser/qmljsengine_p.h"
#include "parser/qmljsast_p.h"
#include "parser/qmljsastvisitor_p.h"
#include "qmljsbind.h"
#include "qmljsinterpreter.h"
#include "qmljsutils.h"
#include <QIODevice>
#include <QBuffer>
using namespace QmlJS;
using namespace QmlJS::AST;
using namespace LanguageUtils;
......
......@@ -30,8 +30,6 @@
#ifndef QMLJSTYPEDESCRIPTIONREADER_H
#define QMLJSTYPEDESCRIPTIONREADER_H
#include <languageutils/fakemetaobject.h>
#include <languageutils/componentversion.h>
#include "qmljsdocument.h"
// for Q_DECLARE_TR_FUNCTIONS
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment