Clean exported headers of the CppTools plugin.

Change-Id: I0144ac33e88980c431c54a6d69bbde28da4b1967
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
This commit is contained in:
Friedemann Kleint
2015-03-05 08:22:48 +01:00
parent 5eedf273be
commit fb80206f3c
46 changed files with 96 additions and 35 deletions

View File

@@ -30,6 +30,7 @@
#include "cppelementevaluator.h" #include "cppelementevaluator.h"
#include <cpptools/cppmodelmanager.h>
#include <cpptools/cpptoolsreuse.h> #include <cpptools/cpptoolsreuse.h>
#include <cpptools/typehierarchybuilder.h> #include <cpptools/typehierarchybuilder.h>

View File

@@ -35,6 +35,8 @@
#include <texteditor/texteditor.h> #include <texteditor/texteditor.h>
#include <texteditor/helpitem.h> #include <texteditor/helpitem.h>
#include <cplusplus/CppDocument.h>
#include <QString> #include <QString>
#include <QStringList> #include <QStringList>
#include <QSharedPointer> #include <QSharedPointer>

View File

@@ -43,6 +43,7 @@
#include <cplusplus/ASTPath.h> #include <cplusplus/ASTPath.h>
#include <cplusplus/CppRewriter.h> #include <cplusplus/CppRewriter.h>
#include <cplusplus/Overview.h>
#include <cplusplus/TypeOfExpression.h> #include <cplusplus/TypeOfExpression.h>
#include <utils/proxyaction.h> #include <utils/proxyaction.h>

View File

@@ -30,6 +30,8 @@
#include "cppeditortestcase.h" #include "cppeditortestcase.h"
#include <cpptools/cppprojects.h>
#include <QByteArray> #include <QByteArray>
#include <QList> #include <QList>
#include <QSharedPointer> #include <QSharedPointer>

View File

@@ -33,6 +33,7 @@
#include "cppeditorconstants.h" #include "cppeditorconstants.h"
#include "cppeditor.h" #include "cppeditor.h"
#include <cpptools/cppmodelmanager.h>
#include <texteditor/textdocument.h> #include <texteditor/textdocument.h>
#include <cplusplus/ASTPath.h> #include <cplusplus/ASTPath.h>

View File

@@ -29,6 +29,7 @@
****************************************************************************/ ****************************************************************************/
#include "baseeditordocumentparser.h" #include "baseeditordocumentparser.h"
#include "baseeditordocumentprocessor.h"
#include "editordocumenthandle.h" #include "editordocumenthandle.h"

View File

@@ -40,6 +40,7 @@
#include "searchsymbols.h" #include "searchsymbols.h"
#include <coreplugin/icore.h> #include <coreplugin/icore.h>
#include <coreplugin/find/searchresultwindow.h>
#include <coreplugin/progressmanager/progressmanager.h> #include <coreplugin/progressmanager/progressmanager.h>
#include <cplusplus/LookupContext.h> #include <cplusplus/LookupContext.h>
@@ -47,6 +48,7 @@
#include <utils/runextensions.h> #include <utils/runextensions.h>
#include <QCoreApplication> #include <QCoreApplication>
#include <QDir>
#include <QElapsedTimer> #include <QElapsedTimer>
using namespace CppTools; using namespace CppTools;

View File

