Commit 4b0bafd6 authored by Friedemann Kleint's avatar Friedemann Kleint Committed by Erik Verbruggen
Browse files

Clean headers in CppTools.



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

Change-Id: Ic8464ea084ca1ab401e9f4a7d0183b92b4038902
Reviewed-by: default avatarErik Verbruggen <erik.verbruggen@digia.com>
parent 7d163a07
......@@ -31,11 +31,8 @@
#include "cppmodelmanager.h"
#include "cppdoxygen.h"
#include "cpptoolsconstants.h"
#include <coreplugin/idocument.h>
#include <coreplugin/icore.h>
#include <coreplugin/mimedatabase.h>
#include <cppeditor/cppeditorconstants.h>
#include <texteditor/codeassist/basicproposalitem.h>
#include <texteditor/codeassist/genericproposal.h>
......@@ -48,24 +45,12 @@
#include <utils/qtcassert.h>
#include <cplusplus/AST.h>
#include <cplusplus/ASTVisitor.h>
#include <cplusplus/BackwardsScanner.h>
#include <cplusplus/Control.h>
#include <cplusplus/CoreTypes.h>
#include <cplusplus/CppRewriter.h>
#include <cplusplus/ExpressionUnderCursor.h>
#include <cplusplus/Literals.h>
#include <cplusplus/LookupContext.h>
#include <cplusplus/MatchingText.h>
#include <cplusplus/NameVisitor.h>
#include <cplusplus/Names.h>
#include <cplusplus/Overview.h>
#include <cplusplus/ResolveExpression.h>
#include <cplusplus/Scope.h>
#include <cplusplus/SymbolVisitor.h>
#include <cplusplus/Symbols.h>
#include <cplusplus/TranslationUnit.h>
#include <QLatin1String>
#include <QTextCursor>
......
......@@ -32,18 +32,14 @@
#include "cppcompletionassistprovider.h"
#include <cplusplus/CppDocument.h>
#include <cplusplus/Icons.h>
#include <cplusplus/Overview.h>
#include <cplusplus/TypeOfExpression.h>
#if QT_VERSION >= 0x050000
// Qt 5 requires the types to be defined for Q_DECLARE_METATYPE
# include <cplusplus/Symbol.h>
#endif
#include <texteditor/codeassist/basicproposalitem.h>
#include <texteditor/codeassist/basicproposalitemlistmodel.h>
#include <texteditor/codeassist/completionassistprovider.h>
#include <texteditor/codeassist/defaultassistinterface.h>
#include <texteditor/codeassist/iassistprocessor.h>
#include <texteditor/snippets/snippetassistcollector.h>
......
......@@ -31,10 +31,6 @@
#include "cppmodelmanager.h"
#include <coreplugin/editormanager/editormanager.h>
#include <cplusplus/CppDocument.h>
#include <QStringMatcher>
using namespace CppTools::Internal;
......
......@@ -37,9 +37,7 @@
#include <coreplugin/mimedatabase.h>
#include <cppeditor/cppeditorconstants.h>
#include <extensionsystem/pluginmanager.h>
#include <utils/environment.h>
#include <utils/fileutils.h>
#include <QSettings>
#include <QDebug>
......@@ -51,7 +49,6 @@
#include <QTextCodec>
#include <QTextStream>
#include <QFileDialog>
#include <QMessageBox>
static const char headerSuffixKeyC[] = "HeaderSuffix";
static const char sourceSuffixKeyC[] = "SourceSuffix";
......
......@@ -32,40 +32,19 @@
#include "cpptoolsconstants.h"
#include "ModelManagerInterface.h"
#include <coreplugin/editormanager/editormanager.h>
#include <coreplugin/icore.h>
#include <coreplugin/infobar.h>
#include <coreplugin/progressmanager/futureprogress.h>
#include <coreplugin/progressmanager/progressmanager.h>
#include <find/searchresultwindow.h>
#include <texteditor/basefilefind.h>
#include <texteditor/basetexteditor.h>
#include <extensionsystem/pluginmanager.h>
#include <utils/filesearch.h>
#include <utils/fileutils.h>
#include <utils/qtcassert.h>
#include <utils/runextensions.h>
#include <utils/textfileformat.h>
#include <cplusplus/AST.h>
#include <cplusplus/ASTVisitor.h>
#include <cplusplus/Control.h>
#include <cplusplus/CppDocument.h>
#include <cplusplus/FindUsages.h>
#include <cplusplus/Literals.h>
#include <cplusplus/Names.h>
#include <cplusplus/Overview.h>
#include <cplusplus/Scope.h>
#include <cplusplus/Symbols.h>
#include <cplusplus/TranslationUnit.h>
#include <QTime>
#include <QTimer>
#include <QtConcurrentRun>
#include <QtConcurrentMap>
#include <QDir>
#include <QApplication>
#include <functional>
......
......@@ -30,9 +30,6 @@
#ifndef CPPFINDREFERENCES_H
#define CPPFINDREFERENCES_H
#include <utils/filesearch.h>
#include <cplusplus/CppDocument.h>
#include <cplusplus/DependencyTable.h>
#include <cplusplus/FindUsages.h>
......@@ -41,7 +38,6 @@
#include <QPointer>
#include <QFuture>
#include <QFutureWatcher>
#include <QMetaType>
QT_FORWARD_DECLARE_CLASS(QTimer)
......
......@@ -34,9 +34,7 @@
#include <texteditor/itexteditor.h>
#include <cplusplus/LookupContext.h>
#include <cplusplus/SimpleLexer.h>
#include <cplusplus/Token.h>
using namespace CPlusPlus;
using namespace CppTools;
......
......@@ -32,10 +32,6 @@
#include "cpphighlightingsupport.h"
#include <texteditor/semantichighlighter.h>
#include <cplusplus/CppDocument.h>
#include <QFuture>
namespace CppTools {
......
......@@ -31,15 +31,6 @@
#include "cppsemanticinfo.h"
#include <cplusplus/AST.h>
#include <cplusplus/ASTVisitor.h>
#include <cplusplus/CoreTypes.h>
#include <cplusplus/CppDocument.h>
#include <cplusplus/Literals.h>
#include <cplusplus/Names.h>
#include <cplusplus/Scope.h>
#include <cplusplus/Symbols.h>
using namespace CPlusPlus;
using namespace CppTools;
......
......@@ -33,9 +33,6 @@
#include "cpptools_global.h"
#include "cppsemanticinfo.h"
#include <cplusplus/CppDocument.h>
#include <cplusplus/ASTfwd.h>
namespace CppTools {
class CPPTOOLS_EXPORT LocalSymbols
......
......@@ -30,9 +30,6 @@
#include "cpplocatorfilter.h"
#include "cppmodelmanager.h"
#include <texteditor/itexteditor.h>
#include <texteditor/basetexteditor.h>
#include <utils/fileutils.h>
#include <QStringMatcher>
......
......@@ -35,52 +35,23 @@
#include "cpphighlightingsupportinternal.h"
#include "cppindexingsupport.h"
#include "abstracteditorsupport.h"
#include "cpptoolsconstants.h"
#include "cpptoolseditorsupport.h"
#include "cppfindreferences.h"
#include <coreplugin/editormanager/editormanager.h>
#include <coreplugin/icore.h>
#include <coreplugin/mimedatabase.h>
#include <coreplugin/progressmanager/progressmanager.h>
#include <projectexplorer/project.h>
#include <projectexplorer/projectexplorer.h>
#include <projectexplorer/projectexplorerconstants.h>
#include <projectexplorer/session.h>
#include <texteditor/basetexteditor.h>
#include <texteditor/itexteditor.h>
#include <extensionsystem/pluginmanager.h>
#include <utils/hostosinfo.h>
#include <utils/qtcassert.h>
#include <utils/runextensions.h>
#include <cplusplus/AST.h>
#include <cplusplus/ASTVisitor.h>
#include <cplusplus/Control.h>
#include <cplusplus/CoreTypes.h>
#include <cplusplus/Lexer.h>
#include <cplusplus/Literals.h>
#include <cplusplus/NameVisitor.h>
#include <cplusplus/Names.h>
#include <cplusplus/Overview.h>
#include <cplusplus/Parser.h>
#include <cplusplus/Scope.h>
#include <cplusplus/Symbols.h>
#include <cplusplus/Token.h>
#include <cplusplus/TranslationUnit.h>
#include <cplusplus/TypeVisitor.h>
#include <cplusplus/pp.h>
#include <QCoreApplication>
#include <QDebug>
#include <QMutexLocker>
#include <QTime>
#include <QTimer>
#include <QtConcurrentMap>
#include <QTextBlock>
#include <QtConcurrentRun>
#include <QFutureSynchronizer>
#include <functional>
#include <iostream>
......
......@@ -37,14 +37,10 @@
#include <projectexplorer/project.h>
#include <texteditor/basetexteditor.h>
#include <cplusplus/CppDocument.h>
#include <cplusplus/PreprocessorClient.h>
#include <cplusplus/PreprocessorEnvironment.h>
#include <cplusplus/pp-engine.h>
#include <QHash>
#include <QFutureInterface>
#include <QFutureSynchronizer>
#include <QMutex>
#include <QTimer>
#include <QTextEdit> // for QTextEdit::ExtraSelection
......
......@@ -32,8 +32,6 @@
#include "cppmodelmanager.h"
#include "modelmanagertesthelper.h"
#include <cplusplus/CppDocument.h>
#include <QtTest>
#include <QDebug>
......
......@@ -30,9 +30,6 @@
#include "cpppointerdeclarationformatter.h"
#include <cplusplus/AST.h>
#include <QtGlobal>
#include <QTextCursor>
#define DEBUG_OUTPUT 0
......
......@@ -33,12 +33,7 @@
#include "cpptools_global.h"
#include "cpprefactoringchanges.h"
#include <cplusplus/AST.h>
#include <cplusplus/ASTVisitor.h>
#include <cplusplus/Overview.h>
#include <cplusplus/Symbols.h>
#include <utils/changeset.h>
namespace CppTools {
......
......@@ -29,18 +29,12 @@
#include "cpptoolsplugin.h"
#include "cpppointerdeclarationformatter.h"
#include "cpprefactoringchanges.h"
#include "cpptoolsplugin.h"
#include <texteditor/plaintexteditor.h>
#include <utils/changeset.h>
#include <utils/fileutils.h>
#include <cplusplus/AST.h>
#include <cplusplus/CppDocument.h>
#include <cplusplus/Symbols.h>
#include <cplusplus/TranslationUnit.h>
#include <cplusplus/pp.h>
#include <QDebug>
......
......@@ -35,7 +35,6 @@
#include <coreplugin/mimedatabase.h>
#include <QString>
#include <QMap>
namespace CppTools {
......
......@@ -32,10 +32,6 @@
#include "cppcodeformatter.h"
#include "cpptoolssettings.h"
#include "cppcodestylepreferences.h"
#include "cpptoolsconstants.h"
#include <texteditor/tabsettings.h>
#include <texteditor/texteditorsettings.h>
#include <QChar>
#include <QTextDocument>
......
......@@ -29,24 +29,13 @@
#include "cpprefactoringchanges.h"
#include "cppcodestylepreferences.h"
#include "cppqtstyleindenter.h"
#include "cppcodeformatter.h"
#include "cppmodelmanager.h"
#include "cpptoolssettings.h"
#include "cpptoolsconstants.h"
#include <texteditor/texteditorsettings.h>
#include <texteditor/tabsettings.h>
#include <projectexplorer/editorconfiguration.h>
#include <cplusplus/TranslationUnit.h>
#include <cplusplus/AST.h>
#include <utils/qtcassert.h>
#include <QTextBlock>
using namespace CPlusPlus;
using namespace CppTools;
using namespace Utils;
......
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