@@ -32,11 +32,11 @@
#define CPPCLASSESFILTER_H #define CPPCLASSESFILTER_H
#include "cpptools_global.h" #include "cpptools_global.h"
#include "cpplocatordata.h"
#include "cpplocatorfilter.h" #include "cpplocatorfilter.h"
namespace CppTools { namespace CppTools {
class CppLocatorData;
// TODO: un-export this // TODO: un-export this
class CPPTOOLS_EXPORT CppClassesFilter : public Internal::CppLocatorFilter class CPPTOOLS_EXPORT CppClassesFilter : public Internal::CppLocatorFilter

View File

@@ -36,7 +36,6 @@
#include <texteditor/tabsettings.h> #include <texteditor/tabsettings.h>
#include <cplusplus/Token.h>
#include <cplusplus/SimpleLexer.h> #include <cplusplus/SimpleLexer.h>
#include <QStack> #include <QStack>

View File

@@ -29,6 +29,7 @@
****************************************************************************/ ****************************************************************************/
#include "cppcodemodelinspectordumper.h" #include "cppcodemodelinspectordumper.h"
#include "cppmodelmanager.h"
#include "cppworkingcopy.h" #include "cppworkingcopy.h"

View File

@@ -33,13 +33,15 @@
#include "cpptools_global.h" #include "cpptools_global.h"
#include <cpptools/cppmodelmanager.h> #include <cpptools/cppprojects.h>
#include <cplusplus/CppDocument.h> #include <cplusplus/CppDocument.h>
#include <QFile> #include <QFile>
#include <QTextStream> #include <QTextStream>
namespace CppTools { namespace CppTools {
class WorkingCopy;
namespace CppCodeModelInspector { namespace CppCodeModelInspector {
struct CPPTOOLS_EXPORT Utils struct CPPTOOLS_EXPORT Utils

View File

@@ -38,6 +38,8 @@
#include <projectexplorer/project.h> #include <projectexplorer/project.h>
#include <projectexplorer/projecttree.h> #include <projectexplorer/projecttree.h>
#include <cplusplus/Overview.h>
#include <utils/qtcassert.h> #include <utils/qtcassert.h>
#include <utils/settingsutils.h> #include <utils/settingsutils.h>

View File

@@ -33,14 +33,14 @@
#include "cpptools_global.h" #include "cpptools_global.h"
#include <cplusplus/Overview.h> #include <QVariantMap>
#include <QVariant>
QT_BEGIN_NAMESPACE QT_BEGIN_NAMESPACE
class QSettings; class QSettings;
QT_END_NAMESPACE QT_END_NAMESPACE
namespace CPlusPlus { class Overview; }
namespace CppTools { namespace CppTools {
class CPPTOOLS_EXPORT CppCodeStyleSettings class CPPTOOLS_EXPORT CppCodeStyleSettings

View File

@@ -45,6 +45,7 @@
#include <texteditor/snippets/isnippetprovider.h> #include <texteditor/snippets/isnippetprovider.h>
#include <texteditor/texteditorsettings.h> #include <texteditor/texteditorsettings.h>
#include <cplusplus/Overview.h>
#include <cplusplus/pp.h> #include <cplusplus/pp.h>
#include <extensionsystem/pluginmanager.h> #include <extensionsystem/pluginmanager.h>

View File

@@ -59,6 +59,7 @@
#include <cplusplus/Overview.h> #include <cplusplus/Overview.h>
#include <cplusplus/ResolveExpression.h> #include <cplusplus/ResolveExpression.h>
#include <QDirIterator>
#include <QLatin1String> #include <QLatin1String>
#include <QTextCursor> #include <QTextCursor>
#include <QTextDocument> #include <QTextDocument>

View File

@@ -36,12 +36,12 @@
#include <texteditor/codeassist/assistenums.h> #include <texteditor/codeassist/assistenums.h>
#include <texteditor/codeassist/completionassistprovider.h> #include <texteditor/codeassist/completionassistprovider.h>
#include <cplusplus/Token.h>
QT_BEGIN_NAMESPACE QT_BEGIN_NAMESPACE
class QTextDocument; class QTextDocument;
QT_END_NAMESPACE QT_END_NAMESPACE
namespace CPlusPlus { struct LanguageFeatures; }
namespace TextEditor { namespace TextEditor {
class BaseTextEditor; class BaseTextEditor;
class AssistInterface; class AssistInterface;

View File

@@ -32,8 +32,9 @@
#include "cppmodelmanager.h" #include "cppmodelmanager.h"
#include <coreplugin/editormanager/editormanager.h>
#include <coreplugin/idocument.h> #include <coreplugin/idocument.h>
#include <coreplugin/editormanager/editormanager.h>
#include <coreplugin/editormanager/ieditor.h>
#include <QStringMatcher> #include <QStringMatcher>

View File

@@ -34,6 +34,7 @@
#include <cplusplus/CppDocument.h> #include <cplusplus/CppDocument.h>
#include <coreplugin/editormanager/documentmodel.h> #include <coreplugin/editormanager/documentmodel.h>
#include <projectexplorer/project.h>
#include <projectexplorer/projectexplorer.h> #include <projectexplorer/projectexplorer.h>
#include <projectexplorer/session.h> #include <projectexplorer/session.h>

View File

@@ -35,12 +35,13 @@
#include "cppmodelmanager.h" #include "cppmodelmanager.h"
#include <coreplugin/find/searchresultwindow.h>
#include <coreplugin/find/textfindconstants.h> #include <coreplugin/find/textfindconstants.h>
#include <QFuture> #include <QFuture>
#include <QStringList> #include <QStringList>
namespace Core { class SearchResultItem; }
namespace CppTools { namespace CppTools {
class CPPTOOLS_EXPORT SymbolSearcher: public QObject class CPPTOOLS_EXPORT SymbolSearcher: public QObject

View File

@@ -31,6 +31,7 @@
#include "cppmodelmanager.h" #include "cppmodelmanager.h"
#include "abstracteditorsupport.h" #include "abstracteditorsupport.h"
#include "baseeditordocumentprocessor.h"
#include "builtinindexingsupport.h" #include "builtinindexingsupport.h"
#include "cppcodemodelinspectordumper.h" #include "cppcodemodelinspectordumper.h"
#include "cppcodemodelsettings.h" #include "cppcodemodelsettings.h"
@@ -48,6 +49,7 @@
#include <coreplugin/progressmanager/progressmanager.h> #include <coreplugin/progressmanager/progressmanager.h>
#include <coreplugin/editormanager/editormanager.h> #include <coreplugin/editormanager/editormanager.h>
#include <texteditor/textdocument.h> #include <texteditor/textdocument.h>
#include <projectexplorer/project.h>
#include <projectexplorer/projectexplorer.h> #include <projectexplorer/projectexplorer.h>
#include <projectexplorer/session.h> #include <projectexplorer/session.h>
#include <extensionsystem/pluginmanager.h> #include <extensionsystem/pluginmanager.h>
@@ -56,6 +58,7 @@
#include <QCoreApplication> #include <QCoreApplication>
#include <QDebug> #include <QDebug>
#include <QDir>
#include <QMutexLocker> #include <QMutexLocker>
#include <QTextBlock> #include <QTextBlock>
#include <QTimer> #include <QTimer>

View File

@@ -35,10 +35,6 @@
#include "cppprojects.h" #include "cppprojects.h"
#include <projectexplorer/project.h>
#include <texteditor/texteditor.h>
#include <cplusplus/CppDocument.h>
#include <cplusplus/cppmodelmanagerbase.h> #include <cplusplus/cppmodelmanagerbase.h>
#include <QFuture> #include <QFuture>

View File

@@ -28,6 +28,7 @@
** **
****************************************************************************/ ****************************************************************************/
#include "baseeditordocumentprocessor.h"
#include "builtineditordocumentparser.h" #include "builtineditordocumentparser.h"
#include "cppsourceprocessor.h" #include "cppsourceprocessor.h"
#include "cpptoolsplugin.h" #include "cpptoolsplugin.h"

View File

@@ -31,6 +31,9 @@
#include "cpppointerdeclarationformatter.h" #include "cpppointerdeclarationformatter.h"
#include <cplusplus/Overview.h>
#include <QDebug>
#include <QTextCursor> #include <QTextCursor>
#define DEBUG_OUTPUT 0 #define DEBUG_OUTPUT 0

View File

@@ -34,7 +34,11 @@
#include "cpptools_global.h" #include "cpptools_global.h"
#include "cpprefactoringchanges.h" #include "cpprefactoringchanges.h"
#include <cplusplus/Overview.h> #include <cplusplus/ASTVisitor.h>
#include <utils/changeset.h>
namespace CPlusPlus { class Overview; }
namespace CppTools { namespace CppTools {

View File

@@ -41,6 +41,7 @@
#include <utils/fileutils.h> #include <utils/fileutils.h>
#include <cplusplus/Overview.h>
#include <cplusplus/pp.h> #include <cplusplus/pp.h>
#include <QDebug> #include <QDebug>

View File

@@ -33,8 +33,6 @@
#include "cpptools_global.h" #include "cpptools_global.h"
#include <utils/mimetypes/mimetype.h>
#include <QHash> #include <QHash>
#include <QList> #include <QList>
#include <QString> #include <QString>

View File

@@ -34,11 +34,14 @@
#include <projectexplorer/kit.h> #include <projectexplorer/kit.h>
#include <projectexplorer/kitinformation.h> #include <projectexplorer/kitinformation.h>
#include <projectexplorer/kitmanager.h> #include <projectexplorer/kitmanager.h>
#include <projectexplorer/project.h>
#include <projectexplorer/projectexplorerconstants.h> #include <projectexplorer/projectexplorerconstants.h>
#include <projectexplorer/target.h> #include <projectexplorer/target.h>
#include <utils/fileutils.h>
#include <utils/qtcassert.h> #include <utils/qtcassert.h>
#include <QDir>
#include <QSet> #include <QSet>
#include <QTextStream> #include <QTextStream>

View File

@@ -35,7 +35,6 @@
#include "cppprojectfile.h" #include "cppprojectfile.h"
#include <projectexplorer/project.h>
#include <projectexplorer/toolchain.h> #include <projectexplorer/toolchain.h>
#include <cplusplus/Token.h> #include <cplusplus/Token.h>
@@ -45,7 +44,12 @@
#include <functional> #include <functional>
namespace ProjectExplorer { class Project; }
namespace Utils { class FileName; }
namespace CppTools { namespace CppTools {
class ProjectFile;
class CPPTOOLS_EXPORT ProjectPart class CPPTOOLS_EXPORT ProjectPart
{ {

View File

@@ -39,6 +39,8 @@
#include <utils/qtcassert.h> #include <utils/qtcassert.h>
#include <QTextDocument>
using namespace CPlusPlus; using namespace CPlusPlus;
namespace CppTools { namespace CppTools {

View File

@@ -32,12 +32,11 @@
#define CPPREFACTORINGCHANGES_H #define CPPREFACTORINGCHANGES_H
#include "cpptools_global.h" #include "cpptools_global.h"
#include "cppmodelmanager.h"
#include <cplusplus/CppDocument.h>
#include <texteditor/refactoringchanges.h> #include <texteditor/refactoringchanges.h>
#include <cplusplus/LookupContext.h>
namespace CppTools { namespace CppTools {
class CppRefactoringChanges; class CppRefactoringChanges;

View File

@@ -56,6 +56,7 @@
#include <coreplugin/jsexpander.h> #include <coreplugin/jsexpander.h>
#include <coreplugin/vcsmanager.h> #include <coreplugin/vcsmanager.h>
#include <cppeditor/cppeditorconstants.h> #include <cppeditor/cppeditorconstants.h>
#include <projectexplorer/project.h>
#include <projectexplorer/projecttree.h> #include <projectexplorer/projecttree.h>
#include <utils/fileutils.h> #include <utils/fileutils.h>

View File

@@ -29,10 +29,11 @@
****************************************************************************/ ****************************************************************************/
#include "cpptoolstestcase.h" #include "cpptoolstestcase.h"
#include "cppmodelmanager.h"
#include "cppworkingcopy.h" #include "cppworkingcopy.h"
#include <coreplugin/editormanager/editormanager.h> #include <coreplugin/editormanager/editormanager.h>
#include <projectexplorer/project.h>
#include <projectexplorer/projectexplorer.h> #include <projectexplorer/projectexplorer.h>
#include <projectexplorer/session.h> #include <projectexplorer/session.h>
#include <texteditor/texteditor.h> #include <texteditor/texteditor.h>

View File

@@ -31,10 +31,9 @@
#ifndef CPPTOOLSTESTCASE_H #ifndef CPPTOOLSTESTCASE_H
#define CPPTOOLSTESTCASE_H #define CPPTOOLSTESTCASE_H
#include "cppmodelmanager.h"
#include "cpptools_global.h" #include "cpptools_global.h"
#include <coreplugin/editormanager/ieditor.h> #include <cplusplus/CppDocument.h>
#include <QStringList> #include <QStringList>
#include <QTemporaryDir> #include <QTemporaryDir>
@@ -53,6 +52,9 @@ class IAssistProposal;
} }
namespace CppTools { namespace CppTools {
class CppModelManager;
class ProjectInfo;
namespace Tests { namespace Tests {
class CPPTOOLS_EXPORT TestDocument class CPPTOOLS_EXPORT TestDocument

View File

@@ -35,7 +35,7 @@
#include <cplusplus/Overview.h> #include <cplusplus/Overview.h>
#include <QTextCursor> QT_FORWARD_DECLARE_CLASS(QTextCursor)
namespace CPlusPlus { class DeclarationAST; } namespace CPlusPlus { class DeclarationAST; }

View File

@@ -31,10 +31,10 @@
#ifndef EDITORDOCUMENTHANDLE_H #ifndef EDITORDOCUMENTHANDLE_H
#define EDITORDOCUMENTHANDLE_H #define EDITORDOCUMENTHANDLE_H
#include "baseeditordocumentprocessor.h"
#include "cpptools_global.h" #include "cpptools_global.h"
namespace CppTools { namespace CppTools {
class BaseEditorDocumentProcessor;
class CPPTOOLS_EXPORT CppEditorDocumentHandle class CPPTOOLS_EXPORT CppEditorDocumentHandle
{ {

View File

@@ -30,12 +30,15 @@
#include "insertionpointlocator.h" #include "insertionpointlocator.h"
#include "cppprojectfile.h"
#include "cpptoolsreuse.h" #include "cpptoolsreuse.h"
#include "symbolfinder.h" #include "symbolfinder.h"
#include "cpptoolsconstants.h" #include "cpptoolsconstants.h"
#include <coreplugin/icore.h> #include <coreplugin/icore.h>
#include <cplusplus/LookupContext.h>
#include <utils/qtcassert.h> #include <utils/qtcassert.h>
using namespace CPlusPlus; using namespace CPlusPlus;

View File

@@ -33,6 +33,8 @@
#include "cppmodelmanager.h" #include "cppmodelmanager.h"
#include <projectexplorer/project.h>
#include <QObject> #include <QObject>
namespace CppTools { namespace CppTools {

View File

@@ -29,13 +29,16 @@
****************************************************************************/ ****************************************************************************/
#include "semantichighlighter.h" #include "semantichighlighter.h"
#include "cppsemanticinfo.h"
#include <texteditor/fontsettings.h> #include <texteditor/fontsettings.h>
#include <texteditor/syntaxhighlighter.h> #include <texteditor/syntaxhighlighter.h>
#include <texteditor/textdocument.h>
#include <utils/qtcassert.h> #include <utils/qtcassert.h>
#include <QLoggingCategory> #include <QLoggingCategory>
#include <QTextDocument>
using namespace CPlusPlus; using namespace CPlusPlus;
using TextEditor::SemanticHighlighter::incrementalApplyExtraAdditionalFormats; using TextEditor::SemanticHighlighter::incrementalApplyExtraAdditionalFormats;

View File

@@ -31,18 +31,19 @@
#ifndef SEMANTICHIGHLIGHTER_H #ifndef SEMANTICHIGHLIGHTER_H
#define SEMANTICHIGHLIGHTER_H #define SEMANTICHIGHLIGHTER_H
#include "cppsemanticinfo.h"
#include "cpptools_global.h" #include "cpptools_global.h"
#include <texteditor/textdocument.h>
#include <texteditor/semantichighlighter.h>
#include <QFutureWatcher> #include <QFutureWatcher>
#include <QScopedPointer> #include <QScopedPointer>
#include <QTextEdit> #include <QTextCharFormat>
#include <functional> #include <functional>
namespace TextEditor {
class HighlightingResult;
class TextDocument;
}
namespace CppTools { namespace CppTools {
class CPPTOOLS_EXPORT SemanticHighlighter : public QObject class CPPTOOLS_EXPORT SemanticHighlighter : public QObject

View File

@@ -33,13 +33,20 @@
#include "cpptools_global.h" #include "cpptools_global.h"
#include <cplusplus/CppDocument.h>
#include <QHash> #include <QHash>
#include <QStringList> #include <QStringList>
#include <QMultiMap> #include <QMultiMap>
#include <QSet> #include <QSet>
namespace CPlusPlus {
class Class;
class Declaration;
class Function;
class LookupContext;
class Snapshot;
class Symbol;
}
namespace CppTools { namespace CppTools {
class CPPTOOLS_EXPORT SymbolFinder class CPPTOOLS_EXPORT SymbolFinder

View File

@@ -36,6 +36,7 @@
#include "searchsymbols.h" #include "searchsymbols.h"
#include <coreplugin/testdatadir.h> #include <coreplugin/testdatadir.h>
#include <coreplugin/find/searchresultwindow.h>
#include <utils/runextensions.h> #include <utils/runextensions.h>
#include <QtTest> #include <QtTest>

View File

@@ -36,6 +36,8 @@
#include <coreplugin/progressmanager/futureprogress.h> #include <coreplugin/progressmanager/futureprogress.h>
#include <coreplugin/progressmanager/progressmanager.h> #include <coreplugin/progressmanager/progressmanager.h>
#include <coreplugin/editormanager/editormanager.h> #include <coreplugin/editormanager/editormanager.h>
#include <coreplugin/find/searchresultwindow.h>
#include <projectexplorer/project.h>
#include <projectexplorer/projectexplorer.h> #include <projectexplorer/projectexplorer.h>
#include <projectexplorer/session.h> #include <projectexplorer/session.h>

View File

@@ -41,6 +41,8 @@
#include <QCheckBox> #include <QCheckBox>
#include <QRadioButton> #include <QRadioButton>
namespace Core { class SearchResult; }
namespace CppTools { namespace CppTools {
class CppModelManager; class CppModelManager;

View File

@@ -32,14 +32,15 @@
#define CPPTOOLS_TYPEHIERARCHYBUILDER_H #define CPPTOOLS_TYPEHIERARCHYBUILDER_H
#include "cpptools_global.h" #include "cpptools_global.h"
#include "cppmodelmanager.h"
#include <cplusplus/CppDocument.h>
#include <cplusplus/Overview.h> #include <cplusplus/Overview.h>
#include <QList> #include <QList>
#include <QStringList>
#include <QSet> #include <QSet>
QT_FORWARD_DECLARE_CLASS(QStringList)
namespace CppTools { namespace CppTools {
class CPPTOOLS_EXPORT TypeHierarchy class CPPTOOLS_EXPORT TypeHierarchy

View File

@@ -40,6 +40,7 @@
#include <cpptools/cppworkingcopy.h> #include <cpptools/cppworkingcopy.h>
#include <cpptools/insertionpointlocator.h> #include <cpptools/insertionpointlocator.h>
#include <cpptools/symbolfinder.h> #include <cpptools/symbolfinder.h>
#include <cplusplus/LookupContext.h>
#include <cplusplus/Overview.h> #include <cplusplus/Overview.h>
#include <coreplugin/icore.h> #include <coreplugin/icore.h>
#include <coreplugin/editormanager/editormanager.h> #include <coreplugin/editormanager/editormanager.h>

View File

@@ -35,6 +35,7 @@
#include <coreplugin/icore.h> #include <coreplugin/icore.h>
#include <coreplugin/editormanager/documentmodel.h> #include <coreplugin/editormanager/documentmodel.h>
#include <coreplugin/editormanager/ieditor.h>
#include <coreplugin/messagemanager.h> #include <coreplugin/messagemanager.h>
#include <coreplugin/progressmanager/progressmanager.h> #include <coreplugin/progressmanager/progressmanager.h>
#include <cpptools/cppmodelmanager.h> #include <cpptools/cppmodelmanager.h>