summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOswald Buddenhagen <oswald.buddenhagen@digia.com>2013-03-27 18:54:03 +0100
committerOswald Buddenhagen <oswald.buddenhagen@digia.com>2013-04-03 13:40:39 +0200
commit792303202213b4c90fc670620658aa0551bfc1b3 (patch)
tree721156735347cac46c084d44c5e5e1d782c22d38
parent4fc706d7e04abcbdd77d1687e9f4fc0971b8eb07 (diff)
downloadqt-creator-792303202213b4c90fc670620658aa0551bfc1b3.tar.gz
fix include style relating to cplusplus libraries
... and adjust INCLUDEPATH accordingly. while i'm at messing with include statements, also re-order the include blocks according to policy and sort them within bigger blocks. Change-Id: I7762abfd7c4ecf59432b99db2f424e4fa25733a5 Reviewed-by: Tobias Hunger <tobias.hunger@digia.com> Reviewed-by: Eike Ziller <eike.ziller@digia.com>
-rw-r--r--src/libs/cplusplus/ASTParent.cpp3
-rw-r--r--src/libs/cplusplus/ASTParent.h3
-rw-r--r--src/libs/cplusplus/ASTPath.cpp4
-rw-r--r--src/libs/cplusplus/ASTPath.h4
-rw-r--r--src/libs/cplusplus/BackwardsScanner.cpp5
-rw-r--r--src/libs/cplusplus/CppDocument.cpp32
-rw-r--r--src/libs/cplusplus/CppDocument.h3
-rw-r--r--src/libs/cplusplus/CppRewriter.cpp19
-rw-r--r--src/libs/cplusplus/DependencyTable.h2
-rw-r--r--src/libs/cplusplus/DeprecatedGenTemplateInstance.cpp12
-rw-r--r--src/libs/cplusplus/DeprecatedGenTemplateInstance.h6
-rw-r--r--src/libs/cplusplus/Dumpers.cpp10
-rw-r--r--src/libs/cplusplus/Dumpers.h9
-rw-r--r--src/libs/cplusplus/ExpressionUnderCursor.cpp4
-rw-r--r--src/libs/cplusplus/ExpressionUnderCursor.h3
-rw-r--r--src/libs/cplusplus/FastPreprocessor.cpp6
-rw-r--r--src/libs/cplusplus/FastPreprocessor.h2
-rw-r--r--src/libs/cplusplus/FindUsages.cpp19
-rw-r--r--src/libs/cplusplus/FindUsages.h4
-rw-r--r--src/libs/cplusplus/Icons.cpp8
-rw-r--r--src/libs/cplusplus/Icons.h2
-rw-r--r--src/libs/cplusplus/LookupContext.cpp13
-rw-r--r--src/libs/cplusplus/LookupContext.h15
-rw-r--r--src/libs/cplusplus/LookupItem.cpp7
-rw-r--r--src/libs/cplusplus/LookupItem.h3
-rw-r--r--src/libs/cplusplus/Macro.h2
-rw-r--r--src/libs/cplusplus/MatchingText.cpp5
-rw-r--r--src/libs/cplusplus/MatchingText.h2
-rw-r--r--src/libs/cplusplus/NamePrettyPrinter.cpp9
-rw-r--r--src/libs/cplusplus/NamePrettyPrinter.h3
-rw-r--r--src/libs/cplusplus/Overview.cpp7
-rw-r--r--src/libs/cplusplus/Overview.h2
-rw-r--r--src/libs/cplusplus/OverviewModel.cpp7
-rw-r--r--src/libs/cplusplus/PPToken.h4
-rw-r--r--src/libs/cplusplus/PreprocessorClient.h3
-rw-r--r--src/libs/cplusplus/PreprocessorEnvironment.cpp3
-rw-r--r--src/libs/cplusplus/PreprocessorEnvironment.h3
-rw-r--r--src/libs/cplusplus/ResolveExpression.cpp22
-rw-r--r--src/libs/cplusplus/ResolveExpression.h7
-rw-r--r--src/libs/cplusplus/SimpleLexer.cpp6
-rw-r--r--src/libs/cplusplus/SimpleLexer.h2
-rw-r--r--src/libs/cplusplus/SnapshotSymbolVisitor.cpp3
-rw-r--r--src/libs/cplusplus/SnapshotSymbolVisitor.h4
-rw-r--r--src/libs/cplusplus/SymbolNameVisitor.cpp5
-rw-r--r--src/libs/cplusplus/SymbolNameVisitor.h2
-rw-r--r--src/libs/cplusplus/TypeOfExpression.cpp8
-rw-r--r--src/libs/cplusplus/TypeOfExpression.h3
-rw-r--r--src/libs/cplusplus/TypePrettyPrinter.cpp12
-rw-r--r--src/libs/cplusplus/TypePrettyPrinter.h5
-rw-r--r--src/libs/cplusplus/cplusplus-lib.pri2
-rw-r--r--src/libs/cplusplus/cplusplus.pri2
-rw-r--r--src/libs/cplusplus/cplusplus.qbs6
-rw-r--r--src/libs/cplusplus/findcdbbreakpoint.cpp7
-rw-r--r--src/libs/cplusplus/findcdbbreakpoint.h4
-rw-r--r--src/libs/cplusplus/pp-cctype.h2
-rw-r--r--src/libs/cplusplus/pp-engine.cpp10
-rw-r--r--src/libs/cplusplus/pp-engine.h5
-rw-r--r--src/plugins/analyzerbase/analyzerutils.cpp3
-rw-r--r--src/plugins/classview/classviewparser.cpp8
-rw-r--r--src/plugins/classview/classviewparser.h2
-rw-r--r--src/plugins/cppeditor/cppautocompleter.cpp3
-rw-r--r--src/plugins/cppeditor/cppautocompleter.h3
-rw-r--r--src/plugins/cppeditor/cppclasswizard.cpp6
-rw-r--r--src/plugins/cppeditor/cppclasswizard.h1
-rw-r--r--src/plugins/cppeditor/cppcompleteswitch.cpp14
-rw-r--r--src/plugins/cppeditor/cppdoxygen_test.cpp8
-rw-r--r--src/plugins/cppeditor/cppeditor.cpp77
-rw-r--r--src/plugins/cppeditor/cppeditor.h11
-rw-r--r--src/plugins/cppeditor/cppelementevaluator.cpp24
-rw-r--r--src/plugins/cppeditor/cppelementevaluator.h3
-rw-r--r--src/plugins/cppeditor/cppfilewizard.cpp2
-rw-r--r--src/plugins/cppeditor/cppfunctiondecldeflink.cpp30
-rw-r--r--src/plugins/cppeditor/cppfunctiondecldeflink.h3
-rw-r--r--src/plugins/cppeditor/cpphighlighter.cpp7
-rw-r--r--src/plugins/cppeditor/cpphighlighter.h2
-rw-r--r--src/plugins/cppeditor/cpphoverhandler.cpp8
-rw-r--r--src/plugins/cppeditor/cppinsertdecldef.cpp13
-rw-r--r--src/plugins/cppeditor/cppinsertqtpropertymembers.cpp14
-rw-r--r--src/plugins/cppeditor/cppinsertqtpropertymembers.h2
-rw-r--r--src/plugins/cppeditor/cppoutline.cpp9
-rw-r--r--src/plugins/cppeditor/cppoutline.h3
-rw-r--r--src/plugins/cppeditor/cppplugin.cpp25
-rw-r--r--src/plugins/cppeditor/cppplugin.h3
-rw-r--r--src/plugins/cppeditor/cppquickfix.cpp16
-rw-r--r--src/plugins/cppeditor/cppquickfix.h1
-rw-r--r--src/plugins/cppeditor/cppquickfix_test.cpp34
-rw-r--r--src/plugins/cppeditor/cppquickfixassistant.cpp18
-rw-r--r--src/plugins/cppeditor/cppquickfixassistant.h7
-rw-r--r--src/plugins/cppeditor/cppquickfixes.cpp27
-rw-r--r--src/plugins/cppeditor/cppquickfixes.h5
-rw-r--r--src/plugins/cppeditor/cppsnippetprovider.cpp1
-rw-r--r--src/plugins/cppeditor/cpptypehierarchy.cpp2
-rw-r--r--src/plugins/cpptools/ModelManagerInterface.cpp3
-rw-r--r--src/plugins/cpptools/ModelManagerInterface.h5
-rw-r--r--src/plugins/cpptools/TypeHierarchyBuilder.cpp17
-rw-r--r--src/plugins/cpptools/TypeHierarchyBuilder.h7
-rw-r--r--src/plugins/cpptools/abstracteditorsupport.cpp16
-rw-r--r--src/plugins/cpptools/builtinindexingsupport.cpp2
-rw-r--r--src/plugins/cpptools/completionsettingspage.cpp6
-rw-r--r--src/plugins/cpptools/cppchecksymbols.cpp21
-rw-r--r--src/plugins/cpptools/cppchecksymbols.h7
-rw-r--r--src/plugins/cpptools/cppcodeformatter.cpp9
-rw-r--r--src/plugins/cpptools/cppcodeformatter.h7
-rw-r--r--src/plugins/cpptools/cppcodegen_test.cpp24
-rw-r--r--src/plugins/cpptools/cppcodestylepreferences.h1
-rw-r--r--src/plugins/cpptools/cppcodestylepreferencesfactory.cpp10
-rw-r--r--src/plugins/cpptools/cppcodestylesettings.cpp9
-rw-r--r--src/plugins/cpptools/cppcodestylesettingspage.cpp12
-rw-r--r--src/plugins/cpptools/cppcodestylesettingspage.h6
-rw-r--r--src/plugins/cpptools/cppcompletion_test.cpp25
-rw-r--r--src/plugins/cpptools/cppcompletionassist.cpp41
-rw-r--r--src/plugins/cpptools/cppcompletionassist.h6
-rw-r--r--src/plugins/cpptools/cppcompletionassistprovider.cpp2
-rw-r--r--src/plugins/cpptools/cppcurrentdocumentfilter.cpp3
-rw-r--r--src/plugins/cpptools/cppcurrentdocumentfilter.h1
-rw-r--r--src/plugins/cpptools/cppfilesettingspage.cpp5
-rw-r--r--src/plugins/cpptools/cppfindreferences.cpp41
-rw-r--r--src/plugins/cpptools/cppfindreferences.h1
-rw-r--r--src/plugins/cpptools/cpphighlightingsupport.h3
-rw-r--r--src/plugins/cpptools/cpphighlightingsupportinternal.cpp6
-rw-r--r--src/plugins/cpptools/cpphighlightingsupportinternal.h3
-rw-r--r--src/plugins/cpptools/cpplocalsymbols.cpp15
-rw-r--r--src/plugins/cpptools/cpplocalsymbols.h2
-rw-r--r--src/plugins/cpptools/cpplocatorfilter.cpp1
-rw-r--r--src/plugins/cpptools/cpplocatorfilter.h1
-rw-r--r--src/plugins/cpptools/cppmodelmanager.cpp57
-rw-r--r--src/plugins/cpptools/cppmodelmanager.h4
-rw-r--r--src/plugins/cpptools/cppmodelmanager_test.cpp4
-rw-r--r--src/plugins/cpptools/cpppointerdeclarationformatter.cpp2
-rw-r--r--src/plugins/cpptools/cpppointerdeclarationformatter.h10
-rw-r--r--src/plugins/cpptools/cpppointerdeclarationformatter_test.cpp19
-rw-r--r--src/plugins/cpptools/cppprojectfile.cpp5
-rw-r--r--src/plugins/cpptools/cppprojectfile.h6
-rw-r--r--src/plugins/cpptools/cppqtstyleindenter.cpp1
-rw-r--r--src/plugins/cpptools/cpprefactoringchanges.cpp15
-rw-r--r--src/plugins/cpptools/cpprefactoringchanges.h10
-rw-r--r--src/plugins/cpptools/cppsemanticinfo.h4
-rw-r--r--src/plugins/cpptools/cpptools.pro1
-rw-r--r--src/plugins/cpptools/cpptoolseditorsupport.cpp8
-rw-r--r--src/plugins/cpptools/cpptoolseditorsupport.h5
-rw-r--r--src/plugins/cpptools/cpptoolsplugin.cpp27
-rw-r--r--src/plugins/cpptools/cpptoolsplugin.h5
-rw-r--r--src/plugins/cpptools/cpptoolsreuse.cpp4
-rw-r--r--src/plugins/cpptools/cpptoolssettings.cpp12
-rw-r--r--src/plugins/cpptools/doxygengenerator.cpp12
-rw-r--r--src/plugins/cpptools/insertionpointlocator.cpp13
-rw-r--r--src/plugins/cpptools/insertionpointlocator.h7
-rw-r--r--src/plugins/cpptools/searchsymbols.cpp7
-rw-r--r--src/plugins/cpptools/searchsymbols.h5
-rw-r--r--src/plugins/cpptools/symbolfinder.cpp16
-rw-r--r--src/plugins/cpptools/symbolfinder.h4
-rw-r--r--src/plugins/cpptools/symbolsfindfilter.cpp9
-rw-r--r--src/plugins/cpptools/uicodecompletionsupport.h1
-rw-r--r--src/plugins/designer/codemodelhelpers.cpp2
-rw-r--r--src/plugins/glsleditor/glslautocompleter.cpp2
-rw-r--r--src/plugins/todo/cpptodoitemsscanner.cpp2
-rw-r--r--src/plugins/valgrind/callgrindtool.cpp2
-rw-r--r--tests/auto/cplusplus/ast/tst_ast.cpp8
-rw-r--r--tests/auto/cplusplus/checksymbols/tst_checksymbols.cpp4
-rw-r--r--tests/auto/cplusplus/cxx11/tst_cxx11.cpp7
-rw-r--r--tests/auto/cplusplus/findusages/tst_findusages.cpp22
-rw-r--r--tests/auto/cplusplus/lexer/tst_lexer.cpp6
-rw-r--r--tests/auto/cplusplus/lookup/tst_lookup.cpp20
-rw-r--r--tests/auto/cplusplus/misc/tst_misc.cpp5
-rw-r--r--tests/auto/cplusplus/preprocessor/tst_preprocessor.cpp3
-rw-r--r--tests/auto/cplusplus/semantic/tst_semantic.cpp30
-rw-r--r--tests/auto/cplusplus/shared/shared.pri2
-rw-r--r--tests/auto/cplusplus/typeprettyprinter/tst_typeprettyprinter.cpp16
-rw-r--r--tests/auto/debugger/dumpers.pro2
-rw-r--r--tests/auto/debugger/tst_dumpers.cpp2
-rw-r--r--tests/manual/cplusplus-frontend/cplusplus-frontend.cpp24
-rw-r--r--tests/manual/preprocessor/main.cpp6
-rw-r--r--tests/tools/cplusplus-ast2png/cplusplus-ast2png.cpp28
173 files changed, 833 insertions, 711 deletions
diff --git a/src/libs/cplusplus/ASTParent.cpp b/src/libs/cplusplus/ASTParent.cpp
index f31faa431b..37b470c10c 100644
--- a/src/libs/cplusplus/ASTParent.cpp
+++ b/src/libs/cplusplus/ASTParent.cpp
@@ -28,7 +28,8 @@
****************************************************************************/
#include "ASTParent.h"
-#include "AST.h"
+
+#include <cplusplus/AST.h>
using namespace CPlusPlus;
diff --git a/src/libs/cplusplus/ASTParent.h b/src/libs/cplusplus/ASTParent.h
index 4fa25aef40..efd7d322d9 100644
--- a/src/libs/cplusplus/ASTParent.h
+++ b/src/libs/cplusplus/ASTParent.h
@@ -30,7 +30,8 @@
#ifndef CPLUSPLUS_ASTPARENT_H
#define CPLUSPLUS_ASTPARENT_H
-#include <ASTVisitor.h>
+#include <cplusplus/ASTVisitor.h>
+
#include <QHash>
#include <QStack>
diff --git a/src/libs/cplusplus/ASTPath.cpp b/src/libs/cplusplus/ASTPath.cpp
index 6d4f46c344..0d3fcf726d 100644
--- a/src/libs/cplusplus/ASTPath.cpp
+++ b/src/libs/cplusplus/ASTPath.cpp
@@ -29,8 +29,8 @@
#include "ASTPath.h"
-#include <AST.h>
-#include <TranslationUnit.h>
+#include <cplusplus/AST.h>
+#include <cplusplus/TranslationUnit.h>
#ifdef DEBUG_AST_PATH
# include <QDebug>
diff --git a/src/libs/cplusplus/ASTPath.h b/src/libs/cplusplus/ASTPath.h
index 00e0b4fc52..b74ec3f87c 100644
--- a/src/libs/cplusplus/ASTPath.h
+++ b/src/libs/cplusplus/ASTPath.h
@@ -30,8 +30,8 @@
#ifndef CPLUSPLUS_ASTPATH_H
#define CPLUSPLUS_ASTPATH_H
-#include <ASTfwd.h>
-#include <ASTVisitor.h>
+#include <cplusplus/ASTfwd.h>
+#include <cplusplus/ASTVisitor.h>
#include "CppDocument.h"
diff --git a/src/libs/cplusplus/BackwardsScanner.cpp b/src/libs/cplusplus/BackwardsScanner.cpp
index f4e36ab572..2649e13215 100644
--- a/src/libs/cplusplus/BackwardsScanner.cpp
+++ b/src/libs/cplusplus/BackwardsScanner.cpp
@@ -26,8 +26,11 @@
** version 1.1, included in the file LGPL_EXCEPTION.txt in this package.
**
****************************************************************************/
+
#include "BackwardsScanner.h"
-#include <Token.h>
+
+#include <cplusplus/Token.h>
+
#include <QTextCursor>
#include <QTextDocument>
diff --git a/src/libs/cplusplus/CppDocument.cpp b/src/libs/cplusplus/CppDocument.cpp
index f35784a0ff..2385238b9c 100644
--- a/src/libs/cplusplus/CppDocument.cpp
+++ b/src/libs/cplusplus/CppDocument.cpp
@@ -31,22 +31,22 @@
#include "FastPreprocessor.h"
#include "LookupContext.h"
#include "Overview.h"
-#include "Bind.h"
-
-#include <Control.h>
-#include <TranslationUnit.h>
-#include <DiagnosticClient.h>
-#include <Literals.h>
-#include <Symbols.h>
-#include <Names.h>
-#include <AST.h>
-#include <ASTPatternBuilder.h>
-#include <ASTMatcher.h>
-#include <Scope.h>
-#include <SymbolVisitor.h>
-#include <NameVisitor.h>
-#include <TypeVisitor.h>
-#include <CoreTypes.h>
+
+#include <cplusplus/Bind.h>
+#include <cplusplus/Control.h>
+#include <cplusplus/TranslationUnit.h>
+#include <cplusplus/DiagnosticClient.h>
+#include <cplusplus/Literals.h>
+#include <cplusplus/Symbols.h>
+#include <cplusplus/Names.h>
+#include <cplusplus/AST.h>
+#include <cplusplus/ASTPatternBuilder.h>
+#include <cplusplus/ASTMatcher.h>
+#include <cplusplus/Scope.h>
+#include <cplusplus/SymbolVisitor.h>
+#include <cplusplus/NameVisitor.h>
+#include <cplusplus/TypeVisitor.h>
+#include <cplusplus/CoreTypes.h>
#include <QByteArray>
#include <QBitArray>
diff --git a/src/libs/cplusplus/CppDocument.h b/src/libs/cplusplus/CppDocument.h
index 6e770145a5..9d2cd128e2 100644
--- a/src/libs/cplusplus/CppDocument.h
+++ b/src/libs/cplusplus/CppDocument.h
@@ -30,9 +30,10 @@
#ifndef CPLUSPLUS_CPPDOCUMENT_H
#define CPLUSPLUS_CPPDOCUMENT_H
-#include <CPlusPlusForwardDeclarations.h>
#include "Macro.h"
+#include <cplusplus/CPlusPlusForwardDeclarations.h>
+
#include <QSharedPointer>
#include <QDateTime>
#include <QHash>
diff --git a/src/libs/cplusplus/CppRewriter.cpp b/src/libs/cplusplus/CppRewriter.cpp
index 7a49fd2b41..0a18c7fb14 100644
--- a/src/libs/cplusplus/CppRewriter.cpp
+++ b/src/libs/cplusplus/CppRewriter.cpp
@@ -26,15 +26,18 @@
** version 1.1, included in the file LGPL_EXCEPTION.txt in this package.
**
****************************************************************************/
+
#include "CppRewriter.h"
-#include <TypeVisitor.h>
-#include <NameVisitor.h>
-#include <CoreTypes.h>
-#include <Symbols.h>
-#include <Literals.h>
-#include <Names.h>
-#include <Scope.h>
-#include <Overview.h>
+
+#include "Overview.h"
+
+#include <cplusplus/TypeVisitor.h>
+#include <cplusplus/NameVisitor.h>
+#include <cplusplus/CoreTypes.h>
+#include <cplusplus/Symbols.h>
+#include <cplusplus/Literals.h>
+#include <cplusplus/Names.h>
+#include <cplusplus/Scope.h>
#include <QVarLengthArray>
#include <QRegExp>
diff --git a/src/libs/cplusplus/DependencyTable.h b/src/libs/cplusplus/DependencyTable.h
index 6fff12c673..607f204190 100644
--- a/src/libs/cplusplus/DependencyTable.h
+++ b/src/libs/cplusplus/DependencyTable.h
@@ -30,7 +30,7 @@
#ifndef CPLUSPLUS_DEPENDENCYTABLE_H
#define CPLUSPLUS_DEPENDENCYTABLE_H
-#include <CPlusPlusForwardDeclarations.h>
+#include <cplusplus/CPlusPlusForwardDeclarations.h>
#include <QBitArray>
#include <QHash>
diff --git a/src/libs/cplusplus/DeprecatedGenTemplateInstance.cpp b/src/libs/cplusplus/DeprecatedGenTemplateInstance.cpp
index 2954fae24c..0f482141ae 100644
--- a/src/libs/cplusplus/DeprecatedGenTemplateInstance.cpp
+++ b/src/libs/cplusplus/DeprecatedGenTemplateInstance.cpp
@@ -30,12 +30,12 @@
#include "DeprecatedGenTemplateInstance.h"
#include "Overview.h"
-#include <Control.h>
-#include <Scope.h>
-#include <Names.h>
-#include <Symbols.h>
-#include <CoreTypes.h>
-#include <Literals.h>
+#include <cplusplus/Control.h>
+#include <cplusplus/Scope.h>
+#include <cplusplus/Names.h>
+#include <cplusplus/Symbols.h>
+#include <cplusplus/CoreTypes.h>
+#include <cplusplus/Literals.h>
#include <QVarLengthArray>
#include <QDebug>
diff --git a/src/libs/cplusplus/DeprecatedGenTemplateInstance.h b/src/libs/cplusplus/DeprecatedGenTemplateInstance.h
index 01f393da66..ece0f66059 100644
--- a/src/libs/cplusplus/DeprecatedGenTemplateInstance.h
+++ b/src/libs/cplusplus/DeprecatedGenTemplateInstance.h
@@ -30,9 +30,9 @@
#ifndef CPLUSPLUS_DEPRECATEDGENTEMPLATEINSTANCE_H
#define CPLUSPLUS_DEPRECATEDGENTEMPLATEINSTANCE_H
-#include <TypeVisitor.h>
-#include <NameVisitor.h>
-#include <FullySpecifiedType.h>
+#include <cplusplus/TypeVisitor.h>
+#include <cplusplus/NameVisitor.h>
+#include <cplusplus/FullySpecifiedType.h>
#include <QList>
#include <QPair>
diff --git a/src/libs/cplusplus/Dumpers.cpp b/src/libs/cplusplus/Dumpers.cpp
index 3b181d0d07..b3a4cc55cf 100644
--- a/src/libs/cplusplus/Dumpers.cpp
+++ b/src/libs/cplusplus/Dumpers.cpp
@@ -29,10 +29,12 @@
#include "Dumpers.h"
-#include <Overview.h>
-#include <Literals.h>
-#include <Scope.h>
-#include <LookupContext.h>
+#include "Overview.h"
+#include "LookupContext.h"
+
+#include <cplusplus/Literals.h>
+#include <cplusplus/Scope.h>
+
#include <QDebug>
#include <typeinfo>
diff --git a/src/libs/cplusplus/Dumpers.h b/src/libs/cplusplus/Dumpers.h
index 0b558dd9b6..864894b65d 100644
--- a/src/libs/cplusplus/Dumpers.h
+++ b/src/libs/cplusplus/Dumpers.h
@@ -30,10 +30,11 @@
#ifndef CPLUSPLUS_DUMPERS_H
#define CPLUSPLUS_DUMPERS_H
-#include <CPlusPlusForwardDeclarations.h>
-#include <FullySpecifiedType.h>
-#include <Symbol.h>
-#include <LookupItem.h>
+#include "LookupItem.h"
+
+#include <cplusplus/CPlusPlusForwardDeclarations.h>
+#include <cplusplus/FullySpecifiedType.h>
+#include <cplusplus/Symbol.h>
#include <QString>
diff --git a/src/libs/cplusplus/ExpressionUnderCursor.cpp b/src/libs/cplusplus/ExpressionUnderCursor.cpp
index 437fef0393..370a4d110e 100644
--- a/src/libs/cplusplus/ExpressionUnderCursor.cpp
+++ b/src/libs/cplusplus/ExpressionUnderCursor.cpp
@@ -28,9 +28,11 @@
****************************************************************************/
#include "ExpressionUnderCursor.h"
+
#include "SimpleLexer.h"
#include "BackwardsScanner.h"
-#include <Token.h>
+
+#include <cplusplus/Token.h>
#include <QTextCursor>
#include <QTextBlock>
diff --git a/src/libs/cplusplus/ExpressionUnderCursor.h b/src/libs/cplusplus/ExpressionUnderCursor.h
index 8818e9465b..0d47ca5ae8 100644
--- a/src/libs/cplusplus/ExpressionUnderCursor.h
+++ b/src/libs/cplusplus/ExpressionUnderCursor.h
@@ -30,7 +30,8 @@
#ifndef CPLUSPLUS_EXPRESSIONUNDERCURSOR_H
#define CPLUSPLUS_EXPRESSIONUNDERCURSOR_H
-#include "CPlusPlusForwardDeclarations.h"
+#include <cplusplus/CPlusPlusForwardDeclarations.h>
+
#include <QList>
QT_BEGIN_NAMESPACE
diff --git a/src/libs/cplusplus/FastPreprocessor.cpp b/src/libs/cplusplus/FastPreprocessor.cpp
index b1d9f50b60..3e7e5d59b9 100644
--- a/src/libs/cplusplus/FastPreprocessor.cpp
+++ b/src/libs/cplusplus/FastPreprocessor.cpp
@@ -28,8 +28,10 @@
****************************************************************************/
#include "FastPreprocessor.h"
-#include <Literals.h>
-#include <TranslationUnit.h>
+
+#include <cplusplus/Literals.h>
+#include <cplusplus/TranslationUnit.h>
+
#include <QDir>
using namespace CPlusPlus;
diff --git a/src/libs/cplusplus/FastPreprocessor.h b/src/libs/cplusplus/FastPreprocessor.h
index 35f852151f..fb49d06645 100644
--- a/src/libs/cplusplus/FastPreprocessor.h
+++ b/src/libs/cplusplus/FastPreprocessor.h
@@ -34,7 +34,7 @@
#include "CppDocument.h"
#include "pp.h"
-#include <Control.h>
+#include <cplusplus/Control.h>
#include <QSet>
#include <QString>
diff --git a/src/libs/cplusplus/FindUsages.cpp b/src/libs/cplusplus/FindUsages.cpp
index 90c71bc8c6..2d4d5c5fc8 100644
--- a/src/libs/cplusplus/FindUsages.cpp
+++ b/src/libs/cplusplus/FindUsages.cpp
@@ -28,15 +28,18 @@
****************************************************************************/
#include "FindUsages.h"
+
#include "Overview.h"
-#include <AST.h>
-#include <TranslationUnit.h>
-#include <Control.h>
-#include <Names.h>
-#include <Symbols.h>
-#include <CoreTypes.h>
-#include <Literals.h>
-#include <Scope.h>
+
+#include <cplusplus/AST.h>
+#include <cplusplus/TranslationUnit.h>
+#include <cplusplus/Control.h>
+#include <cplusplus/Names.h>
+#include <cplusplus/Symbols.h>
+#include <cplusplus/CoreTypes.h>
+#include <cplusplus/Literals.h>
+#include <cplusplus/Scope.h>
+
#include <QDebug>
using namespace CPlusPlus;
diff --git a/src/libs/cplusplus/FindUsages.h b/src/libs/cplusplus/FindUsages.h
index 9a88cd4050..1a7fd90688 100644
--- a/src/libs/cplusplus/FindUsages.h
+++ b/src/libs/cplusplus/FindUsages.h
@@ -33,7 +33,9 @@
#include "LookupContext.h"
#include "CppDocument.h"
#include "TypeOfExpression.h"
-#include <ASTVisitor.h>
+
+#include <cplusplus/ASTVisitor.h>
+
#include <QSet>
namespace CPlusPlus {
diff --git a/src/libs/cplusplus/Icons.cpp b/src/libs/cplusplus/Icons.cpp
index 39ec346e16..3b3e3e1fb0 100644
--- a/src/libs/cplusplus/Icons.cpp
+++ b/src/libs/cplusplus/Icons.cpp
@@ -29,10 +29,10 @@
#include "Icons.h"
-#include <FullySpecifiedType.h>
-#include <Scope.h>
-#include <Symbols.h>
-#include <Type.h>
+#include <cplusplus/FullySpecifiedType.h>
+#include <cplusplus/Scope.h>
+#include <cplusplus/Symbols.h>
+#include <cplusplus/Type.h>
using namespace CPlusPlus;
using CPlusPlus::Icons;
diff --git a/src/libs/cplusplus/Icons.h b/src/libs/cplusplus/Icons.h
index a42452b2ca..7396744c71 100644
--- a/src/libs/cplusplus/Icons.h
+++ b/src/libs/cplusplus/Icons.h
@@ -30,7 +30,7 @@
#ifndef CPLUSPLUS_ICONS_H
#define CPLUSPLUS_ICONS_H
-#include "CPlusPlusForwardDeclarations.h"
+#include <cplusplus/CPlusPlusForwardDeclarations.h>
#include <QIcon>
diff --git a/src/libs/cplusplus/LookupContext.cpp b/src/libs/cplusplus/LookupContext.cpp
index 9fb17e85f3..a4791aff77 100644
--- a/src/libs/cplusplus/LookupContext.cpp
+++ b/src/libs/cplusplus/LookupContext.cpp
@@ -28,17 +28,18 @@
****************************************************************************/
#include "LookupContext.h"
+
#include "ResolveExpression.h"
#include "Overview.h"
#include "DeprecatedGenTemplateInstance.h"
#include "CppRewriter.h"
-#include <CoreTypes.h>
-#include <Symbols.h>
-#include <Literals.h>
-#include <Names.h>
-#include <Scope.h>
-#include <Control.h>
+#include <cplusplus/CoreTypes.h>
+#include <cplusplus/Symbols.h>
+#include <cplusplus/Literals.h>
+#include <cplusplus/Names.h>
+#include <cplusplus/Scope.h>
+#include <cplusplus/Control.h>
#include <QStack>
#include <QHash>
diff --git a/src/libs/cplusplus/LookupContext.h b/src/libs/cplusplus/LookupContext.h
index d7f3b54285..09b1691512 100644
--- a/src/libs/cplusplus/LookupContext.h
+++ b/src/libs/cplusplus/LookupContext.h
@@ -33,15 +33,18 @@
#include "CppDocument.h"
#include "LookupItem.h"
#include "AlreadyConsideredClassContainer.h"
-#include <FullySpecifiedType.h>
-#include <Type.h>
-#include <SymbolVisitor.h>
-#include <Control.h>
-#include <Name.h>
+
+#include <cplusplus/FullySpecifiedType.h>
+#include <cplusplus/Type.h>
+#include <cplusplus/SymbolVisitor.h>
+#include <cplusplus/Control.h>
+#include <cplusplus/Name.h>
+
#include <QSet>
+#include <QMap>
+
#include <map>
#include <functional>
-#include <QMap>
namespace CPlusPlus {
diff --git a/src/libs/cplusplus/LookupItem.cpp b/src/libs/cplusplus/LookupItem.cpp
index 0cb7d4a91a..a3608292d1 100644
--- a/src/libs/cplusplus/LookupItem.cpp
+++ b/src/libs/cplusplus/LookupItem.cpp
@@ -28,9 +28,10 @@
****************************************************************************/
#include "LookupItem.h"
-#include <FullySpecifiedType.h>
-#include <Symbol.h>
-#include <Control.h>
+
+#include <cplusplus/FullySpecifiedType.h>
+#include <cplusplus/Symbol.h>
+#include <cplusplus/Control.h>
#include <QDebug>
diff --git a/src/libs/cplusplus/LookupItem.h b/src/libs/cplusplus/LookupItem.h
index dc229fc762..e3161249c2 100644
--- a/src/libs/cplusplus/LookupItem.h
+++ b/src/libs/cplusplus/LookupItem.h
@@ -30,7 +30,8 @@
#ifndef CPLUSPLUS_LOOKUPITEM_H
#define CPLUSPLUS_LOOKUPITEM_H
-#include <FullySpecifiedType.h>
+#include <cplusplus/FullySpecifiedType.h>
+
#include <QHash>
namespace CPlusPlus {
diff --git a/src/libs/cplusplus/Macro.h b/src/libs/cplusplus/Macro.h
index aad4f9209c..a3d83b1f00 100644
--- a/src/libs/cplusplus/Macro.h
+++ b/src/libs/cplusplus/Macro.h
@@ -51,7 +51,7 @@
#include "PPToken.h"
-#include <CPlusPlusForwardDeclarations.h>
+#include <cplusplus/CPlusPlusForwardDeclarations.h>
#include <QByteArray>
#include <QVector>
diff --git a/src/libs/cplusplus/MatchingText.cpp b/src/libs/cplusplus/MatchingText.cpp
index 3b9e231f44..b6fb54011a 100644
--- a/src/libs/cplusplus/MatchingText.cpp
+++ b/src/libs/cplusplus/MatchingText.cpp
@@ -26,14 +26,15 @@
** version 1.1, included in the file LGPL_EXCEPTION.txt in this package.
**
****************************************************************************/
+
#include "MatchingText.h"
+
#include "BackwardsScanner.h"
-#include <Token.h>
+#include <cplusplus/Token.h>
#include <QTextDocument>
#include <QTextCursor>
-
#include <QChar>
#include <QDebug>
diff --git a/src/libs/cplusplus/MatchingText.h b/src/libs/cplusplus/MatchingText.h
index 4437ed604d..5b12d5cc78 100644
--- a/src/libs/cplusplus/MatchingText.h
+++ b/src/libs/cplusplus/MatchingText.h
@@ -29,7 +29,7 @@
#ifndef CPLUSPLUS_MATCHINGTEXT_H
#define CPLUSPLUS_MATCHINGTEXT_H
-#include <CPlusPlusForwardDeclarations.h>
+#include <cplusplus/CPlusPlusForwardDeclarations.h>
QT_FORWARD_DECLARE_CLASS(QTextCursor)
QT_FORWARD_DECLARE_CLASS(QChar)
diff --git a/src/libs/cplusplus/NamePrettyPrinter.cpp b/src/libs/cplusplus/NamePrettyPrinter.cpp
index 51f3f9c543..a638135d46 100644
--- a/src/libs/cplusplus/NamePrettyPrinter.cpp
+++ b/src/libs/cplusplus/NamePrettyPrinter.cpp
@@ -29,10 +29,11 @@
#include "NamePrettyPrinter.h"
-#include <Names.h>
-#include <Overview.h>
-#include <NameVisitor.h>
-#include <Literals.h>
+#include "Overview.h"
+
+#include <cplusplus/Names.h>
+#include <cplusplus/NameVisitor.h>
+#include <cplusplus/Literals.h>
using namespace CPlusPlus;
diff --git a/src/libs/cplusplus/NamePrettyPrinter.h b/src/libs/cplusplus/NamePrettyPrinter.h
index 10b86de057..348ba84b10 100644
--- a/src/libs/cplusplus/NamePrettyPrinter.h
+++ b/src/libs/cplusplus/NamePrettyPrinter.h
@@ -30,7 +30,8 @@
#ifndef CPLUSPLUS_NAMEPRETTYPRINTER_H
#define CPLUSPLUS_NAMEPRETTYPRINTER_H
-#include <NameVisitor.h>
+#include <cplusplus/NameVisitor.h>
+
#include <QString>
namespace CPlusPlus {
diff --git a/src/libs/cplusplus/Overview.cpp b/src/libs/cplusplus/Overview.cpp
index 6b633d83e0..24838576a9 100644
--- a/src/libs/cplusplus/Overview.cpp
+++ b/src/libs/cplusplus/Overview.cpp
@@ -28,12 +28,13 @@
****************************************************************************/
#include "Overview.h"
+
#include "NamePrettyPrinter.h"
#include "TypePrettyPrinter.h"
-#include <Control.h>
-#include <CoreTypes.h>
-#include <FullySpecifiedType.h>
+#include <cplusplus/Control.h>
+#include <cplusplus/CoreTypes.h>
+#include <cplusplus/FullySpecifiedType.h>
using namespace CPlusPlus;
diff --git a/src/libs/cplusplus/Overview.h b/src/libs/cplusplus/Overview.h
index 95d0aa33c4..cd342e3d55 100644
--- a/src/libs/cplusplus/Overview.h
+++ b/src/libs/cplusplus/Overview.h
@@ -30,7 +30,7 @@
#ifndef CPLUSPLUS_OVERVIEW_H
#define CPLUSPLUS_OVERVIEW_H
-#include <CPlusPlusForwardDeclarations.h>
+#include <cplusplus/CPlusPlusForwardDeclarations.h>
#include <QList>
#include <QString>
diff --git a/src/libs/cplusplus/OverviewModel.cpp b/src/libs/cplusplus/OverviewModel.cpp
index b9454c9d61..41dee2a19a 100644
--- a/src/libs/cplusplus/OverviewModel.cpp
+++ b/src/libs/cplusplus/OverviewModel.cpp
@@ -28,11 +28,12 @@
****************************************************************************/
#include "OverviewModel.h"
+
#include "Overview.h"
-#include <Scope.h>
-#include <Literals.h>
-#include <Symbols.h>
+#include <cplusplus/Scope.h>
+#include <cplusplus/Literals.h>
+#include <cplusplus/Symbols.h>
using namespace CPlusPlus;
diff --git a/src/libs/cplusplus/PPToken.h b/src/libs/cplusplus/PPToken.h
index 6a194cc6a7..56df98b079 100644
--- a/src/libs/cplusplus/PPToken.h
+++ b/src/libs/cplusplus/PPToken.h
@@ -30,8 +30,8 @@
#ifndef CPLUSPLUS_INTERNAL_PPTOKEN_H
#define CPLUSPLUS_INTERNAL_PPTOKEN_H
-#include <CPlusPlus.h>
-#include <Token.h>
+#include <cplusplus/CPlusPlus.h>
+#include <cplusplus/Token.h>
#include <QByteArray>
diff --git a/src/libs/cplusplus/PreprocessorClient.h b/src/libs/cplusplus/PreprocessorClient.h
index ae04fd47af..a4a364bd6f 100644
--- a/src/libs/cplusplus/PreprocessorClient.h
+++ b/src/libs/cplusplus/PreprocessorClient.h
@@ -30,7 +30,8 @@
#ifndef PREPROCESSORCLIENT_H
#define PREPROCESSORCLIENT_H
-#include <CPlusPlusForwardDeclarations.h>
+#include <cplusplus/CPlusPlusForwardDeclarations.h>
+
#include <QVector>
QT_BEGIN_NAMESPACE
diff --git a/src/libs/cplusplus/PreprocessorEnvironment.cpp b/src/libs/cplusplus/PreprocessorEnvironment.cpp
index e3f9575115..be736b8569 100644
--- a/src/libs/cplusplus/PreprocessorEnvironment.cpp
+++ b/src/libs/cplusplus/PreprocessorEnvironment.cpp
@@ -47,8 +47,11 @@
*/
#include "PreprocessorEnvironment.h"
+
#include "Macro.h"
+
#include <QDebug>
+
#include <cstring>
using namespace CPlusPlus;
diff --git a/src/libs/cplusplus/PreprocessorEnvironment.h b/src/libs/cplusplus/PreprocessorEnvironment.h
index 90be60f004..f7da9cb3d5 100644
--- a/src/libs/cplusplus/PreprocessorEnvironment.h
+++ b/src/libs/cplusplus/PreprocessorEnvironment.h
@@ -49,9 +49,10 @@
#ifndef PREPROCESSORENVIRONMENT_H
#define PREPROCESSORENVIRONMENT_H
-#include "CPlusPlusForwardDeclarations.h"
#include "PPToken.h"
+#include <cplusplus/CPlusPlusForwardDeclarations.h>
+
#include <QList>
#include <QByteArray>
#include <QString>
diff --git a/src/libs/cplusplus/ResolveExpression.cpp b/src/libs/cplusplus/ResolveExpression.cpp
index f21e6ff864..029bcee00d 100644
--- a/src/libs/cplusplus/ResolveExpression.cpp
+++ b/src/libs/cplusplus/ResolveExpression.cpp
@@ -28,26 +28,28 @@
****************************************************************************/
#include "ResolveExpression.h"
+
#include "LookupContext.h"
#include "Overview.h"
#include "DeprecatedGenTemplateInstance.h"
#include "CppRewriter.h"
#include "TypeOfExpression.h"
-#include <Control.h>
-#include <AST.h>
-#include <Scope.h>
-#include <Names.h>
-#include <Symbols.h>
-#include <Literals.h>
-#include <CoreTypes.h>
-#include <TypeVisitor.h>
-#include <NameVisitor.h>
-#include <Templates.h>
+#include <cplusplus/Control.h>
+#include <cplusplus/AST.h>
+#include <cplusplus/Scope.h>
+#include <cplusplus/Names.h>
+#include <cplusplus/Symbols.h>
+#include <cplusplus/Literals.h>
+#include <cplusplus/CoreTypes.h>
+#include <cplusplus/TypeVisitor.h>
+#include <cplusplus/NameVisitor.h>
+#include <cplusplus/Templates.h>
#include <QList>
#include <QDebug>
#include <QSet>
+
#include <map>
using namespace CPlusPlus;
diff --git a/src/libs/cplusplus/ResolveExpression.h b/src/libs/cplusplus/ResolveExpression.h
index 764268ab91..95268e6953 100644
--- a/src/libs/cplusplus/ResolveExpression.h
+++ b/src/libs/cplusplus/ResolveExpression.h
@@ -32,9 +32,10 @@
#include "LookupContext.h"
-#include <ASTVisitor.h>
-#include <FullySpecifiedType.h>
-#include <Bind.h>
+#include <cplusplus/ASTVisitor.h>
+#include <cplusplus/FullySpecifiedType.h>
+#include <cplusplus/Bind.h>
+
#include <set>
namespace CPlusPlus {
diff --git a/src/libs/cplusplus/SimpleLexer.cpp b/src/libs/cplusplus/SimpleLexer.cpp
index 7f5692da97..243dd7e91c 100644
--- a/src/libs/cplusplus/SimpleLexer.cpp
+++ b/src/libs/cplusplus/SimpleLexer.cpp
@@ -29,10 +29,10 @@
#include "SimpleLexer.h"
-#include "ObjectiveCTypeQualifiers.h"
+#include <cplusplus/ObjectiveCTypeQualifiers.h>
+#include <cplusplus/Lexer.h>
+#include <cplusplus/Token.h>
-#include <Lexer.h>
-#include <Token.h>
#include <QDebug>
using namespace CPlusPlus;
diff --git a/src/libs/cplusplus/SimpleLexer.h b/src/libs/cplusplus/SimpleLexer.h
index 107b6f6c44..dac658f01f 100644
--- a/src/libs/cplusplus/SimpleLexer.h
+++ b/src/libs/cplusplus/SimpleLexer.h
@@ -29,7 +29,7 @@
#ifndef CPLUSPLUS_SIMPLELEXER_H
#define CPLUSPLUS_SIMPLELEXER_H
-#include <CPlusPlusForwardDeclarations.h>
+#include <cplusplus/CPlusPlusForwardDeclarations.h>
#include <QString>
#include <QList>
diff --git a/src/libs/cplusplus/SnapshotSymbolVisitor.cpp b/src/libs/cplusplus/SnapshotSymbolVisitor.cpp
index 08d2d92cf6..2f9a93fabb 100644
--- a/src/libs/cplusplus/SnapshotSymbolVisitor.cpp
+++ b/src/libs/cplusplus/SnapshotSymbolVisitor.cpp
@@ -28,7 +28,8 @@
****************************************************************************/
#include "SnapshotSymbolVisitor.h"
-#include <Symbols.h>
+
+#include <cplusplus/Symbols.h>
using namespace CPlusPlus;
diff --git a/src/libs/cplusplus/SnapshotSymbolVisitor.h b/src/libs/cplusplus/SnapshotSymbolVisitor.h
index 3efb7d0354..3f2e1d162f 100644
--- a/src/libs/cplusplus/SnapshotSymbolVisitor.h
+++ b/src/libs/cplusplus/SnapshotSymbolVisitor.h
@@ -31,7 +31,9 @@
#define CPLUSPLUS_SNAPSHOTSYMBOLVISITOR_H
#include "CppDocument.h"
-#include <SymbolVisitor.h>
+
+#include <cplusplus/SymbolVisitor.h>
+
#include <QSet>
namespace CPlusPlus {
diff --git a/src/libs/cplusplus/SymbolNameVisitor.cpp b/src/libs/cplusplus/SymbolNameVisitor.cpp
index 3ebc66600d..cacbb69ea9 100644
--- a/src/libs/cplusplus/SymbolNameVisitor.cpp
+++ b/src/libs/cplusplus/SymbolNameVisitor.cpp
@@ -28,8 +28,9 @@
****************************************************************************/
#include "SymbolNameVisitor.h"
-#include <Symbols.h>
-#include <Names.h>
+
+#include <cplusplus/Symbols.h>
+#include <cplusplus/Names.h>
using namespace CPlusPlus;
diff --git a/src/libs/cplusplus/SymbolNameVisitor.h b/src/libs/cplusplus/SymbolNameVisitor.h
index 2142903325..57e8997583 100644
--- a/src/libs/cplusplus/SymbolNameVisitor.h
+++ b/src/libs/cplusplus/SymbolNameVisitor.h
@@ -30,7 +30,7 @@
#ifndef CPLUSPLUS_SYMBOLNAMEVISITOR_H
#define CPLUSPLUS_SYMBOLNAMEVISITOR_H
-#include <NameVisitor.h>
+#include <cplusplus/NameVisitor.h>
namespace CPlusPlus {
diff --git a/src/libs/cplusplus/TypeOfExpression.cpp b/src/libs/cplusplus/TypeOfExpression.cpp
index ac813fa873..b62b417190 100644
--- a/src/libs/cplusplus/TypeOfExpression.cpp
+++ b/src/libs/cplusplus/TypeOfExpression.cpp
@@ -28,13 +28,15 @@
****************************************************************************/
#include "TypeOfExpression.h"
-#include <TranslationUnit.h>
+
#include "LookupContext.h"
#include "ResolveExpression.h"
#include "pp.h"
-#include <AST.h>
-#include <Symbol.h>
+#include <cplusplus/AST.h>
+#include <cplusplus/Symbol.h>
+#include <cplusplus/TranslationUnit.h>
+
#include <QSet>
using namespace CPlusPlus;
diff --git a/src/libs/cplusplus/TypeOfExpression.h b/src/libs/cplusplus/TypeOfExpression.h
index 848999f7d0..0842bb09c1 100644
--- a/src/libs/cplusplus/TypeOfExpression.h
+++ b/src/libs/cplusplus/TypeOfExpression.h
@@ -33,7 +33,8 @@
#include "LookupContext.h"
#include "PreprocessorEnvironment.h"
-#include <ASTfwd.h>
+#include <cplusplus/ASTfwd.h>
+
#include <QMap>
#include <QObject>
#include <QString>
diff --git a/src/libs/cplusplus/TypePrettyPrinter.cpp b/src/libs/cplusplus/TypePrettyPrinter.cpp
index e26602dccf..2d70b9d789 100644
--- a/src/libs/cplusplus/TypePrettyPrinter.cpp
+++ b/src/libs/cplusplus/TypePrettyPrinter.cpp
@@ -30,11 +30,13 @@
#include "TypePrettyPrinter.h"
#include "Overview.h"
-#include <FullySpecifiedType.h>
-#include <Literals.h>
-#include <CoreTypes.h>
-#include <Symbols.h>
-#include <Scope.h>
+
+#include <cplusplus/FullySpecifiedType.h>
+#include <cplusplus/Literals.h>
+#include <cplusplus/CoreTypes.h>
+#include <cplusplus/Symbols.h>
+#include <cplusplus/Scope.h>
+
#include <QStringList>
#include <QDebug>
diff --git a/src/libs/cplusplus/TypePrettyPrinter.h b/src/libs/cplusplus/TypePrettyPrinter.h
index 8ee02528a9..09b87aa6a7 100644
--- a/src/libs/cplusplus/TypePrettyPrinter.h
+++ b/src/libs/cplusplus/TypePrettyPrinter.h
@@ -29,8 +29,9 @@
#ifndef CPLUSPLUS_TYPEPRETTYPRINTER_H
#define CPLUSPLUS_TYPEPRETTYPRINTER_H
-#include <TypeVisitor.h>
-#include <FullySpecifiedType.h>
+#include <cplusplus/TypeVisitor.h>
+#include <cplusplus/FullySpecifiedType.h>
+
#include <QString>
#include <QList>
diff --git a/src/libs/cplusplus/cplusplus-lib.pri b/src/libs/cplusplus/cplusplus-lib.pri
index a2ccabdfb4..bd77b940bf 100644
--- a/src/libs/cplusplus/cplusplus-lib.pri
+++ b/src/libs/cplusplus/cplusplus-lib.pri
@@ -4,7 +4,7 @@ contains(CONFIG, dll) {
DEFINES += CPLUSPLUS_BUILD_STATIC_LIB
}
-INCLUDEPATH += $$PWD
+INCLUDEPATH *= $$IDE_SOURCE_TREE/src/libs/3rdparty
include(../3rdparty/cplusplus/cplusplus.pri)
diff --git a/src/libs/cplusplus/cplusplus.pri b/src/libs/cplusplus/cplusplus.pri
index 702e15eb64..396b585c65 100644
--- a/src/libs/cplusplus/cplusplus.pri
+++ b/src/libs/cplusplus/cplusplus.pri
@@ -1,4 +1,2 @@
INCLUDEPATH *= $$IDE_SOURCE_TREE/src/libs/3rdparty
-INCLUDEPATH *= $$IDE_SOURCE_TREE/src/libs/3rdparty/cplusplus
-INCLUDEPATH *= $$PWD
LIBS *= -l$$qtLibraryName(CPlusPlus)
diff --git a/src/libs/cplusplus/cplusplus.qbs b/src/libs/cplusplus/cplusplus.qbs
index 08213f11d6..20041d8634 100644
--- a/src/libs/cplusplus/cplusplus.qbs
+++ b/src/libs/cplusplus/cplusplus.qbs
@@ -4,7 +4,7 @@ import "../QtcLibrary.qbs" as QtcLibrary
QtcLibrary {
name: "CPlusPlus"
- cpp.includePaths: base.concat("../3rdparty/cplusplus")
+ cpp.includePaths: base.concat("../3rdparty")
cpp.defines: base.concat([
"NDEBUG",
"CPLUSPLUS_BUILD_LIB"
@@ -171,9 +171,7 @@ QtcLibrary {
ProductModule {
Depends { name: "cpp" }
cpp.includePaths: [
- ".",
- "../3rdparty",
- "../3rdparty/cplusplus"
+ "../3rdparty"
]
}
}
diff --git a/src/libs/cplusplus/findcdbbreakpoint.cpp b/src/libs/cplusplus/findcdbbreakpoint.cpp
index 7ede4b71b7..a5a7b1f37f 100644
--- a/src/libs/cplusplus/findcdbbreakpoint.cpp
+++ b/src/libs/cplusplus/findcdbbreakpoint.cpp
@@ -29,12 +29,13 @@
#include "findcdbbreakpoint.h"
-#include <AST.h>
-#include <TranslationUnit.h>
+#include <cplusplus/AST.h>
+#include <cplusplus/TranslationUnit.h>
-#include <typeinfo>
#include <QDebug>
+#include <typeinfo>
+
using namespace CPlusPlus;
FindCdbBreakpoint::FindCdbBreakpoint(TranslationUnit *unit)
diff --git a/src/libs/cplusplus/findcdbbreakpoint.h b/src/libs/cplusplus/findcdbbreakpoint.h
index f4327c2b8b..7cc9ac6bda 100644
--- a/src/libs/cplusplus/findcdbbreakpoint.h
+++ b/src/libs/cplusplus/findcdbbreakpoint.h
@@ -30,8 +30,8 @@
#ifndef FINDCDBBREAKPOINT_H
#define FINDCDBBREAKPOINT_H
-#include <CPlusPlusForwardDeclarations.h>
-#include <ASTVisitor.h>
+#include <cplusplus/CPlusPlusForwardDeclarations.h>
+#include <cplusplus/ASTVisitor.h>
namespace CPlusPlus {
diff --git a/src/libs/cplusplus/pp-cctype.h b/src/libs/cplusplus/pp-cctype.h
index 73b41f8ccd..c9c8043b85 100644
--- a/src/libs/cplusplus/pp-cctype.h
+++ b/src/libs/cplusplus/pp-cctype.h
@@ -49,7 +49,7 @@
#ifndef CPLUSPLUS_PP_CCTYPE_H
#define CPLUSPLUS_PP_CCTYPE_H
-#include <CPlusPlusForwardDeclarations.h>
+#include <cplusplus/CPlusPlusForwardDeclarations.h>
#include <cctype>
diff --git a/src/libs/cplusplus/pp-engine.cpp b/src/libs/cplusplus/pp-engine.cpp
index 1c45e61e2a..4abe88b492 100644
--- a/src/libs/cplusplus/pp-engine.cpp
+++ b/src/libs/cplusplus/pp-engine.cpp
@@ -49,11 +49,10 @@
#include "pp.h"
#include "pp-cctype.h"
-#include <Control.h>
-#include <Lexer.h>
-#include <Token.h>
-#include <Literals.h>
-#include <cctype>
+#include <cplusplus/Control.h>
+#include <cplusplus/Lexer.h>
+#include <cplusplus/Token.h>
+#include <cplusplus/Literals.h>
#include <QDebug>
#include <QList>
@@ -61,6 +60,7 @@
#include <QTime>
#include <QPair>
+#include <cctype>
#include <list>
#include <algorithm>
diff --git a/src/libs/cplusplus/pp-engine.h b/src/libs/cplusplus/pp-engine.h
index 1b318c74c8..d95effba9c 100644
--- a/src/libs/cplusplus/pp-engine.h
+++ b/src/libs/cplusplus/pp-engine.h
@@ -52,8 +52,9 @@
#include "PPToken.h"
#include "PreprocessorClient.h"
-#include <Lexer.h>
-#include <Token.h>
+#include <cplusplus/Lexer.h>
+#include <cplusplus/Token.h>
+
#include <QVector>
#include <QBitArray>
#include <QByteArray>
diff --git a/src/plugins/analyzerbase/analyzerutils.cpp b/src/plugins/analyzerbase/analyzerutils.cpp
index fe3996de10..948864938d 100644
--- a/src/plugins/analyzerbase/analyzerutils.cpp
+++ b/src/plugins/analyzerbase/analyzerutils.cpp
@@ -31,11 +31,12 @@
#include "analyzerconstants.h"
+#include <cpptools/ModelManagerInterface.h>
#include <texteditor/basetexteditor.h>
+
#include <utils/qtcassert.h>
#include <cplusplus/ExpressionUnderCursor.h>
-#include <cpptools/ModelManagerInterface.h>
#include <cplusplus/TypeOfExpression.h>
#include <QTextCursor>
diff --git a/src/plugins/classview/classviewparser.cpp b/src/plugins/classview/classviewparser.cpp
index 9023de9449..b0c32f62a3 100644
--- a/src/plugins/classview/classviewparser.cpp
+++ b/src/plugins/classview/classviewparser.cpp
@@ -32,10 +32,10 @@
#include "classviewutils.h"
// cplusplus shared library. the same folder (cplusplus)
-#include <Symbol.h>
-#include <Symbols.h>
-#include <Scope.h>
-#include <Name.h>
+#include <cplusplus/Symbol.h>
+#include <cplusplus/Symbols.h>
+#include <cplusplus/Scope.h>
+#include <cplusplus/Name.h>
// other
#include <cpptools/ModelManagerInterface.h>
diff --git a/src/plugins/classview/classviewparser.h b/src/plugins/classview/classviewparser.h
index 2b233bc0cf..fbf12963e5 100644
--- a/src/plugins/classview/classviewparser.h
+++ b/src/plugins/classview/classviewparser.h
@@ -34,7 +34,7 @@
#include "classviewparsertreeitem.h"
-#include <CPlusPlusForwardDeclarations.h>
+#include <cplusplus/CPlusPlusForwardDeclarations.h>
#include <cpptools/ModelManagerInterface.h>
#include <cplusplus/CppDocument.h>
diff --git a/src/plugins/cppeditor/cppautocompleter.cpp b/src/plugins/cppeditor/cppautocompleter.cpp
index 21111e5777..efc7fcfee1 100644
--- a/src/plugins/cppeditor/cppautocompleter.cpp
+++ b/src/plugins/cppeditor/cppautocompleter.cpp
@@ -29,8 +29,7 @@
#include "cppautocompleter.h"
-#include <Token.h>
-
+#include <cplusplus/Token.h>
#include <cplusplus/SimpleLexer.h>
#include <cplusplus/MatchingText.h>
#include <cplusplus/BackwardsScanner.h>
diff --git a/src/plugins/cppeditor/cppautocompleter.h b/src/plugins/cppeditor/cppautocompleter.h
index 5d81e61ccf..b0c0a387e6 100644
--- a/src/plugins/cppeditor/cppautocompleter.h
+++ b/src/plugins/cppeditor/cppautocompleter.h
@@ -31,7 +31,8 @@
#define CPPAUTOCOMPLETER_H
#include <texteditor/autocompleter.h>
-#include <Token.h>
+
+#include <cplusplus/Token.h>
namespace CppEditor {
namespace Internal {
diff --git a/src/plugins/cppeditor/cppclasswizard.cpp b/src/plugins/cppeditor/cppclasswizard.cpp
index 0893ed4595..764c143666 100644
--- a/src/plugins/cppeditor/cppclasswizard.cpp
+++ b/src/plugins/cppeditor/cppclasswizard.cpp
@@ -28,12 +28,13 @@
****************************************************************************/
#include "cppclasswizard.h"
+
#include "cppeditorconstants.h"
-#include <cpptools/cpptoolsconstants.h>
-#include <cpptools/abstracteditorsupport.h>
#include <coreplugin/icore.h>
#include <coreplugin/mimedatabase.h>
+#include <cpptools/abstracteditorsupport.h>
+#include <cpptools/cpptoolsconstants.h>
#include <utils/codegeneration.h>
#include <utils/newclasswidget.h>
@@ -43,7 +44,6 @@
#include <QDir>
#include <QTextStream>
#include <QSettings>
-
#include <QVBoxLayout>
#include <QHBoxLayout>
#include <QPushButton>
diff --git a/src/plugins/cppeditor/cppclasswizard.h b/src/plugins/cppeditor/cppclasswizard.h
index 62ae4091c4..02bcd1727f 100644
--- a/src/plugins/cppeditor/cppclasswizard.h
+++ b/src/plugins/cppeditor/cppclasswizard.h
@@ -31,6 +31,7 @@
#define CPPCLASSWIZARD_H
#include <coreplugin/basefilewizard.h>
+
#include <utils/wizard.h>
#include <QStringList>
diff --git a/src/plugins/cppeditor/cppcompleteswitch.cpp b/src/plugins/cppeditor/cppcompleteswitch.cpp
index c2d1ca1310..fed0543fa8 100644
--- a/src/plugins/cppeditor/cppcompleteswitch.cpp
+++ b/src/plugins/cppeditor/cppcompleteswitch.cpp
@@ -28,17 +28,19 @@
****************************************************************************/
#include "cppcompleteswitch.h"
+
#include "cppquickfixassistant.h"
-#include <cplusplus/Overview.h>
-#include <cplusplus/TypeOfExpression.h>
#include <cpptools/cpprefactoringchanges.h>
+
#include <utils/changeset.h>
-#include <AST.h>
-#include <ASTVisitor.h>
-#include <CoreTypes.h>
-#include <Symbols.h>
+#include <cplusplus/AST.h>
+#include <cplusplus/ASTVisitor.h>
+#include <cplusplus/CoreTypes.h>
+#include <cplusplus/Overview.h>
+#include <cplusplus/Symbols.h>
+#include <cplusplus/TypeOfExpression.h>
#include <QApplication>
diff --git a/src/plugins/cppeditor/cppdoxygen_test.cpp b/src/plugins/cppeditor/cppdoxygen_test.cpp
index 5543a3aa64..a491b177c9 100644
--- a/src/plugins/cppeditor/cppdoxygen_test.cpp
+++ b/src/plugins/cppeditor/cppdoxygen_test.cpp
@@ -27,12 +27,14 @@
**
****************************************************************************/
+#include "cppeditor.h"
+#include "cppplugin.h"
+
#include <coreplugin/editormanager/editormanager.h>
-#include <cplusplus/CppDocument.h>
-#include <cppeditor/cppeditor.h>
-#include <cppeditor/cppplugin.h>
#include <cpptools/ModelManagerInterface.h>
+
#include <utils/fileutils.h>
+#include <cplusplus/CppDocument.h>
#include <QCoreApplication>
#include <QDebug>
diff --git a/src/plugins/cppeditor/cppeditor.cpp b/src/plugins/cppeditor/cppeditor.cpp
index 462c8075ab..f30b0448a5 100644
--- a/src/plugins/cppeditor/cppeditor.cpp
+++ b/src/plugins/cppeditor/cppeditor.cpp
@@ -28,34 +28,22 @@
****************************************************************************/
#include "cppeditor.h"
+
#include "cppeditorconstants.h"
#include "cppplugin.h"
#include "cpphighlighter.h"
#include "cppautocompleter.h"
#include "cppquickfixassistant.h"
-#include <AST.h>
-#include <Control.h>
-#include <Token.h>
-#include <Scope.h>
-#include <Symbols.h>
-#include <Names.h>
-#include <CoreTypes.h>
-#include <Literals.h>
-#include <ASTVisitor.h>
-#include <SymbolVisitor.h>
-#include <TranslationUnit.h>
-#include <cplusplus/ASTPath.h>
+#include <coreplugin/actionmanager/actioncontainer.h>
+#include <coreplugin/actionmanager/actionmanager.h>
+#include <coreplugin/actionmanager/command.h>
+#include <coreplugin/editormanager/editormanager.h>
+#include <coreplugin/editormanager/ieditor.h>
+#include <coreplugin/icore.h>
+#include <coreplugin/id.h>
+#include <coreplugin/mimedatabase.h>
#include <cpptools/ModelManagerInterface.h>
-#include <cplusplus/ExpressionUnderCursor.h>
-#include <cplusplus/TypeOfExpression.h>
-#include <cplusplus/Overview.h>
-#include <cplusplus/OverviewModel.h>
-#include <cplusplus/SimpleLexer.h>
-#include <cplusplus/MatchingText.h>
-#include <cplusplus/BackwardsScanner.h>
-#include <cplusplus/FastPreprocessor.h>
-
#include <cpptools/cpptoolsplugin.h>
#include <cpptools/cpptoolsconstants.h>
#include <cpptools/cppchecksymbols.h>
@@ -70,28 +58,41 @@
#include <cpptools/doxygengenerator.h>
#include <cpptools/cpptoolssettings.h>
#include <cpptools/symbolfinder.h>
-
-#include <coreplugin/icore.h>
-#include <coreplugin/actionmanager/actionmanager.h>
-#include <coreplugin/actionmanager/actioncontainer.h>
-#include <coreplugin/actionmanager/command.h>
-#include <coreplugin/id.h>
-#include <coreplugin/editormanager/ieditor.h>
-#include <coreplugin/editormanager/editormanager.h>
-#include <coreplugin/mimedatabase.h>
-#include <utils/qtcassert.h>
-#include <extensionsystem/pluginmanager.h>
#include <projectexplorer/projectexplorerconstants.h>
#include <texteditor/basetextdocument.h>
#include <texteditor/basetextdocumentlayout.h>
+#include <texteditor/codeassist/basicproposalitem.h>
+#include <texteditor/codeassist/basicproposalitemlistmodel.h>
+#include <texteditor/codeassist/genericproposal.h>
#include <texteditor/fontsettings.h>
-#include <texteditor/tabsettings.h>
-#include <texteditor/texteditorconstants.h>
#include <texteditor/refactoroverlay.h>
#include <texteditor/semantichighlighter.h>
-#include <texteditor/codeassist/basicproposalitemlistmodel.h>
-#include <texteditor/codeassist/basicproposalitem.h>
-#include <texteditor/codeassist/genericproposal.h>
+#include <texteditor/tabsettings.h>
+#include <texteditor/texteditorconstants.h>
+
+#include <utils/qtcassert.h>
+#include <extensionsystem/pluginmanager.h>
+
+#include <cplusplus/AST.h>
+#include <cplusplus/Control.h>
+#include <cplusplus/Token.h>
+#include <cplusplus/Scope.h>
+#include <cplusplus/Symbols.h>
+#include <cplusplus/Names.h>
+#include <cplusplus/CoreTypes.h>
+#include <cplusplus/Literals.h>
+#include <cplusplus/ASTVisitor.h>
+#include <cplusplus/SymbolVisitor.h>
+#include <cplusplus/TranslationUnit.h>
+#include <cplusplus/ASTPath.h>
+#include <cplusplus/ExpressionUnderCursor.h>
+#include <cplusplus/TypeOfExpression.h>
+#include <cplusplus/Overview.h>
+#include <cplusplus/OverviewModel.h>
+#include <cplusplus/SimpleLexer.h>
+#include <cplusplus/MatchingText.h>
+#include <cplusplus/BackwardsScanner.h>
+#include <cplusplus/FastPreprocessor.h>
#include <QDebug>
#include <QTime>
@@ -2650,4 +2651,4 @@ void CPPEditorWidget::onCommentsSettingsChanged(const CppTools::CommentsSettings
m_commentsSettings = settings;
}
-#include "cppeditor.moc"
+#include <cppeditor.moc>
diff --git a/src/plugins/cppeditor/cppeditor.h b/src/plugins/cppeditor/cppeditor.h
index 24bfab0dc9..05a4be7783 100644
--- a/src/plugins/cppeditor/cppeditor.h
+++ b/src/plugins/cppeditor/cppeditor.h
@@ -34,14 +34,15 @@
#include "cppfunctiondecldeflink.h"
#include <cpptools/ModelManagerInterface.h>
-#include <cplusplus/CppDocument.h>
-#include <cplusplus/LookupContext.h>
-#include <utils/uncommentselection.h>
+#include <cpptools/commentssettings.h>
+#include <cpptools/cppsemanticinfo.h>
#include <texteditor/basetexteditor.h>
#include <texteditor/quickfix.h>
#include <texteditor/texteditorconstants.h>
-#include <cpptools/commentssettings.h>
-#include <cpptools/cppsemanticinfo.h>
+
+#include <cplusplus/CppDocument.h>
+#include <cplusplus/LookupContext.h>
+#include <utils/uncommentselection.h>
#include <QThread>
#include <QMutex>
diff --git a/src/plugins/cppeditor/cppelementevaluator.cpp b/src/plugins/cppeditor/cppelementevaluator.cpp
index 0d715584b1..e8b7b363f9 100644
--- a/src/plugins/cppeditor/cppelementevaluator.cpp
+++ b/src/plugins/cppeditor/cppelementevaluator.cpp
@@ -31,22 +31,22 @@
#include <coreplugin/idocument.h>
#include <cpptools/cpptoolsreuse.h>
-
-#include <FullySpecifiedType.h>
-#include <Literals.h>
-#include <Names.h>
-#include <CoreTypes.h>
-#include <Scope.h>
-#include <Symbol.h>
-#include <Symbols.h>
-#include <cpptools/TypeHierarchyBuilder.h>
#include <cpptools/ModelManagerInterface.h>
+#include <cpptools/TypeHierarchyBuilder.h>
+
+#include <cplusplus/CoreTypes.h>
#include <cplusplus/ExpressionUnderCursor.h>
-#include <cplusplus/Overview.h>
-#include <cplusplus/TypeOfExpression.h>
+#include <cplusplus/FullySpecifiedType.h>
+#include <cplusplus/Icons.h>
+#include <cplusplus/Literals.h>
#include <cplusplus/LookupContext.h>
#include <cplusplus/LookupItem.h>
-#include <cplusplus/Icons.h>
+#include <cplusplus/Names.h>
+#include <cplusplus/Overview.h>
+#include <cplusplus/Scope.h>
+#include <cplusplus/Symbol.h>
+#include <cplusplus/Symbols.h>
+#include <cplusplus/TypeOfExpression.h>
#include <QDir>
#include <QFileInfo>
diff --git a/src/plugins/cppeditor/cppelementevaluator.h b/src/plugins/cppeditor/cppelementevaluator.h
index d636d6cf92..59510b0b8f 100644
--- a/src/plugins/cppeditor/cppelementevaluator.h
+++ b/src/plugins/cppeditor/cppelementevaluator.h
@@ -32,8 +32,9 @@
#include "cppeditor.h"
-#include <texteditor/helpitem.h>
#include <cpptools/symbolfinder.h>
+#include <texteditor/helpitem.h>
+
#include <cplusplus/CppDocument.h>
#include <cplusplus/Overview.h>
diff --git a/src/plugins/cppeditor/cppfilewizard.cpp b/src/plugins/cppeditor/cppfilewizard.cpp
index 9f86a2a804..836a536c7f 100644
--- a/src/plugins/cppeditor/cppfilewizard.cpp
+++ b/src/plugins/cppeditor/cppfilewizard.cpp
@@ -28,10 +28,12 @@
****************************************************************************/
#include "cppfilewizard.h"
+
#include "cppeditor.h"
#include "cppeditorconstants.h"
#include <cpptools/abstracteditorsupport.h>
+
#include <utils/codegeneration.h>
#include <QTextStream>
diff --git a/src/plugins/cppeditor/cppfunctiondecldeflink.cpp b/src/plugins/cppeditor/cppfunctiondecldeflink.cpp
index 94dd93a758..6fd5b9c2cc 100644
--- a/src/plugins/cppeditor/cppfunctiondecldeflink.cpp
+++ b/src/plugins/cppeditor/cppfunctiondecldeflink.cpp
@@ -32,27 +32,29 @@
#include "cppeditor.h"
#include "cppquickfixassistant.h"
-#include <cplusplus/CppRewriter.h>
-#include <cplusplus/ASTPath.h>
-#include <cplusplus/AST.h>
-#include <cplusplus/Symbols.h>
-#include <cplusplus/TypeOfExpression.h>
-#include <cplusplus/TranslationUnit.h>
-#include <cplusplus/LookupContext.h>
-#include <cplusplus/Overview.h>
+#include <coreplugin/actionmanager/actionmanager.h>
+#include <coreplugin/icore.h>
#include <cpptools/cppcodestylesettings.h>
#include <cpptools/cpplocalsymbols.h>
#include <cpptools/cpprefactoringchanges.h>
#include <cpptools/symbolfinder.h>
#include <texteditor/refactoroverlay.h>
-#include <utils/tooltip/tooltip.h>
-#include <utils/tooltip/tipcontents.h>
-#include <utils/qtcassert.h>
-#include <utils/proxyaction.h>
-#include <coreplugin/actionmanager/actionmanager.h>
-#include <coreplugin/icore.h>
#include <texteditor/texteditorconstants.h>
+#include <cplusplus/AST.h>
+#include <cplusplus/ASTPath.h>
+#include <cplusplus/CppRewriter.h>
+#include <cplusplus/LookupContext.h>
+#include <cplusplus/Overview.h>
+#include <cplusplus/Symbols.h>
+#include <cplusplus/TranslationUnit.h>
+#include <cplusplus/TypeOfExpression.h>
+
+#include <utils/proxyaction.h>
+#include <utils/qtcassert.h>
+#include <utils/tooltip/tipcontents.h>
+#include <utils/tooltip/tooltip.h>
+
#include <QtConcurrentRun>
#include <QVarLengthArray>
diff --git a/src/plugins/cppeditor/cppfunctiondecldeflink.h b/src/plugins/cppeditor/cppfunctiondecldeflink.h
index 9db9ba2ca3..b28469becf 100644
--- a/src/plugins/cppeditor/cppfunctiondecldeflink.h
+++ b/src/plugins/cppeditor/cppfunctiondecldeflink.h
@@ -32,10 +32,11 @@
#include "cppquickfix.h"
+#include <cpptools/cpprefactoringchanges.h>
+
#include <cplusplus/CppDocument.h>
#include <cplusplus/ASTfwd.h>
-#include <cpptools/cpprefactoringchanges.h>
#include <utils/changeset.h>
#include <QString>
diff --git a/src/plugins/cppeditor/cpphighlighter.cpp b/src/plugins/cppeditor/cpphighlighter.cpp
index 8ebd0dcd06..7507988bee 100644
--- a/src/plugins/cppeditor/cpphighlighter.cpp
+++ b/src/plugins/cppeditor/cpphighlighter.cpp
@@ -29,13 +29,14 @@
#include "cpphighlighter.h"
-#include <Token.h>
-#include <cplusplus/SimpleLexer.h>
-#include <cplusplus/Lexer.h>
#include <cpptools/cppdoxygen.h>
#include <cpptools/cpptoolsreuse.h>
#include <texteditor/basetextdocumentlayout.h>
+#include <cplusplus/Token.h>
+#include <cplusplus/SimpleLexer.h>
+#include <cplusplus/Lexer.h>
+
#include <QTextDocument>
#include <QDebug>
diff --git a/src/plugins/cppeditor/cpphighlighter.h b/src/plugins/cppeditor/cpphighlighter.h
index 526f422e17..890dc0757b 100644
--- a/src/plugins/cppeditor/cpphighlighter.h
+++ b/src/plugins/cppeditor/cpphighlighter.h
@@ -31,7 +31,9 @@
#define CPPHIGHLIGHTER_H
#include "cppeditorenums.h"
+
#include <texteditor/syntaxhighlighter.h>
+
#include <QTextCharFormat>
#include <QtAlgorithms>
diff --git a/src/plugins/cppeditor/cpphoverhandler.cpp b/src/plugins/cppeditor/cpphoverhandler.cpp
index a99254fb12..c8a6b9bccb 100644
--- a/src/plugins/cppeditor/cpphoverhandler.cpp
+++ b/src/plugins/cppeditor/cpphoverhandler.cpp
@@ -28,17 +28,19 @@
****************************************************************************/
#include "cpphoverhandler.h"
+
#include "cppeditor.h"
#include "cppelementevaluator.h"
-#include <coreplugin/editormanager/ieditor.h>
#include <coreplugin/editormanager/editormanager.h>
+#include <coreplugin/editormanager/ieditor.h>
#include <coreplugin/helpmanager.h>
#include <cpptools/ModelManagerInterface.h>
-#include <extensionsystem/pluginmanager.h>
-#include <texteditor/itexteditor.h>
#include <texteditor/basetexteditor.h>
#include <texteditor/helpitem.h>
+#include <texteditor/itexteditor.h>
+
+#include <extensionsystem/pluginmanager.h>
#include <QTextCursor>
#include <QUrl>
diff --git a/src/plugins/cppeditor/cppinsertdecldef.cpp b/src/plugins/cppeditor/cppinsertdecldef.cpp
index 51d4558fb9..636a388b6f 100644
--- a/src/plugins/cppeditor/cppinsertdecldef.cpp
+++ b/src/plugins/cppeditor/cppinsertdecldef.cpp
@@ -30,16 +30,17 @@
#include "cppinsertdecldef.h"
#include "cppquickfixassistant.h"
-#include <CPlusPlus.h>
+#include <cpptools/cppcodestylesettings.h>
+#include <cpptools/cpprefactoringchanges.h>
+#include <cpptools/cpptoolsreuse.h>
+#include <cpptools/insertionpointlocator.h>
+
#include <cplusplus/ASTPath.h>
+#include <cplusplus/ASTVisitor.h>
+#include <cplusplus/CPlusPlus.h>
#include <cplusplus/CppRewriter.h>
#include <cplusplus/LookupContext.h>
#include <cplusplus/Overview.h>
-#include <cplusplus/ASTVisitor.h>
-#include <cpptools/insertionpointlocator.h>
-#include <cpptools/cppcodestylesettings.h>
-#include <cpptools/cpprefactoringchanges.h>
-#include <cpptools/cpptoolsreuse.h>
#include <utils/qtcassert.h>
diff --git a/src/plugins/cppeditor/cppinsertqtpropertymembers.cpp b/src/plugins/cppeditor/cppinsertqtpropertymembers.cpp
index 230f6ef2e4..dfd01903b8 100644
--- a/src/plugins/cppeditor/cppinsertqtpropertymembers.cpp
+++ b/src/plugins/cppeditor/cppinsertqtpropertymembers.cpp
@@ -28,16 +28,18 @@
****************************************************************************/
#include "cppinsertqtpropertymembers.h"
+
+#include "cppquickfix.h"
#include "cppquickfixassistant.h"
-#include <AST.h>
-#include <Token.h>
+#include <coreplugin/idocument.h>
+#include <cpptools/cpprefactoringchanges.h>
+#include <cpptools/insertionpointlocator.h>
+
+#include <cplusplus/AST.h>
#include <cplusplus/Overview.h>
#include <cplusplus/Symbols.h>
-#include <cpptools/insertionpointlocator.h>
-#include <cpptools/cpprefactoringchanges.h>
-#include <cppeditor/cppquickfix.h>
-#include <coreplugin/idocument.h>
+#include <cplusplus/Token.h>
#include <utils/qtcassert.h>
diff --git a/src/plugins/cppeditor/cppinsertqtpropertymembers.h b/src/plugins/cppeditor/cppinsertqtpropertymembers.h
index d7890e6e85..90cb271239 100644
--- a/src/plugins/cppeditor/cppinsertqtpropertymembers.h
+++ b/src/plugins/cppeditor/cppinsertqtpropertymembers.h
@@ -30,7 +30,7 @@
#ifndef CPPINSERTQTPROPERTYMEMBERS_H
#define CPPINSERTQTPROPERTYMEMBERS_H
-#include <cppeditor/cppquickfix.h>
+#include "cppquickfix.h"
#include <QString>
diff --git a/src/plugins/cppeditor/cppoutline.cpp b/src/plugins/cppeditor/cppoutline.cpp
index 7e9e75cb4f..d07df22c31 100644
--- a/src/plugins/cppeditor/cppoutline.cpp
+++ b/src/plugins/cppeditor/cppoutline.cpp
@@ -29,12 +29,13 @@
#include "cppoutline.h"
-#include <TranslationUnit.h>
-#include <Symbol.h>
-
-#include <coreplugin/idocument.h>
#include <coreplugin/editormanager/editormanager.h>
+#include <coreplugin/idocument.h>
+
#include <cplusplus/OverviewModel.h>
+#include <cplusplus/Symbol.h>
+#include <cplusplus/TranslationUnit.h>
+
#include <utils/qtcassert.h>
#include <QDebug>
diff --git a/src/plugins/cppeditor/cppoutline.h b/src/plugins/cppeditor/cppoutline.h
index 873f4b6932..a91378f5d6 100644
--- a/src/plugins/cppeditor/cppoutline.h
+++ b/src/plugins/cppeditor/cppoutline.h
@@ -32,9 +32,10 @@
#include "cppeditor.h"
-#include <utils/navigationtreeview.h>
#include <texteditor/ioutlinewidget.h>
+#include <utils/navigationtreeview.h>
+
#include <QSortFilterProxyModel>
#include <QTreeView>
diff --git a/src/plugins/cppeditor/cppplugin.cpp b/src/plugins/cppeditor/cppplugin.cpp
index 3f399a4fea..bece6003a3 100644
--- a/src/plugins/cppeditor/cppplugin.cpp
+++ b/src/plugins/cppeditor/cppplugin.cpp
@@ -28,6 +28,7 @@
****************************************************************************/
#include "cppplugin.h"
+
#include "cppclasswizard.h"
#include "cppeditor.h"
#include "cppeditorconstants.h"
@@ -40,32 +41,32 @@
#include "cppquickfixassistant.h"
#include "cppquickfixes.h"
-#include <coreplugin/icore.h>
-#include <coreplugin/coreconstants.h>
-#include <coreplugin/mimedatabase.h>
-#include <coreplugin/fileiconprovider.h>
-#include <coreplugin/actionmanager/actionmanager.h>
#include <coreplugin/actionmanager/actioncontainer.h>
+#include <coreplugin/actionmanager/actionmanager.h>
#include <coreplugin/actionmanager/command.h>
-#include <coreplugin/id.h>
+#include <coreplugin/coreconstants.h>
#include <coreplugin/editormanager/editormanager.h>
-#include <coreplugin/progressmanager/progressmanager.h>
+#include <coreplugin/fileiconprovider.h>
+#include <coreplugin/icore.h>
+#include <coreplugin/id.h>
+#include <coreplugin/mimedatabase.h>
#include <coreplugin/navigationwidget.h>
+#include <coreplugin/progressmanager/progressmanager.h>
+#include <cpptools/ModelManagerInterface.h>
+#include <cpptools/cpptoolsconstants.h>
+#include <cpptools/cpptoolssettings.h>
#include <texteditor/texteditoractionhandler.h>
+#include <texteditor/texteditorconstants.h>
#include <texteditor/texteditorplugin.h>
#include <texteditor/texteditorsettings.h>
-#include <texteditor/texteditorconstants.h>
+
#include <utils/hostosinfo.h>
-#include <cpptools/ModelManagerInterface.h>
-#include <cpptools/cpptoolsconstants.h>
-#include <cpptools/cpptoolssettings.h>
#include <QFileInfo>
#include <QSettings>
#include <QTimer>
#include <QCoreApplication>
#include <QStringList>
-
#include <QMenu>
using namespace CppEditor;
diff --git a/src/plugins/cppeditor/cppplugin.h b/src/plugins/cppeditor/cppplugin.h
index 06e623a1fd..5dac683e45 100644
--- a/src/plugins/cppeditor/cppplugin.h
+++ b/src/plugins/cppeditor/cppplugin.h
@@ -30,9 +30,10 @@
#ifndef CPPPLUGIN_H
#define CPPPLUGIN_H
-#include <extensionsystem/iplugin.h>
#include <coreplugin/editormanager/ieditorfactory.h>
+#include <extensionsystem/iplugin.h>
+
#include <QtPlugin>
#include <QStringList>
#include <QAction>
diff --git a/src/plugins/cppeditor/cppquickfix.cpp b/src/plugins/cppeditor/cppquickfix.cpp
index 4557a96aaa..b5a835f0da 100644
--- a/src/plugins/cppeditor/cppquickfix.cpp
+++ b/src/plugins/cppeditor/cppquickfix.cpp
@@ -28,22 +28,22 @@
****************************************************************************/
#include "cppquickfix.h"
+
#include "cppeditor.h"
#include "cppquickfixassistant.h"
-#include <AST.h>
-#include <TranslationUnit.h>
-#include <Token.h>
+#include <cpptools/cpprefactoringchanges.h>
+#include <cplusplus/AST.h>
#include <cplusplus/ASTPath.h>
#include <cplusplus/CppDocument.h>
-#include <cplusplus/ResolveExpression.h>
+#include <cplusplus/CppRewriter.h>
+#include <cplusplus/DependencyTable.h>
#include <cplusplus/Overview.h>
+#include <cplusplus/ResolveExpression.h>
+#include <cplusplus/Token.h>
+#include <cplusplus/TranslationUnit.h>
#include <cplusplus/TypeOfExpression.h>
-#include <cplusplus/DependencyTable.h>
-#include <cplusplus/CppRewriter.h>
-
-#include <cpptools/cpprefactoringchanges.h>
#include <QTextBlock>
#include <QFileInfo>
diff --git a/src/plugins/cppeditor/cppquickfix.h b/src/plugins/cppeditor/cppquickfix.h
index beb893dd20..d75cbdeb69 100644
--- a/src/plugins/cppeditor/cppquickfix.h
+++ b/src/plugins/cppeditor/cppquickfix.h
@@ -31,6 +31,7 @@
#define CPPQUICKFIX_H
#include "cppeditor_global.h"
+
#include <texteditor/quickfix.h>
namespace CPlusPlus {
diff --git a/src/plugins/cppeditor/cppquickfix_test.cpp b/src/plugins/cppeditor/cppquickfix_test.cpp
index 8c91cb5f15..6aec512b86 100644
--- a/src/plugins/cppeditor/cppquickfix_test.cpp
+++ b/src/plugins/cppeditor/cppquickfix_test.cpp
@@ -27,34 +27,36 @@
**
****************************************************************************/
-#include <AST.h>
-#include <Bind.h>
-#include <Control.h>
-#include <CppDocument.h>
-#include <DiagnosticClient.h>
-#include <Literals.h>
-#include <Scope.h>
-#include <Symbols.h>
-#include <TranslationUnit.h>
+#include "cppeditor.h"
+#include "cppinsertdecldef.h"
+#include "cppplugin.h"
+#include "cppquickfixassistant.h"
+#include "cppquickfix.h"
+#include "cppquickfixes.h"
#include <coreplugin/editormanager/editormanager.h>
-#include <cppeditor/cppeditor.h>
-#include <cppeditor/cppinsertdecldef.h>
-#include <cppeditor/cppplugin.h>
-#include <cppeditor/cppquickfixassistant.h>
-#include <cppeditor/cppquickfix.h>
-#include <cppeditor/cppquickfixes.h>
#include <cpptools/cppcodestylepreferences.h>
#include <cpptools/cpptoolssettings.h>
-#include <extensionsystem/pluginmanager.h>
#include <texteditor/basetextdocument.h>
#include <texteditor/codeassist/basicproposalitemlistmodel.h>
#include <texteditor/codeassist/iassistproposal.h>
#include <texteditor/codeassist/iassistproposalmodel.h>
#include <texteditor/plaintexteditor.h>
+
+#include <extensionsystem/pluginmanager.h>
#include <utils/changeset.h>
#include <utils/fileutils.h>
+#include <cplusplus/AST.h>
+#include <cplusplus/Bind.h>
+#include <cplusplus/Control.h>
+#include <cplusplus/CppDocument.h>
+#include <cplusplus/DiagnosticClient.h>
+#include <cplusplus/Literals.h>
+#include <cplusplus/Scope.h>
+#include <cplusplus/Symbols.h>
+#include <cplusplus/TranslationUnit.h>
+
#include <QDebug>
#include <QDir>
#include <QTextDocument>
diff --git a/src/plugins/cppeditor/cppquickfixassistant.cpp b/src/plugins/cppeditor/cppquickfixassistant.cpp
index 1644938e66..05c477cbde 100644
--- a/src/plugins/cppeditor/cppquickfixassistant.cpp
+++ b/src/plugins/cppeditor/cppquickfixassistant.cpp
@@ -28,28 +28,26 @@
****************************************************************************/
#include "cppquickfixassistant.h"
+
#include "cppeditorconstants.h"
#include "cppeditor.h"
-
// @TODO: temp
#include "cppquickfix.h"
-#include <AST.h>
-#include <TranslationUnit.h>
-#include <Token.h>
+#include <cpptools/cpprefactoringchanges.h>
+#include <cplusplus/AST.h>
#include <cplusplus/ASTPath.h>
#include <cplusplus/CppDocument.h>
-#include <cplusplus/ResolveExpression.h>
+#include <cplusplus/CppRewriter.h>
+#include <cplusplus/DependencyTable.h>
#include <cplusplus/Overview.h>
+#include <cplusplus/ResolveExpression.h>
+#include <cplusplus/Token.h>
+#include <cplusplus/TranslationUnit.h>
#include <cplusplus/TypeOfExpression.h>
-#include <cplusplus/DependencyTable.h>
-#include <cplusplus/CppRewriter.h>
-
-#include <cpptools/cpprefactoringchanges.h>
#include <extensionsystem/pluginmanager.h>
-
#include <utils/qtcassert.h>
#include <QFileInfo>
diff --git a/src/plugins/cppeditor/cppquickfixassistant.h b/src/plugins/cppeditor/cppquickfixassistant.h
index 4ab46e01c0..55812deece 100644
--- a/src/plugins/cppeditor/cppquickfixassistant.h
+++ b/src/plugins/cppeditor/cppquickfixassistant.h
@@ -31,14 +31,13 @@
#define CPPQUICKFIXASSISTANT_H
#include <cpptools/cppsemanticinfo.h>
-
-#include <ASTfwd.h>
-#include <cplusplus/CppDocument.h>
-
#include <texteditor/codeassist/defaultassistinterface.h>
#include <texteditor/codeassist/quickfixassistprovider.h>
#include <texteditor/codeassist/quickfixassistprocessor.h>
+#include <cplusplus/ASTfwd.h>
+#include <cplusplus/CppDocument.h>
+
namespace CppTools {
class CppRefactoringFile;
typedef QSharedPointer<CppRefactoringFile> CppRefactoringFilePtr;
diff --git a/src/plugins/cppeditor/cppquickfixes.cpp b/src/plugins/cppeditor/cppquickfixes.cpp
index 1182a19269..4e8cd32686 100644
--- a/src/plugins/cppeditor/cppquickfixes.cpp
+++ b/src/plugins/cppeditor/cppquickfixes.cpp
@@ -35,24 +35,25 @@
#include "cppinsertqtpropertymembers.h"
#include "cppquickfixassistant.h"
-#include <Literals.h>
-#include <Name.h>
-#include <Names.h>
-#include <Symbol.h>
-#include <Symbols.h>
-#include <Token.h>
-#include <TranslationUnit.h>
-
-#include <cplusplus/CppRewriter.h>
-#include <cplusplus/DependencyTable.h>
-#include <cplusplus/Overview.h>
-#include <cplusplus/TypeOfExpression.h>
+#include <cpptools/ModelManagerInterface.h>
#include <cpptools/cppclassesfilter.h>
#include <cpptools/cppcodestylesettings.h>
#include <cpptools/cpppointerdeclarationformatter.h>
#include <cpptools/cpptoolsconstants.h>
-#include <cpptools/ModelManagerInterface.h>
#include <cpptools/symbolfinder.h>
+
+#include <cplusplus/CppRewriter.h>
+#include <cplusplus/DependencyTable.h>
+#include <cplusplus/Literals.h>
+#include <cplusplus/Name.h>
+#include <cplusplus/Names.h>
+#include <cplusplus/Overview.h>
+#include <cplusplus/Symbol.h>
+#include <cplusplus/Symbols.h>
+#include <cplusplus/Token.h>
+#include <cplusplus/TranslationUnit.h>
+#include <cplusplus/TypeOfExpression.h>
+
#include <extensionsystem/pluginmanager.h>
#include <utils/changeset.h>
#include <utils/qtcassert.h>
diff --git a/src/plugins/cppeditor/cppquickfixes.h b/src/plugins/cppeditor/cppquickfixes.h
index 967f8a83bf..1a73c6b677 100644
--- a/src/plugins/cppeditor/cppquickfixes.h
+++ b/src/plugins/cppeditor/cppquickfixes.h
@@ -33,10 +33,11 @@
#include "cppquickfix.h"
#include <cpptools/cpprefactoringchanges.h>
+
#include <extensionsystem/iplugin.h>
-#include <AST.h>
-#include <ASTMatcher.h>
+#include <cplusplus/AST.h>
+#include <cplusplus/ASTMatcher.h>
QT_BEGIN_NAMESPACE
class QByteArray;
diff --git a/src/plugins/cppeditor/cppsnippetprovider.cpp b/src/plugins/cppeditor/cppsnippetprovider.cpp
index f428e32a48..568ba66e8d 100644
--- a/src/plugins/cppeditor/cppsnippetprovider.cpp
+++ b/src/plugins/cppeditor/cppsnippetprovider.cpp
@@ -28,6 +28,7 @@
****************************************************************************/
#include "cppsnippetprovider.h"
+
#include "cpphighlighter.h"
#include "cppeditor.h"
#include "cppautocompleter.h"
diff --git a/src/plugins/cppeditor/cpptypehierarchy.cpp b/src/plugins/cppeditor/cpptypehierarchy.cpp
index 20da48fa29..051590fae6 100644
--- a/src/plugins/cppeditor/cpptypehierarchy.cpp
+++ b/src/plugins/cppeditor/cpptypehierarchy.cpp
@@ -28,6 +28,7 @@
****************************************************************************/
#include "cpptypehierarchy.h"
+
#include "cppeditorconstants.h"
#include "cppeditor.h"
#include "cppelementevaluator.h"
@@ -35,6 +36,7 @@
#include <coreplugin/editormanager/ieditor.h>
#include <coreplugin/editormanager/editormanager.h>
+
#include <utils/navigationtreeview.h>
#include <utils/annotateditemdelegate.h>
diff --git a/src/plugins/cpptools/ModelManagerInterface.cpp b/src/plugins/cpptools/ModelManagerInterface.cpp
index 8f877f0cbe..e9548f185d 100644
--- a/src/plugins/cpptools/ModelManagerInterface.cpp
+++ b/src/plugins/cpptools/ModelManagerInterface.cpp
@@ -28,7 +28,8 @@
****************************************************************************/
#include "ModelManagerInterface.h"
-#include "pp-engine.h"
+
+#include <cplusplus/pp-engine.h>
#include <QtCore/QSet>
diff --git a/src/plugins/cpptools/ModelManagerInterface.h b/src/plugins/cpptools/ModelManagerInterface.h
index 5f4895598f..ceb82e6f86 100644
--- a/src/plugins/cpptools/ModelManagerInterface.h
+++ b/src/plugins/cpptools/ModelManagerInterface.h
@@ -30,11 +30,12 @@
#ifndef CPPMODELMANAGERINTERFACE_H
#define CPPMODELMANAGERINTERFACE_H
-#include <cplusplus/CppDocument.h>
-#include <languageutils/fakemetaobject.h>
#include "cpptools_global.h"
#include "cppprojectfile.h"
+#include <cplusplus/CppDocument.h>
+#include <languageutils/fakemetaobject.h>
+
#include <QObject>
#include <QHash>
#include <QPointer>
diff --git a/src/plugins/cpptools/TypeHierarchyBuilder.cpp b/src/plugins/cpptools/TypeHierarchyBuilder.cpp
index e740122852..d1bb186964 100644
--- a/src/plugins/cpptools/TypeHierarchyBuilder.cpp
+++ b/src/plugins/cpptools/TypeHierarchyBuilder.cpp
@@ -28,14 +28,15 @@
****************************************************************************/
#include "TypeHierarchyBuilder.h"
-#include "FindUsages.h"
-#include "Symbols.h"
-#include "SymbolVisitor.h"
-#include "DependencyTable.h"
-#include "CppDocument.h"
-#include "Literals.h"
-#include "TranslationUnit.h"
-#include "CoreTypes.h"
+
+#include <cplusplus/CoreTypes.h>
+#include <cplusplus/CppDocument.h>
+#include <cplusplus/DependencyTable.h>
+#include <cplusplus/FindUsages.h>
+#include <cplusplus/Literals.h>
+#include <cplusplus/SymbolVisitor.h>
+#include <cplusplus/Symbols.h>
+#include <cplusplus/TranslationUnit.h>
using namespace CPlusPlus;
diff --git a/src/plugins/cpptools/TypeHierarchyBuilder.h b/src/plugins/cpptools/TypeHierarchyBuilder.h
index 205d7ee165..8f44e049c9 100644
--- a/src/plugins/cpptools/TypeHierarchyBuilder.h
+++ b/src/plugins/cpptools/TypeHierarchyBuilder.h
@@ -30,10 +30,11 @@
#ifndef TYPEHIERARCHYBUILDER_H
#define TYPEHIERARCHYBUILDER_H
-#include "CppDocument.h"
-#include "ModelManagerInterface.h"
-#include "Overview.h"
#include "cpptools_global.h"
+#include "ModelManagerInterface.h"
+
+#include <cplusplus/CppDocument.h>
+#include <cplusplus/Overview.h>
#include <QList>
#include <QStringList>
diff --git a/src/plugins/cpptools/abstracteditorsupport.cpp b/src/plugins/cpptools/abstracteditorsupport.cpp
index 7aad3d71e1..a1e910b802 100644
--- a/src/plugins/cpptools/abstracteditorsupport.cpp
+++ b/src/plugins/cpptools/abstracteditorsupport.cpp
@@ -28,19 +28,21 @@
****************************************************************************/
#include "abstracteditorsupport.h"
+
#include "cpptoolsconstants.h"
#include "cppfilesettingspage.h"
+#include "ModelManagerInterface.h"
-#include <cplusplus/Overview.h>
+#include <coreplugin/icore.h>
+
+#include <cplusplus/CoreTypes.h>
#include <cplusplus/CppDocument.h>
#include <cplusplus/ExpressionUnderCursor.h>
-#include "ModelManagerInterface.h"
-#include <CoreTypes.h>
-#include <Names.h>
-#include <Symbols.h>
-#include <Scope.h>
+#include <cplusplus/Names.h>
+#include <cplusplus/Overview.h>
+#include <cplusplus/Scope.h>
+#include <cplusplus/Symbols.h>
-#include <coreplugin/icore.h>
#include <QDebug>
using namespace CPlusPlus;
diff --git a/src/plugins/cpptools/builtinindexingsupport.cpp b/src/plugins/cpptools/builtinindexingsupport.cpp
index 9cbaff5eeb..5f8659c210 100644
--- a/src/plugins/cpptools/builtinindexingsupport.cpp
+++ b/src/plugins/cpptools/builtinindexingsupport.cpp
@@ -1,10 +1,12 @@
#include "builtinindexingsupport.h"
+
#include "cppmodelmanager.h"
#include "searchsymbols.h"
#include <coreplugin/icore.h>
#include <coreplugin/mimedatabase.h>
#include <coreplugin/progressmanager/progressmanager.h>
+
#include <utils/runextensions.h>
#include <QCoreApplication>
diff --git a/src/plugins/cpptools/completionsettingspage.cpp b/src/plugins/cpptools/completionsettingspage.cpp
index a1f787f4f6..6d0b2fc3f7 100644
--- a/src/plugins/cpptools/completionsettingspage.cpp
+++ b/src/plugins/cpptools/completionsettingspage.cpp
@@ -28,13 +28,15 @@
****************************************************************************/
#include "completionsettingspage.h"
-#include "ui_completionsettingspage.h"
+
+#include <ui_completionsettingspage.h>
#include "cpptoolsconstants.h"
#include <coreplugin/icore.h>
-#include <extensionsystem/pluginmanager.h>
#include <texteditor/texteditorsettings.h>
+#include <extensionsystem/pluginmanager.h>
+
#include <QTextStream>
#include <QCoreApplication>
diff --git a/src/plugins/cpptools/cppchecksymbols.cpp b/src/plugins/cpptools/cppchecksymbols.cpp
index fbf2766606..8146131133 100644
--- a/src/plugins/cpptools/cppchecksymbols.cpp
+++ b/src/plugins/cpptools/cppchecksymbols.cpp
@@ -28,27 +28,26 @@
****************************************************************************/
#include "cppchecksymbols.h"
+
#include "cpplocalsymbols.h"
+#include <cplusplus/AST.h>
+#include <cplusplus/Literals.h>
+#include <cplusplus/Names.h>
+#include <cplusplus/Overview.h>
+#include <cplusplus/Scope.h>
#include <cplusplus/SimpleLexer.h>
-
-#include <Names.h>
-#include <Literals.h>
-#include <Symbols.h>
-#include <TranslationUnit.h>
-#include <Scope.h>
-#include <AST.h>
-#include <SymbolVisitor.h>
-#include <Overview.h>
+#include <cplusplus/SymbolVisitor.h>
+#include <cplusplus/Symbols.h>
+#include <cplusplus/TranslationUnit.h>
#include <utils/qtcassert.h>
+#include <utils/runextensions.h>
#include <QCoreApplication>
#include <QThreadPool>
#include <QDebug>
-#include <utils/runextensions.h>
-
// This is for experimeting highlighting ctors/dtors as functions (instead of types).
// Whenever this feature is considered "accepted" the switch below should be permanently
// removed, unless we decide to actually make this a user setting - that is why it's
diff --git a/src/plugins/cpptools/cppchecksymbols.h b/src/plugins/cpptools/cppchecksymbols.h
index a1b87f2b7b..b1af819730 100644
--- a/src/plugins/cpptools/cppchecksymbols.h
+++ b/src/plugins/cpptools/cppchecksymbols.h
@@ -31,16 +31,15 @@
#define CPLUSPLUSCHECKSYMBOLS_H
#include "cpptools_global.h"
-
#include "cppsemanticinfo.h"
+#include <texteditor/semantichighlighter.h>
+
+#include <cplusplus/ASTVisitor.h>
#include <cplusplus/CppDocument.h>
#include <cplusplus/LookupContext.h>
#include <cplusplus/TypeOfExpression.h>
-#include <texteditor/semantichighlighter.h>
-
-#include <ASTVisitor.h>
#include <QSet>
#include <QFuture>
#include <QtConcurrentRun>
diff --git a/src/plugins/cpptools/cppcodeformatter.cpp b/src/plugins/cpptools/cppcodeformatter.cpp
index 342b426fef..be5110a77c 100644
--- a/src/plugins/cpptools/cppcodeformatter.cpp
+++ b/src/plugins/cpptools/cppcodeformatter.cpp
@@ -29,11 +29,14 @@
#include "cppcodeformatter.h"
-#include <Token.h>
-#include <Lexer.h>
+#include "cppcodestylesettingspage.h"
#include <texteditor/basetextdocumentlayout.h>
#include <texteditor/tabsettings.h>
+
+#include <cplusplus/Token.h>
+#include <cplusplus/Lexer.h>
+
#include <utils/qtcassert.h>
#include <QDebug>
@@ -42,8 +45,6 @@
#include <QTextCursor>
#include <QTextBlock>
-#include "cppcodestylesettingspage.h"
-
using namespace CPlusPlus;
using namespace CppTools;
using namespace TextEditor;
diff --git a/src/plugins/cpptools/cppcodeformatter.h b/src/plugins/cpptools/cppcodeformatter.h
index c175734f2b..c3fe6fd69a 100644
--- a/src/plugins/cpptools/cppcodeformatter.h
+++ b/src/plugins/cpptools/cppcodeformatter.h
@@ -31,11 +31,12 @@
#define CPPCODEFORMATTER_H
#include "cpptools_global.h"
+#include "cppcodestylesettings.h"
-#include <Token.h>
-#include <cplusplus/SimpleLexer.h>
#include <texteditor/tabsettings.h>
-#include <cpptools/cppcodestylesettings.h>
+
+#include <cplusplus/Token.h>
+#include <cplusplus/SimpleLexer.h>
#include <QChar>
#include <QStack>
diff --git a/src/plugins/cpptools/cppcodegen_test.cpp b/src/plugins/cpptools/cppcodegen_test.cpp
index 6bc8fb89e5..f79a694e6c 100644
--- a/src/plugins/cpptools/cppcodegen_test.cpp
+++ b/src/plugins/cpptools/cppcodegen_test.cpp
@@ -27,20 +27,20 @@
**
****************************************************************************/
+#include "insertionpointlocator.h"
+#include "cpprefactoringchanges.h"
#include "cpptoolsplugin.h"
-#include <AST.h>
-#include <Control.h>
-#include <CppDocument.h>
-#include <DiagnosticClient.h>
-#include <Scope.h>
-#include <TranslationUnit.h>
-#include <Literals.h>
-#include <Bind.h>
-#include <Symbols.h>
-#include <cpptools/insertionpointlocator.h>
-#include <cpptools/cpprefactoringchanges.h>
-#include <cpptools/cpptoolsplugin.h>
+#include <cplusplus/AST.h>
+#include <cplusplus/Bind.h>
+#include <cplusplus/Control.h>
+#include <cplusplus/CppDocument.h>
+#include <cplusplus/DiagnosticClient.h>
+#include <cplusplus/Literals.h>
+#include <cplusplus/Scope.h>
+#include <cplusplus/Symbols.h>
+#include <cplusplus/TranslationUnit.h>
+
#include <extensionsystem/pluginmanager.h>
#include <utils/fileutils.h>
diff --git a/src/plugins/cpptools/cppcodestylepreferences.h b/src/plugins/cpptools/cppcodestylepreferences.h
index 4100945b74..d3ef94e1a2 100644
--- a/src/plugins/cpptools/cppcodestylepreferences.h
+++ b/src/plugins/cpptools/cppcodestylepreferences.h
@@ -32,6 +32,7 @@
#include "cpptools_global.h"
#include "cppcodestylesettings.h"
+
#include <texteditor/icodestylepreferences.h>
namespace CppTools {
diff --git a/src/plugins/cpptools/cppcodestylepreferencesfactory.cpp b/src/plugins/cpptools/cppcodestylepreferencesfactory.cpp
index 50936a2f34..f6d1d6af7b 100644
--- a/src/plugins/cpptools/cppcodestylepreferencesfactory.cpp
+++ b/src/plugins/cpptools/cppcodestylepreferencesfactory.cpp
@@ -28,15 +28,19 @@
****************************************************************************/
#include "cppcodestylepreferencesfactory.h"
+
#include "cppcodestylesettings.h"
#include "cppcodestylesettingspage.h"
#include "cppcodestylepreferences.h"
#include "cpptoolsconstants.h"
#include "cppqtstyleindenter.h"
-#include <extensionsystem/pluginmanager.h>
-#include <texteditor/tabsettings.h>
-#include <texteditor/snippets/isnippetprovider.h>
+
#include <cppeditor/cppeditorconstants.h>
+#include <texteditor/snippets/isnippetprovider.h>
+#include <texteditor/tabsettings.h>
+
+#include <extensionsystem/pluginmanager.h>
+
#include <QLayout>
using namespace CppTools;
diff --git a/src/plugins/cpptools/cppcodestylesettings.cpp b/src/plugins/cpptools/cppcodestylesettings.cpp
index a4f67e7623..88fc6ea4e1 100644
--- a/src/plugins/cpptools/cppcodestylesettings.cpp
+++ b/src/plugins/cpptools/cppcodestylesettings.cpp
@@ -28,18 +28,17 @@
****************************************************************************/
#include "cppcodestylesettings.h"
-#include "cppcodestylepreferencesfactory.h"
-#include <cpptools/cppcodestylepreferences.h>
-#include <cpptools/cpptoolsconstants.h>
-#include <cpptools/cpptoolssettings.h>
+#include "cppcodestylepreferencesfactory.h"
+#include "cppcodestylepreferences.h"
+#include "cpptoolsconstants.h"
+#include "cpptoolssettings.h"
#include <projectexplorer/editorconfiguration.h>
#include <projectexplorer/project.h>
#include <projectexplorer/projectexplorer.h>
#include <utils/qtcassert.h>
-
#include <utils/settingsutils.h>
static const char groupPostfix[] = "IndentSettings";
diff --git a/src/plugins/cpptools/cppcodestylesettingspage.cpp b/src/plugins/cpptools/cppcodestylesettingspage.cpp
index a9cdadd1bd..d37d0a47d5 100644
--- a/src/plugins/cpptools/cppcodestylesettingspage.cpp
+++ b/src/plugins/cpptools/cppcodestylesettingspage.cpp
@@ -28,19 +28,16 @@
****************************************************************************/
#include "cppcodestylesettingspage.h"
+
#include "cppcodestylepreferences.h"
#include "cpppointerdeclarationformatter.h"
#include "cppqtstyleindenter.h"
#include "cpptoolsconstants.h"
#include "cpptoolssettings.h"
-#include "ui_cppcodestylesettingspage.h"
-
-#include <Overview.h>
-#include <pp.h>
+#include <ui_cppcodestylesettingspage.h>
#include <coreplugin/icore.h>
#include <cppeditor/cppeditorconstants.h>
-#include <extensionsystem/pluginmanager.h>
#include <texteditor/codestyleeditor.h>
#include <texteditor/displaysettings.h>
#include <texteditor/fontsettings.h>
@@ -48,6 +45,11 @@
#include <texteditor/tabsettings.h>
#include <texteditor/texteditorsettings.h>
+#include <cplusplus/Overview.h>
+#include <cplusplus/pp.h>
+
+#include <extensionsystem/pluginmanager.h>
+
#include <QTextBlock>
#include <QTextStream>
diff --git a/src/plugins/cpptools/cppcodestylesettingspage.h b/src/plugins/cpptools/cppcodestylesettingspage.h
index ec00940b6e..3cc099ce8d 100644
--- a/src/plugins/cpptools/cppcodestylesettingspage.h
+++ b/src/plugins/cpptools/cppcodestylesettingspage.h
@@ -31,17 +31,17 @@
#define CPPCODESTYLESETTINGSPAGE_H
#include "cpptools_global.h"
+#include "cppcodestylesettings.h"
+#include "cppcodeformatter.h"
#include <coreplugin/dialogs/ioptionspage.h>
+
#include <QWidget>
#include <QPointer>
#include <QSharedPointer>
#include <QVariant>
#include <QStringList>
-#include "cppcodestylesettings.h"
-#include "cppcodeformatter.h"
-
namespace TextEditor {
class FontSettings;
class TabSettings;
diff --git a/src/plugins/cpptools/cppcompletion_test.cpp b/src/plugins/cpptools/cppcompletion_test.cpp
index 823a478fe4..a7cd6fa93a 100644
--- a/src/plugins/cpptools/cppcompletion_test.cpp
+++ b/src/plugins/cpptools/cppcompletion_test.cpp
@@ -28,25 +28,26 @@
****************************************************************************/
#include "cpptoolsplugin.h"
+#include "cppcompletionassist.h"
-#include <AST.h>
-#include <Control.h>
-#include <CppDocument.h>
-#include <DiagnosticClient.h>
-#include <Scope.h>
-#include <TranslationUnit.h>
-#include <Literals.h>
-#include <Bind.h>
-#include <Symbols.h>
-#include <utils/changeset.h>
#include <texteditor/basetextdocument.h>
#include <texteditor/plaintexteditor.h>
#include <texteditor/codeassist/iassistproposal.h>
#include <texteditor/codeassist/iassistproposalmodel.h>
#include <texteditor/codeassist/basicproposalitemlistmodel.h>
-#include <cpptools/cpptoolsplugin.h>
-#include <cpptools/cppcompletionassist.h>
+
+#include <cplusplus/AST.h>
+#include <cplusplus/Bind.h>
+#include <cplusplus/Control.h>
+#include <cplusplus/CppDocument.h>
+#include <cplusplus/DiagnosticClient.h>
+#include <cplusplus/Literals.h>
+#include <cplusplus/Scope.h>
+#include <cplusplus/Symbols.h>
+#include <cplusplus/TranslationUnit.h>
+
#include <extensionsystem/pluginmanager.h>
+#include <utils/changeset.h>
#include <utils/fileutils.h>
#include <QtTest>
diff --git a/src/plugins/cpptools/cppcompletionassist.cpp b/src/plugins/cpptools/cppcompletionassist.cpp
index f4e2d91c38..cef6bb1e6f 100644
--- a/src/plugins/cpptools/cppcompletionassist.cpp
+++ b/src/plugins/cpptools/cppcompletionassist.cpp
@@ -28,30 +28,11 @@
****************************************************************************/
#include "cppcompletionassist.h"
+
#include "cppmodelmanager.h"
#include "cppdoxygen.h"
#include "cpptoolsconstants.h"
-#include <Control.h>
-#include <AST.h>
-#include <ASTVisitor.h>
-#include <CoreTypes.h>
-#include <Literals.h>
-#include <Names.h>
-#include <NameVisitor.h>
-#include <Symbols.h>
-#include <SymbolVisitor.h>
-#include <Scope.h>
-#include <TranslationUnit.h>
-#include <CppRewriter.h>
-
-#include <cplusplus/ResolveExpression.h>
-#include <cplusplus/MatchingText.h>
-#include <cplusplus/Overview.h>
-#include <cplusplus/ExpressionUnderCursor.h>
-#include <cplusplus/BackwardsScanner.h>
-#include <cplusplus/LookupContext.h>
-
#include <coreplugin/idocument.h>
#include <coreplugin/icore.h>
#include <coreplugin/mimedatabase.h>
@@ -64,8 +45,28 @@
#include <texteditor/snippets/snippet.h>
#include <texteditor/texteditorsettings.h>
#include <texteditor/completionsettings.h>
+
#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>
#include <QTextDocument>
diff --git a/src/plugins/cpptools/cppcompletionassist.h b/src/plugins/cpptools/cppcompletionassist.h
index 23d7b387bb..428c5e6ebd 100644
--- a/src/plugins/cpptools/cppcompletionassist.h
+++ b/src/plugins/cpptools/cppcompletionassist.h
@@ -32,21 +32,21 @@
#include "cppcompletionassistprovider.h"
+#include <cplusplus/CppDocument.h>
#include <cplusplus/Icons.h>
#include <cplusplus/Overview.h>
#include <cplusplus/TypeOfExpression.h>
-#include <cplusplus/CppDocument.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>
-#include <texteditor/codeassist/defaultassistinterface.h>
-#include <texteditor/codeassist/basicproposalitem.h>
#include <QStringList>
#include <QVariant>
diff --git a/src/plugins/cpptools/cppcompletionassistprovider.cpp b/src/plugins/cpptools/cppcompletionassistprovider.cpp
index 679842361b..c746f0bf28 100644
--- a/src/plugins/cpptools/cppcompletionassistprovider.cpp
+++ b/src/plugins/cpptools/cppcompletionassistprovider.cpp
@@ -31,7 +31,7 @@
#include <cppeditor/cppeditorconstants.h>
-#include <Token.h>
+#include <cplusplus/Token.h>
using namespace CPlusPlus;
using namespace CppTools;
diff --git a/src/plugins/cpptools/cppcurrentdocumentfilter.cpp b/src/plugins/cpptools/cppcurrentdocumentfilter.cpp
index ee859b1396..ae3d3a9744 100644
--- a/src/plugins/cpptools/cppcurrentdocumentfilter.cpp
+++ b/src/plugins/cpptools/cppcurrentdocumentfilter.cpp
@@ -26,10 +26,13 @@
** version 1.1, included in the file LGPL_EXCEPTION.txt in this package.
**
****************************************************************************/
+
#include "cppcurrentdocumentfilter.h"
+
#include "cppmodelmanager.h"
#include <coreplugin/editormanager/editormanager.h>
+
#include <cplusplus/CppDocument.h>
#include <QStringMatcher>
diff --git a/src/plugins/cpptools/cppcurrentdocumentfilter.h b/src/plugins/cpptools/cppcurrentdocumentfilter.h
index 4f4fd08272..3466f0e0c1 100644
--- a/src/plugins/cpptools/cppcurrentdocumentfilter.h
+++ b/src/plugins/cpptools/cppcurrentdocumentfilter.h
@@ -30,6 +30,7 @@
#define CPPCURRENTDOCUMENTFILTER_H
#include "searchsymbols.h"
+
#include <locator/ilocatorfilter.h>
namespace Core {
diff --git a/src/plugins/cpptools/cppfilesettingspage.cpp b/src/plugins/cpptools/cppfilesettingspage.cpp
index 66eff6cbce..c5cb5701bf 100644
--- a/src/plugins/cpptools/cppfilesettingspage.cpp
+++ b/src/plugins/cpptools/cppfilesettingspage.cpp
@@ -28,8 +28,9 @@
****************************************************************************/
#include "cppfilesettingspage.h"
+
#include "cpptoolsconstants.h"
-#include "ui_cppfilesettingspage.h"
+#include <ui_cppfilesettingspage.h>
#include <coreplugin/icore.h>
#include <coreplugin/editormanager/editormanager.h>
@@ -37,7 +38,6 @@
#include <cppeditor/cppeditorconstants.h>
#include <extensionsystem/pluginmanager.h>
-
#include <utils/environment.h>
#include <utils/fileutils.h>
@@ -50,7 +50,6 @@
#include <QLocale>
#include <QTextCodec>
#include <QTextStream>
-
#include <QFileDialog>
#include <QMessageBox>
diff --git a/src/plugins/cpptools/cppfindreferences.cpp b/src/plugins/cpptools/cppfindreferences.cpp
index dfa6978b7e..a175d207a7 100644
--- a/src/plugins/cpptools/cppfindreferences.cpp
+++ b/src/plugins/cpptools/cppfindreferences.cpp
@@ -28,34 +28,37 @@
****************************************************************************/
#include "cppfindreferences.h"
+
#include "cpptoolsconstants.h"
+#include "ModelManagerInterface.h"
-#include <texteditor/basetexteditor.h>
-#include <texteditor/basefilefind.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 <coreplugin/progressmanager/progressmanager.h>
-#include <coreplugin/progressmanager/futureprogress.h>
-#include <coreplugin/editormanager/editormanager.h>
-#include <coreplugin/icore.h>
-#include <coreplugin/infobar.h>
-
-#include <ASTVisitor.h>
-#include <AST.h>
-#include <Control.h>
-#include <Literals.h>
-#include <TranslationUnit.h>
-#include <Symbols.h>
-#include <Names.h>
-#include <Scope.h>
+#include <utils/runextensions.h>
+#include <utils/textfileformat.h>
-#include <cpptools/ModelManagerInterface.h>
+#include <cplusplus/AST.h>
+#include <cplusplus/ASTVisitor.h>
+#include <cplusplus/Control.h>
#include <cplusplus/CppDocument.h>
-#include <cplusplus/Overview.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>
@@ -63,8 +66,6 @@
#include <QtConcurrentMap>
#include <QDir>
#include <QApplication>
-#include <utils/runextensions.h>
-#include <utils/textfileformat.h>
#include <functional>
diff --git a/src/plugins/cpptools/cppfindreferences.h b/src/plugins/cpptools/cppfindreferences.h
index 13b1b6f3fb..200dc616bd 100644
--- a/src/plugins/cpptools/cppfindreferences.h
+++ b/src/plugins/cpptools/cppfindreferences.h
@@ -31,6 +31,7 @@
#define CPPFINDREFERENCES_H
#include <utils/filesearch.h>
+
#include <cplusplus/CppDocument.h>
#include <cplusplus/DependencyTable.h>
#include <cplusplus/FindUsages.h>
diff --git a/src/plugins/cpptools/cpphighlightingsupport.h b/src/plugins/cpptools/cpphighlightingsupport.h
index 9ca5151513..1e92651405 100644
--- a/src/plugins/cpptools/cpphighlightingsupport.h
+++ b/src/plugins/cpptools/cpphighlightingsupport.h
@@ -32,9 +32,10 @@
#include "cpptools_global.h"
-#include <cplusplus/CppDocument.h>
#include <texteditor/semantichighlighter.h>
+#include <cplusplus/CppDocument.h>
+
#include <QFuture>
namespace TextEditor {
diff --git a/src/plugins/cpptools/cpphighlightingsupportinternal.cpp b/src/plugins/cpptools/cpphighlightingsupportinternal.cpp
index 5d17c3f3de..a05c5afbeb 100644
--- a/src/plugins/cpptools/cpphighlightingsupportinternal.cpp
+++ b/src/plugins/cpptools/cpphighlightingsupportinternal.cpp
@@ -28,13 +28,15 @@
****************************************************************************/
#include "cpphighlightingsupportinternal.h"
+
#include "cppchecksymbols.h"
+#include "cpptoolsreuse.h"
+
+#include <texteditor/itexteditor.h>
#include <cplusplus/LookupContext.h>
#include <cplusplus/SimpleLexer.h>
#include <cplusplus/Token.h>
-#include <cpptools/cpptoolsreuse.h>
-#include <texteditor/itexteditor.h>
using namespace CPlusPlus;
using namespace CppTools;
diff --git a/src/plugins/cpptools/cpphighlightingsupportinternal.h b/src/plugins/cpptools/cpphighlightingsupportinternal.h
index 2389c317ce..fe3ecb44a9 100644
--- a/src/plugins/cpptools/cpphighlightingsupportinternal.h
+++ b/src/plugins/cpptools/cpphighlightingsupportinternal.h
@@ -32,9 +32,10 @@
#include "cpphighlightingsupport.h"
-#include <cplusplus/CppDocument.h>
#include <texteditor/semantichighlighter.h>
+#include <cplusplus/CppDocument.h>
+
#include <QFuture>
namespace CppTools {
diff --git a/src/plugins/cpptools/cpplocalsymbols.cpp b/src/plugins/cpptools/cpplocalsymbols.cpp
index 8b682b382e..7b71590e67 100644
--- a/src/plugins/cpptools/cpplocalsymbols.cpp
+++ b/src/plugins/cpptools/cpplocalsymbols.cpp
@@ -28,16 +28,17 @@
****************************************************************************/
#include "cpplocalsymbols.h"
+
#include "cppsemanticinfo.h"
+#include <cplusplus/AST.h>
+#include <cplusplus/ASTVisitor.h>
+#include <cplusplus/CoreTypes.h>
#include <cplusplus/CppDocument.h>
-#include <ASTVisitor.h>
-#include <AST.h>
-#include <Scope.h>
-#include <Symbols.h>
-#include <CoreTypes.h>
-#include <Names.h>
-#include <Literals.h>
+#include <cplusplus/Literals.h>
+#include <cplusplus/Names.h>
+#include <cplusplus/Scope.h>
+#include <cplusplus/Symbols.h>
using namespace CPlusPlus;
using namespace CppTools;
diff --git a/src/plugins/cpptools/cpplocalsymbols.h b/src/plugins/cpptools/cpplocalsymbols.h
index 80e4f73fa6..9e473b2146 100644
--- a/src/plugins/cpptools/cpplocalsymbols.h
+++ b/src/plugins/cpptools/cpplocalsymbols.h
@@ -34,7 +34,7 @@
#include "cppsemanticinfo.h"
#include <cplusplus/CppDocument.h>
-#include <ASTfwd.h>
+#include <cplusplus/ASTfwd.h>
namespace CppTools {
diff --git a/src/plugins/cpptools/cpplocatorfilter.cpp b/src/plugins/cpptools/cpplocatorfilter.cpp
index 03b55718d9..08fda7477f 100644
--- a/src/plugins/cpptools/cpplocatorfilter.cpp
+++ b/src/plugins/cpptools/cpplocatorfilter.cpp
@@ -32,6 +32,7 @@
#include <texteditor/itexteditor.h>
#include <texteditor/basetexteditor.h>
+
#include <utils/fileutils.h>
#include <QStringMatcher>
diff --git a/src/plugins/cpptools/cpplocatorfilter.h b/src/plugins/cpptools/cpplocatorfilter.h
index 92eda5dbdb..e4cfbaca75 100644
--- a/src/plugins/cpptools/cpplocatorfilter.h
+++ b/src/plugins/cpptools/cpplocatorfilter.h
@@ -31,6 +31,7 @@
#define CPPLOCATORFILTER_H
#include "searchsymbols.h"
+
#include <locator/ilocatorfilter.h>
namespace CppTools {
diff --git a/src/plugins/cpptools/cppmodelmanager.cpp b/src/plugins/cpptools/cppmodelmanager.cpp
index c0fc6cca14..5176c95069 100644
--- a/src/plugins/cpptools/cppmodelmanager.cpp
+++ b/src/plugins/cpptools/cppmodelmanager.cpp
@@ -28,6 +28,7 @@
****************************************************************************/
#include "cppmodelmanager.h"
+
#include "builtinindexingsupport.h"
#include "cppcompletionassist.h"
#include "cpphighlightingsupport.h"
@@ -38,42 +39,38 @@
#include "cpptoolseditorsupport.h"
#include "cppfindreferences.h"
-#include <cplusplus/pp.h>
-#include <cplusplus/Overview.h>
-
-#include <functional>
-#include <QtConcurrentRun>
-#include <QFutureSynchronizer>
-#include <utils/runextensions.h>
-#include <texteditor/itexteditor.h>
-#include <texteditor/basetexteditor.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 <coreplugin/icore.h>
-#include <coreplugin/mimedatabase.h>
-#include <coreplugin/editormanager/editormanager.h>
-#include <coreplugin/progressmanager/progressmanager.h>
-#include <extensionsystem/pluginmanager.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 <TranslationUnit.h>
-#include <AST.h>
-#include <Scope.h>
-#include <Literals.h>
-#include <Symbols.h>
-#include <Names.h>
-#include <NameVisitor.h>
-#include <TypeVisitor.h>
-#include <ASTVisitor.h>
-#include <Lexer.h>
-#include <Token.h>
-#include <Parser.h>
-#include <Control.h>
-#include <CoreTypes.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>
@@ -81,9 +78,11 @@
#include <QTime>
#include <QTimer>
#include <QtConcurrentMap>
-
#include <QTextBlock>
+#include <QtConcurrentRun>
+#include <QFutureSynchronizer>
+#include <functional>
#include <iostream>
#include <sstream>
diff --git a/src/plugins/cpptools/cppmodelmanager.h b/src/plugins/cpptools/cppmodelmanager.h
index 503c3c5258..1e811c912e 100644
--- a/src/plugins/cpptools/cppmodelmanager.h
+++ b/src/plugins/cpptools/cppmodelmanager.h
@@ -33,10 +33,12 @@
#include "cpptools_global.h"
#include "cpptoolsconstants.h"
#include "ModelManagerInterface.h"
+
#include <projectexplorer/project.h>
+#include <texteditor/basetexteditor.h>
+
#include <cplusplus/CppDocument.h>
#include <cplusplus/PreprocessorClient.h>
-#include <texteditor/basetexteditor.h>
#include <cplusplus/PreprocessorEnvironment.h>
#include <cplusplus/pp-engine.h>
diff --git a/src/plugins/cpptools/cppmodelmanager_test.cpp b/src/plugins/cpptools/cppmodelmanager_test.cpp
index a5eb79914b..34cfd7dd86 100644
--- a/src/plugins/cpptools/cppmodelmanager_test.cpp
+++ b/src/plugins/cpptools/cppmodelmanager_test.cpp
@@ -28,10 +28,12 @@
****************************************************************************/
#include "cpptoolsplugin.h"
-#include "CppDocument.h"
+
#include "cppmodelmanager.h"
#include "modelmanagertesthelper.h"
+#include <cplusplus/CppDocument.h>
+
#include <QtTest>
#include <QDebug>
diff --git a/src/plugins/cpptools/cpppointerdeclarationformatter.cpp b/src/plugins/cpptools/cpppointerdeclarationformatter.cpp
index a40316f290..a0659c7f28 100644
--- a/src/plugins/cpptools/cpppointerdeclarationformatter.cpp
+++ b/src/plugins/cpptools/cpppointerdeclarationformatter.cpp
@@ -30,7 +30,7 @@
#include "cpppointerdeclarationformatter.h"
-#include <AST.h>
+#include <cplusplus/AST.h>
#include <QtGlobal>
#include <QTextCursor>
diff --git a/src/plugins/cpptools/cpppointerdeclarationformatter.h b/src/plugins/cpptools/cpppointerdeclarationformatter.h
index a2d25c559e..4c97242222 100644
--- a/src/plugins/cpptools/cpppointerdeclarationformatter.h
+++ b/src/plugins/cpptools/cpppointerdeclarationformatter.h
@@ -31,13 +31,13 @@
#define CPPPOINTERDECLARATIONFORMATTER_H
#include "cpptools_global.h"
+#include "cpprefactoringchanges.h"
-#include <AST.h>
-#include <ASTVisitor.h>
-#include <Overview.h>
-#include <Symbols.h>
+#include <cplusplus/AST.h>
+#include <cplusplus/ASTVisitor.h>
+#include <cplusplus/Overview.h>
+#include <cplusplus/Symbols.h>
-#include <cpptools/cpprefactoringchanges.h>
#include <utils/changeset.h>
namespace CppTools {
diff --git a/src/plugins/cpptools/cpppointerdeclarationformatter_test.cpp b/src/plugins/cpptools/cpppointerdeclarationformatter_test.cpp
index 092a2efdd2..4d85c08d6a 100644
--- a/src/plugins/cpptools/cpppointerdeclarationformatter_test.cpp
+++ b/src/plugins/cpptools/cpppointerdeclarationformatter_test.cpp
@@ -28,20 +28,21 @@
****************************************************************************/
#include "cpptoolsplugin.h"
+#include "cpppointerdeclarationformatter.h"
+#include "cpprefactoringchanges.h"
+#include "cpptoolsplugin.h"
-#include <AST.h>
-#include <CppDocument.h>
-#include <Symbols.h>
-#include <TranslationUnit.h>
-#include <pp.h>
-
-#include <cpptools/cpppointerdeclarationformatter.h>
-#include <cpptools/cpprefactoringchanges.h>
-#include <cpptools/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>
#include <QDir>
#include <QTextCursor>
diff --git a/src/plugins/cpptools/cppprojectfile.cpp b/src/plugins/cpptools/cppprojectfile.cpp
index c6749355b7..ed4a29a6f7 100644
--- a/src/plugins/cpptools/cppprojectfile.cpp
+++ b/src/plugins/cpptools/cppprojectfile.cpp
@@ -28,8 +28,11 @@
****************************************************************************/
#include "cppprojectfile.h"
-#include <coreplugin/icore.h>
+
#include "cpptoolsconstants.h"
+
+#include <coreplugin/icore.h>
+
#include <QDebug>
namespace CPlusPlus {
diff --git a/src/plugins/cpptools/cppprojectfile.h b/src/plugins/cpptools/cppprojectfile.h
index dff2ddcb93..b03db499d2 100644
--- a/src/plugins/cpptools/cppprojectfile.h
+++ b/src/plugins/cpptools/cppprojectfile.h
@@ -30,10 +30,12 @@
#ifndef CPLUSPLUS_CPPPROJECTFILE_H
#define CPLUSPLUS_CPPPROJECTFILE_H
+#include "cpptools_global.h"
+
+#include <coreplugin/mimedatabase.h>
+
#include <QString>
#include <QMap>
-#include <coreplugin/mimedatabase.h>
-#include "cpptools_global.h"
namespace CPlusPlus {
diff --git a/src/plugins/cpptools/cppqtstyleindenter.cpp b/src/plugins/cpptools/cppqtstyleindenter.cpp
index 1a28f48511..213d0091bf 100644
--- a/src/plugins/cpptools/cppqtstyleindenter.cpp
+++ b/src/plugins/cpptools/cppqtstyleindenter.cpp
@@ -33,6 +33,7 @@
#include "cpptoolssettings.h"
#include "cppcodestylepreferences.h"
#include "cpptoolsconstants.h"
+
#include <texteditor/tabsettings.h>
#include <texteditor/texteditorsettings.h>
diff --git a/src/plugins/cpptools/cpprefactoringchanges.cpp b/src/plugins/cpptools/cpprefactoringchanges.cpp
index 2034ddc105..9a51703695 100644
--- a/src/plugins/cpptools/cpprefactoringchanges.cpp
+++ b/src/plugins/cpptools/cpprefactoringchanges.cpp
@@ -28,18 +28,21 @@
****************************************************************************/
#include "cpprefactoringchanges.h"
+
#include "cppcodestylepreferences.h"
#include "cppqtstyleindenter.h"
+#include "cppcodeformatter.h"
+#include "cppmodelmanager.h"
+#include "cpptoolssettings.h"
+#include "cpptoolsconstants.h"
-#include <TranslationUnit.h>
-#include <AST.h>
-#include <cpptools/cppcodeformatter.h>
-#include <cpptools/cppmodelmanager.h>
-#include <cpptools/cpptoolssettings.h>
-#include <cpptools/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>
diff --git a/src/plugins/cpptools/cpprefactoringchanges.h b/src/plugins/cpptools/cpprefactoringchanges.h
index c1b0e10b7e..81382fa770 100644
--- a/src/plugins/cpptools/cpprefactoringchanges.h
+++ b/src/plugins/cpptools/cpprefactoringchanges.h
@@ -30,15 +30,15 @@
#ifndef CPPREFACTORINGCHANGES_H
#define CPPREFACTORINGCHANGES_H
-#include <ASTfwd.h>
+#include "cpptools_global.h"
#include "ModelManagerInterface.h"
-#include <cplusplus/CppDocument.h>
-#include <cplusplus/LookupContext.h>
-
-#include <cpptools/cpptools_global.h>
#include <texteditor/refactoringchanges.h>
+#include <cplusplus/ASTfwd.h>
+#include <cplusplus/CppDocument.h>
+#include <cplusplus/LookupContext.h>
+
namespace CppTools {
class CppRefactoringChanges;
diff --git a/src/plugins/cpptools/cppsemanticinfo.h b/src/plugins/cpptools/cppsemanticinfo.h
index 69a32e578c..e3ff599bf0 100644
--- a/src/plugins/cpptools/cppsemanticinfo.h
+++ b/src/plugins/cpptools/cppsemanticinfo.h
@@ -32,9 +32,11 @@
#include "cpptools_global.h"
+#include <texteditor/semantichighlighter.h>
+
#include <cplusplus/CppDocument.h>
#include <cplusplus/LookupContext.h>
-#include <texteditor/semantichighlighter.h>
+
#include <QHash>
namespace CppTools {
diff --git a/src/plugins/cpptools/cpptools.pro b/src/plugins/cpptools/cpptools.pro
index 448b72326e..361fb45ad0 100644
--- a/src/plugins/cpptools/cpptools.pro
+++ b/src/plugins/cpptools/cpptools.pro
@@ -1,7 +1,6 @@
TARGET = CppTools
include(../../qtcreatorplugin.pri)
-INCLUDEPATH += .
DEFINES += CPPTOOLS_LIBRARY
HEADERS += completionsettingspage.h \
cppclassesfilter.h \
diff --git a/src/plugins/cpptools/cpptoolseditorsupport.cpp b/src/plugins/cpptools/cpptoolseditorsupport.cpp
index 0d2d72be40..a57a259e37 100644
--- a/src/plugins/cpptools/cpptoolseditorsupport.cpp
+++ b/src/plugins/cpptools/cpptoolseditorsupport.cpp
@@ -28,18 +28,18 @@
****************************************************************************/
#include "cpptoolseditorsupport.h"
+
#include "cppcompletionsupport.h"
#include "cpphighlightingsupport.h"
#include "cppmodelmanager.h"
#include <coreplugin/idocument.h>
-
#include <texteditor/itexteditor.h>
#include <texteditor/basetexteditor.h>
-#include <AST.h>
-#include <ASTVisitor.h>
-#include <TranslationUnit.h>
+#include <cplusplus/AST.h>
+#include <cplusplus/ASTVisitor.h>
+#include <cplusplus/TranslationUnit.h>
#include <QTimer>
diff --git a/src/plugins/cpptools/cpptoolseditorsupport.h b/src/plugins/cpptools/cpptoolseditorsupport.h
index 26b2829798..5d7e157e42 100644
--- a/src/plugins/cpptools/cpptoolseditorsupport.h
+++ b/src/plugins/cpptools/cpptoolseditorsupport.h
@@ -30,16 +30,15 @@
#ifndef CPPTOOLSEDITORSUPPORT_H
#define CPPTOOLSEDITORSUPPORT_H
+#include <cplusplus/CppDocument.h>
+
#include <QObject>
#include <QPointer>
#include <QFuture>
#include <QScopedPointer>
#include <QSharedPointer>
-
#include <QTextCursor>
-#include <cplusplus/CppDocument.h>
-
QT_BEGIN_NAMESPACE
class QTimer;
QT_END_NAMESPACE
diff --git a/src/plugins/cpptools/cpptoolsplugin.cpp b/src/plugins/cpptools/cpptoolsplugin.cpp
index 144c2caebe..9f10ce1968 100644
--- a/src/plugins/cpptools/cpptoolsplugin.cpp
+++ b/src/plugins/cpptools/cpptoolsplugin.cpp
@@ -28,6 +28,7 @@
****************************************************************************/
#include "cpptoolsplugin.h"
+
#include "completionsettingspage.h"
#include "cppfilesettingspage.h"
#include "cppcodestylesettingspage.h"
@@ -41,30 +42,26 @@
#include "cpptoolssettings.h"
#include "cpptoolsreuse.h"
-#include <extensionsystem/pluginmanager.h>
-
-#include <coreplugin/icore.h>
-#include <coreplugin/mimedatabase.h>
-#include <coreplugin/coreconstants.h>
-#include <coreplugin/actionmanager/actionmanager.h>
#include <coreplugin/actionmanager/actioncontainer.h>
+#include <coreplugin/actionmanager/actionmanager.h>
#include <coreplugin/actionmanager/command.h>
-#include <coreplugin/id.h>
+#include <coreplugin/coreconstants.h>
+#include <coreplugin/documentmanager.h>
#include <coreplugin/editormanager/editormanager.h>
+#include <coreplugin/icore.h>
+#include <coreplugin/id.h>
+#include <coreplugin/mimedatabase.h>
#include <coreplugin/progressmanager/progressmanager.h>
#include <coreplugin/vcsmanager.h>
-#include <coreplugin/documentmanager.h>
#include <cppeditor/cppeditorconstants.h>
-#include <texteditor/basetexteditor.h>
-
-#include <QtConcurrentRun>
-#include <QFutureSynchronizer>
-#include <utils/runextensions.h>
-
#include <find/ifindfilter.h>
#include <find/searchresultwindow.h>
+#include <texteditor/basetexteditor.h>
+
+#include <extensionsystem/pluginmanager.h>
#include <utils/filesearch.h>
#include <utils/qtcassert.h>
+#include <utils/runextensions.h>
#include <QtPlugin>
#include <QFileInfo>
@@ -73,6 +70,8 @@
#include <QSettings>
#include <QMenu>
#include <QAction>
+#include <QtConcurrentRun>
+#include <QFutureSynchronizer>
#include <sstream>
diff --git a/src/plugins/cpptools/cpptoolsplugin.h b/src/plugins/cpptools/cpptoolsplugin.h
index d8490f2a14..c5be64e232 100644
--- a/src/plugins/cpptools/cpptoolsplugin.h
+++ b/src/plugins/cpptools/cpptoolsplugin.h
@@ -32,9 +32,10 @@
#include "cpptools_global.h"
-#include <extensionsystem/iplugin.h>
-#include <projectexplorer/projectexplorer.h>
#include <find/ifindfilter.h>
+#include <projectexplorer/projectexplorer.h>
+
+#include <extensionsystem/iplugin.h>
#include <utils/filesearch.h>
#include <QTextDocument>
diff --git a/src/plugins/cpptools/cpptoolsreuse.cpp b/src/plugins/cpptools/cpptoolsreuse.cpp
index a375c3eb46..3c9e0e6367 100644
--- a/src/plugins/cpptools/cpptoolsreuse.cpp
+++ b/src/plugins/cpptools/cpptoolsreuse.cpp
@@ -29,8 +29,8 @@
#include "cpptoolsreuse.h"
-#include <Symbols.h>
-#include <CoreTypes.h>
+#include <cplusplus/Symbols.h>
+#include <cplusplus/CoreTypes.h>
#include <cplusplus/Overview.h>
#include <cplusplus/LookupContext.h>
diff --git a/src/plugins/cpptools/cpptoolssettings.cpp b/src/plugins/cpptools/cpptoolssettings.cpp
index df432831d1..605487ffcb 100644
--- a/src/plugins/cpptools/cpptoolssettings.cpp
+++ b/src/plugins/cpptools/cpptoolssettings.cpp
@@ -28,20 +28,22 @@
****************************************************************************/
#include "cpptoolssettings.h"
+
#include "cpptoolsconstants.h"
#include "cppcodestylepreferences.h"
#include "cppcodestylepreferencesfactory.h"
#include "commentssettings.h"
#include "completionsettingspage.h"
-#include <texteditor/texteditorsettings.h>
-#include <texteditor/tabsettings.h>
+#include <coreplugin/icore.h>
#include <texteditor/codestylepool.h>
-#include <extensionsystem/pluginmanager.h>
+#include <texteditor/tabsettings.h>
+#include <texteditor/texteditorsettings.h>
-#include <utils/settingsutils.h>
+#include <extensionsystem/pluginmanager.h>
#include <utils/qtcassert.h>
-#include <coreplugin/icore.h>
+#include <utils/settingsutils.h>
+
#include <QSettings>
static const char idKey[] = "CppGlobal";
diff --git a/src/plugins/cpptools/doxygengenerator.cpp b/src/plugins/cpptools/doxygengenerator.cpp
index c0526ea732..2133e70145 100644
--- a/src/plugins/cpptools/doxygengenerator.cpp
+++ b/src/plugins/cpptools/doxygengenerator.cpp
@@ -29,15 +29,15 @@
#include "doxygengenerator.h"
-#include <cplusplus/SimpleLexer.h>
-#include <cplusplus/BackwardsScanner.h>
-#include <cplusplus/Token.h>
-#include <cplusplus/TranslationUnit.h>
#include <cplusplus/AST.h>
-#include <cplusplus/Symbols.h>
+#include <cplusplus/BackwardsScanner.h>
#include <cplusplus/CppDocument.h>
-#include <cplusplus/Scope.h>
#include <cplusplus/LookupContext.h>
+#include <cplusplus/Scope.h>
+#include <cplusplus/SimpleLexer.h>
+#include <cplusplus/Symbols.h>
+#include <cplusplus/Token.h>
+#include <cplusplus/TranslationUnit.h>
#include <utils/qtcassert.h>
diff --git a/src/plugins/cpptools/insertionpointlocator.cpp b/src/plugins/cpptools/insertionpointlocator.cpp
index 4c9cc88401..86053a70ea 100644
--- a/src/plugins/cpptools/insertionpointlocator.cpp
+++ b/src/plugins/cpptools/insertionpointlocator.cpp
@@ -28,19 +28,20 @@
****************************************************************************/
#include "insertionpointlocator.h"
+
#include "cpptoolsreuse.h"
#include "cpprefactoringchanges.h"
#include "symbolfinder.h"
-#include <AST.h>
-#include <ASTVisitor.h>
-#include <TranslationUnit.h>
-#include <Literals.h>
-#include <Symbols.h>
-
#include <coreplugin/icore.h>
#include <coreplugin/mimedatabase.h>
+#include <cplusplus/AST.h>
+#include <cplusplus/ASTVisitor.h>
+#include <cplusplus/Literals.h>
+#include <cplusplus/Symbols.h>
+#include <cplusplus/TranslationUnit.h>
+
#include <utils/qtcassert.h>
using namespace CPlusPlus;
diff --git a/src/plugins/cpptools/insertionpointlocator.h b/src/plugins/cpptools/insertionpointlocator.h
index 25ce9c0351..3315ef5036 100644
--- a/src/plugins/cpptools/insertionpointlocator.h
+++ b/src/plugins/cpptools/insertionpointlocator.h
@@ -31,12 +31,11 @@
#define INSERTIONPOINTLOCATOR_H
#include "cpptools_global.h"
+#include "cpprefactoringchanges.h"
-#include <ASTfwd.h>
-#include <CPlusPlusForwardDeclarations.h>
-
+#include <cplusplus/ASTfwd.h>
+#include <cplusplus/CPlusPlusForwardDeclarations.h>
#include <cplusplus/CppDocument.h>
-#include <cpptools/cpprefactoringchanges.h>
namespace CppTools {
diff --git a/src/plugins/cpptools/searchsymbols.cpp b/src/plugins/cpptools/searchsymbols.cpp
index fe2851c370..097346cfaa 100644
--- a/src/plugins/cpptools/searchsymbols.cpp
+++ b/src/plugins/cpptools/searchsymbols.cpp
@@ -29,10 +29,11 @@
#include "searchsymbols.h"
-#include <Literals.h>
-#include <Scope.h>
-#include <Names.h>
+#include <cplusplus/Literals.h>
#include <cplusplus/LookupContext.h>
+#include <cplusplus/Names.h>
+#include <cplusplus/Scope.h>
+
#include <QDebug>
using namespace CPlusPlus;
diff --git a/src/plugins/cpptools/searchsymbols.h b/src/plugins/cpptools/searchsymbols.h
index fe019b8dbc..ed2d0cbd42 100644
--- a/src/plugins/cpptools/searchsymbols.h
+++ b/src/plugins/cpptools/searchsymbols.h
@@ -31,14 +31,13 @@
#define SEARCHSYMBOLS_H
#include "cpptools_global.h"
-
#include "cppindexingsupport.h"
#include <cplusplus/CppDocument.h>
#include <cplusplus/Icons.h>
#include <cplusplus/Overview.h>
-#include <Symbols.h>
-#include <SymbolVisitor.h>
+#include <cplusplus/SymbolVisitor.h>
+#include <cplusplus/Symbols.h>
#include <QIcon>
#include <QMetaType>
diff --git a/src/plugins/cpptools/symbolfinder.cpp b/src/plugins/cpptools/symbolfinder.cpp
index 8ac16e40a7..d3ac42bb80 100644
--- a/src/plugins/cpptools/symbolfinder.cpp
+++ b/src/plugins/cpptools/symbolfinder.cpp
@@ -33,17 +33,17 @@
#include "symbolfinder.h"
-#include <Symbols.h>
-#include <Names.h>
-#include <Literals.h>
-#include <SymbolVisitor.h>
-#include <Control.h>
-#include <LookupContext.h>
-
-#include <QDebug>
+#include <cplusplus/Control.h>
+#include <cplusplus/Literals.h>
+#include <cplusplus/LookupContext.h>
+#include <cplusplus/Names.h>
+#include <cplusplus/SymbolVisitor.h>
+#include <cplusplus/Symbols.h>
#include <utils/qtcassert.h>
+#include <QDebug>
+
#include <algorithm>
#include <utility>
diff --git a/src/plugins/cpptools/symbolfinder.h b/src/plugins/cpptools/symbolfinder.h
index 655c1a65cb..a925988fa2 100644
--- a/src/plugins/cpptools/symbolfinder.h
+++ b/src/plugins/cpptools/symbolfinder.h
@@ -32,8 +32,8 @@
#include "cpptools_global.h"
-#include <CppDocument.h>
-#include <CPlusPlusForwardDeclarations.h>
+#include <cplusplus/CppDocument.h>
+#include <cplusplus/CPlusPlusForwardDeclarations.h>
#include <QHash>
#include <QStringList>
diff --git a/src/plugins/cpptools/symbolsfindfilter.cpp b/src/plugins/cpptools/symbolsfindfilter.cpp
index bc352a30f3..97b9ae68aa 100644
--- a/src/plugins/cpptools/symbolsfindfilter.cpp
+++ b/src/plugins/cpptools/symbolsfindfilter.cpp
@@ -32,14 +32,15 @@
#include "cppmodelmanager.h"
#include "cpptoolsconstants.h"
-#include <coreplugin/progressmanager/progressmanager.h>
-#include <coreplugin/progressmanager/futureprogress.h>
#include <coreplugin/icore.h>
+#include <coreplugin/progressmanager/futureprogress.h>
+#include <coreplugin/progressmanager/progressmanager.h>
#include <find/textfindconstants.h>
-#include <utils/runextensions.h>
+#include <projectexplorer/project.h>
#include <projectexplorer/projectexplorer.h>
#include <projectexplorer/session.h>
-#include <projectexplorer/project.h>
+
+#include <utils/runextensions.h>
#include <utils/qtcassert.h>
#include <QSet>
diff --git a/src/plugins/cpptools/uicodecompletionsupport.h b/src/plugins/cpptools/uicodecompletionsupport.h
index 5a1d8883de..10e0752b42 100644
--- a/src/plugins/cpptools/uicodecompletionsupport.h
+++ b/src/plugins/cpptools/uicodecompletionsupport.h
@@ -33,7 +33,6 @@
#include "cpptools_global.h"
#include "abstracteditorsupport.h"
-
#include "ModelManagerInterface.h"
#include <QDateTime>
diff --git a/src/plugins/designer/codemodelhelpers.cpp b/src/plugins/designer/codemodelhelpers.cpp
index 87f46ae957..19ec99ad97 100644
--- a/src/plugins/designer/codemodelhelpers.cpp
+++ b/src/plugins/designer/codemodelhelpers.cpp
@@ -37,7 +37,7 @@
#include <cplusplus/Literals.h>
#include <cplusplus/Scope.h>
#include <cplusplus/Control.h>
-#include <SymbolVisitor.h>
+#include <cplusplus/SymbolVisitor.h>
#include <coreplugin/icore.h>
#include <projectexplorer/projectexplorer.h>
diff --git a/src/plugins/glsleditor/glslautocompleter.cpp b/src/plugins/glsleditor/glslautocompleter.cpp
index 2289e66bc0..22e2cb0cda 100644
--- a/src/plugins/glsleditor/glslautocompleter.cpp
+++ b/src/plugins/glsleditor/glslautocompleter.cpp
@@ -29,7 +29,7 @@
#include "glslautocompleter.h"
-#include <Token.h>
+#include <cplusplus/Token.h>
#include <cplusplus/SimpleLexer.h>
#include <cplusplus/MatchingText.h>
#include <cplusplus/BackwardsScanner.h>
diff --git a/src/plugins/todo/cpptodoitemsscanner.cpp b/src/plugins/todo/cpptodoitemsscanner.cpp
index aea03a54a3..7329055ecc 100644
--- a/src/plugins/todo/cpptodoitemsscanner.cpp
+++ b/src/plugins/todo/cpptodoitemsscanner.cpp
@@ -31,7 +31,7 @@
#include "cpptodoitemsscanner.h"
#include <projectexplorer/project.h>
-#include <TranslationUnit.h>
+#include <cplusplus/TranslationUnit.h>
namespace Todo {
namespace Internal {
diff --git a/src/plugins/valgrind/callgrindtool.cpp b/src/plugins/valgrind/callgrindtool.cpp
index c7790a997b..48f5f1d7f5 100644
--- a/src/plugins/valgrind/callgrindtool.cpp
+++ b/src/plugins/valgrind/callgrindtool.cpp
@@ -90,7 +90,7 @@
#include <QVBoxLayout>
// shared/cplusplus includes
-#include <Symbols.h>
+#include <cplusplus/Symbols.h>
using namespace Analyzer;
using namespace Core;
diff --git a/tests/auto/cplusplus/ast/tst_ast.cpp b/tests/auto/cplusplus/ast/tst_ast.cpp
index e1da51d9c8..adcd508f79 100644
--- a/tests/auto/cplusplus/ast/tst_ast.cpp
+++ b/tests/auto/cplusplus/ast/tst_ast.cpp
@@ -30,10 +30,10 @@
#include <QtTest>
#include <QDebug>
-#include <Control.h>
-#include <Literals.h>
-#include <Parser.h>
-#include <AST.h>
+#include <cplusplus/Control.h>
+#include <cplusplus/Literals.h>
+#include <cplusplus/Parser.h>
+#include <cplusplus/AST.h>
//TESTED_COMPONENT=src/libs/cplusplus
using namespace CPlusPlus;
diff --git a/tests/auto/cplusplus/checksymbols/tst_checksymbols.cpp b/tests/auto/cplusplus/checksymbols/tst_checksymbols.cpp
index de6435677e..3eafda6742 100644
--- a/tests/auto/cplusplus/checksymbols/tst_checksymbols.cpp
+++ b/tests/auto/cplusplus/checksymbols/tst_checksymbols.cpp
@@ -27,8 +27,8 @@
**
****************************************************************************/
-#include <CppDocument.h>
-#include <pp.h>
+#include <cplusplus/CppDocument.h>
+#include <cplusplus/pp.h>
#include <cpptools/cppchecksymbols.h>
#include <cpptools/cppsemanticinfo.h>
diff --git a/tests/auto/cplusplus/cxx11/tst_cxx11.cpp b/tests/auto/cplusplus/cxx11/tst_cxx11.cpp
index 51a9f05aeb..1b1cea4248 100644
--- a/tests/auto/cplusplus/cxx11/tst_cxx11.cpp
+++ b/tests/auto/cplusplus/cxx11/tst_cxx11.cpp
@@ -27,12 +27,13 @@
**
****************************************************************************/
+#include <cplusplus/CPlusPlus.h>
+#include <cplusplus/CppDocument.h>
+#include <cplusplus/LookupContext.h>
+
#include <QtTest>
#include <QObject>
#include <QFile>
-#include <CPlusPlus.h>
-#include <CppDocument.h>
-#include <LookupContext.h>
//TESTED_COMPONENT=src/libs/cplusplus
using namespace CPlusPlus;
diff --git a/tests/auto/cplusplus/findusages/tst_findusages.cpp b/tests/auto/cplusplus/findusages/tst_findusages.cpp
index 339d852ca0..43ec597e33 100644
--- a/tests/auto/cplusplus/findusages/tst_findusages.cpp
+++ b/tests/auto/cplusplus/findusages/tst_findusages.cpp
@@ -31,17 +31,17 @@
#include <QObject>
#include <QList>
-#include <AST.h>
-#include <ASTVisitor.h>
-#include <TranslationUnit.h>
-#include <CppDocument.h>
-#include <FindUsages.h>
-#include <Literals.h>
-#include <LookupContext.h>
-#include <Name.h>
-#include <ResolveExpression.h>
-#include <Symbols.h>
-#include <Overview.h>
+#include <cplusplus/AST.h>
+#include <cplusplus/ASTVisitor.h>
+#include <cplusplus/CppDocument.h>
+#include <cplusplus/FindUsages.h>
+#include <cplusplus/Literals.h>
+#include <cplusplus/LookupContext.h>
+#include <cplusplus/Name.h>
+#include <cplusplus/Overview.h>
+#include <cplusplus/ResolveExpression.h>
+#include <cplusplus/Symbols.h>
+#include <cplusplus/TranslationUnit.h>
//TESTED_COMPONENT=src/libs/cplusplus
using namespace CPlusPlus;
diff --git a/tests/auto/cplusplus/lexer/tst_lexer.cpp b/tests/auto/cplusplus/lexer/tst_lexer.cpp
index cc2cfb4e1e..1dc7383d72 100644
--- a/tests/auto/cplusplus/lexer/tst_lexer.cpp
+++ b/tests/auto/cplusplus/lexer/tst_lexer.cpp
@@ -27,12 +27,12 @@
**
****************************************************************************/
+#include <cplusplus/Token.h>
+#include <cplusplus/SimpleLexer.h>
+
#include <QtTest>
#include <QDebug>
-#include <Token.h>
-#include <SimpleLexer.h>
-
Q_DECLARE_METATYPE(QList<unsigned>)
//TESTED_COMPONENT=src/libs/cplusplus
diff --git a/tests/auto/cplusplus/lookup/tst_lookup.cpp b/tests/auto/cplusplus/lookup/tst_lookup.cpp
index ad87ac0884..a0df89de24 100644
--- a/tests/auto/cplusplus/lookup/tst_lookup.cpp
+++ b/tests/auto/cplusplus/lookup/tst_lookup.cpp
@@ -30,16 +30,16 @@
#include <QtTest>
#include <QObject>
-#include <AST.h>
-#include <ASTVisitor.h>
-#include <TranslationUnit.h>
-#include <CppDocument.h>
-#include <Literals.h>
-#include <LookupContext.h>
-#include <Name.h>
-#include <ResolveExpression.h>
-#include <Symbols.h>
-#include <Overview.h>
+#include <cplusplus/AST.h>
+#include <cplusplus/ASTVisitor.h>
+#include <cplusplus/CppDocument.h>
+#include <cplusplus/Literals.h>
+#include <cplusplus/LookupContext.h>
+#include <cplusplus/Name.h>
+#include <cplusplus/Overview.h>
+#include <cplusplus/ResolveExpression.h>
+#include <cplusplus/Symbols.h>
+#include <cplusplus/TranslationUnit.h>
//TESTED_COMPONENT=src/libs/cplusplus
using namespace CPlusPlus;
diff --git a/tests/auto/cplusplus/misc/tst_misc.cpp b/tests/auto/cplusplus/misc/tst_misc.cpp
index 47c17fc07b..429a623780 100644
--- a/tests/auto/cplusplus/misc/tst_misc.cpp
+++ b/tests/auto/cplusplus/misc/tst_misc.cpp
@@ -27,13 +27,12 @@
**
****************************************************************************/
-#include <CppDocument.h>
+#include <cplusplus/CppDocument.h>
+#include <cplusplus/findcdbbreakpoint.h>
#include <QtTest>
#include <QDebug>
-#include <findcdbbreakpoint.h>
-
//TESTED_COMPONENT=src/libs/cplusplus
using namespace CPlusPlus;
diff --git a/tests/auto/cplusplus/preprocessor/tst_preprocessor.cpp b/tests/auto/cplusplus/preprocessor/tst_preprocessor.cpp
index 2a985f5a09..f62f804070 100644
--- a/tests/auto/cplusplus/preprocessor/tst_preprocessor.cpp
+++ b/tests/auto/cplusplus/preprocessor/tst_preprocessor.cpp
@@ -27,8 +27,9 @@
**
****************************************************************************/
+#include <cplusplus/pp.h>
+
#include <QtTest>
-#include <pp.h>
#include <QHash>
//TESTED_COMPONENT=src/libs/cplusplus
diff --git a/tests/auto/cplusplus/semantic/tst_semantic.cpp b/tests/auto/cplusplus/semantic/tst_semantic.cpp
index fa17702461..b8d82010e2 100644
--- a/tests/auto/cplusplus/semantic/tst_semantic.cpp
+++ b/tests/auto/cplusplus/semantic/tst_semantic.cpp
@@ -32,21 +32,21 @@
#include <QTextDocument>
#include <QTextCursor>
-#include <Control.h>
-#include <Parser.h>
-#include <AST.h>
-#include <ASTVisitor.h>
-#include <Bind.h>
-#include <Scope.h>
-#include <Symbols.h>
-#include <CoreTypes.h>
-#include <Names.h>
-#include <Literals.h>
-#include <DiagnosticClient.h>
-#include <DeprecatedGenTemplateInstance.h>
-#include <Overview.h>
-#include <ExpressionUnderCursor.h>
-#include <Names.h>
+#include <cplusplus/AST.h>
+#include <cplusplus/ASTVisitor.h>
+#include <cplusplus/Bind.h>
+#include <cplusplus/Control.h>
+#include <cplusplus/CoreTypes.h>
+#include <cplusplus/DeprecatedGenTemplateInstance.h>
+#include <cplusplus/DiagnosticClient.h>
+#include <cplusplus/ExpressionUnderCursor.h>
+#include <cplusplus/Literals.h>
+#include <cplusplus/Names.h>
+#include <cplusplus/Names.h>
+#include <cplusplus/Overview.h>
+#include <cplusplus/Parser.h>
+#include <cplusplus/Scope.h>
+#include <cplusplus/Symbols.h>
//TESTED_COMPONENT=src/libs/cplusplus
diff --git a/tests/auto/cplusplus/shared/shared.pri b/tests/auto/cplusplus/shared/shared.pri
index f9afd51916..9f84530427 100644
--- a/tests/auto/cplusplus/shared/shared.pri
+++ b/tests/auto/cplusplus/shared/shared.pri
@@ -1,7 +1,5 @@
include(../../qttest.pri)
DEFINES+=CPLUSPLUS_BUILD_STATIC_LIB
-INCLUDEPATH += $$IDE_SOURCE_TREE/src/libs/cplusplus
-INCLUDEPATH += $$IDE_SOURCE_TREE/src/libs/3rdparty/cplusplus
include($$IDE_SOURCE_TREE/src/plugins/cpptools/cpptools.pri)
include($$IDE_SOURCE_TREE/src/rpath.pri)
diff --git a/tests/auto/cplusplus/typeprettyprinter/tst_typeprettyprinter.cpp b/tests/auto/cplusplus/typeprettyprinter/tst_typeprettyprinter.cpp
index f5bc5e4674..4f3c430a96 100644
--- a/tests/auto/cplusplus/typeprettyprinter/tst_typeprettyprinter.cpp
+++ b/tests/auto/cplusplus/typeprettyprinter/tst_typeprettyprinter.cpp
@@ -27,17 +27,17 @@
**
****************************************************************************/
+#include <cplusplus/CoreTypes.h>
+#include <cplusplus/FullySpecifiedType.h>
+#include <cplusplus/Literals.h>
+#include <cplusplus/Overview.h>
+#include <cplusplus/Symbols.h>
+#include <cplusplus/Type.h>
+#include <cplusplus/TypePrettyPrinter.h>
+
#include <QObject>
#include <QtTest>
-#include <CoreTypes.h>
-#include <FullySpecifiedType.h>
-#include <Literals.h>
-#include <Overview.h>
-#include <Symbols.h>
-#include <Type.h>
-#include <TypePrettyPrinter.h>
-
//TESTED_COMPONENT=src/libs/cplusplus
using namespace CPlusPlus;
diff --git a/tests/auto/debugger/dumpers.pro b/tests/auto/debugger/dumpers.pro
index 3b6871ab35..acb4273d2b 100644
--- a/tests/auto/debugger/dumpers.pro
+++ b/tests/auto/debugger/dumpers.pro
@@ -6,8 +6,6 @@ DUMPERDIR = $$IDE_SOURCE_TREE/share/qtcreator/dumper
# To access the std::type rewriter
DEFINES += CPLUSPLUS_BUILD_STATIC_LIB
-INCLUDEPATH += $$IDE_SOURCE_TREE/src/libs/cplusplus
-INCLUDEPATH += $$IDE_SOURCE_TREE/src/libs/3rdparty/cplusplus
include($$IDE_SOURCE_TREE/src/plugins/cpptools/cpptools.pri)
include($$IDE_SOURCE_TREE/src/rpath.pri)
diff --git a/tests/auto/debugger/tst_dumpers.cpp b/tests/auto/debugger/tst_dumpers.cpp
index 201b9e33f9..2268ab5495 100644
--- a/tests/auto/debugger/tst_dumpers.cpp
+++ b/tests/auto/debugger/tst_dumpers.cpp
@@ -31,7 +31,7 @@
#include "watchdata.h"
#include "watchutils.h"
-#include <CppRewriter.h>
+#include <cplusplus/CppRewriter.h>
#include <projectexplorer/abstractmsvctoolchain.h>
#include <utils/environment.h>
diff --git a/tests/manual/cplusplus-frontend/cplusplus-frontend.cpp b/tests/manual/cplusplus-frontend/cplusplus-frontend.cpp
index e964b78370..ff5c23eef3 100644
--- a/tests/manual/cplusplus-frontend/cplusplus-frontend.cpp
+++ b/tests/manual/cplusplus-frontend/cplusplus-frontend.cpp
@@ -27,18 +27,18 @@
**
****************************************************************************/
-#include <AST.h>
-#include <ASTVisitor.h>
-#include <ASTPatternBuilder.h>
-#include <ASTMatcher.h>
-#include <Control.h>
-#include <Scope.h>
-#include <TranslationUnit.h>
-#include <Literals.h>
-#include <Symbols.h>
-#include <Names.h>
-#include <CoreTypes.h>
-#include <CppDocument.h>
+#include <cplusplus/AST.h>
+#include <cplusplus/ASTMatcher.h>
+#include <cplusplus/ASTPatternBuilder.h>
+#include <cplusplus/ASTVisitor.h>
+#include <cplusplus/Control.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>
+#include <cplusplus/TranslationUnit.h>
#include "cplusplus-tools-utils.h"
diff --git a/tests/manual/preprocessor/main.cpp b/tests/manual/preprocessor/main.cpp
index c5fe4ad7aa..e26981465a 100644
--- a/tests/manual/preprocessor/main.cpp
+++ b/tests/manual/preprocessor/main.cpp
@@ -27,9 +27,9 @@
**
****************************************************************************/
-#include <PreprocessorEnvironment.h>
-#include <PreprocessorClient.h>
-#include <pp.h>
+#include <cplusplus/PreprocessorEnvironment.h>
+#include <cplusplus/PreprocessorClient.h>
+#include <cplusplus/pp.h>
#include <QCoreApplication>
#include <QFile>
diff --git a/tests/tools/cplusplus-ast2png/cplusplus-ast2png.cpp b/tests/tools/cplusplus-ast2png/cplusplus-ast2png.cpp
index 900b0169b6..371ac870d9 100644
--- a/tests/tools/cplusplus-ast2png/cplusplus-ast2png.cpp
+++ b/tests/tools/cplusplus-ast2png/cplusplus-ast2png.cpp
@@ -27,20 +27,20 @@
**
****************************************************************************/
-#include <AST.h>
-#include <ASTVisitor.h>
-#include <ASTPatternBuilder.h>
-#include <ASTMatcher.h>
-#include <Control.h>
-#include <Scope.h>
-#include <TranslationUnit.h>
-#include <Literals.h>
-#include <Symbols.h>
-#include <Names.h>
-#include <CoreTypes.h>
-#include <CppDocument.h>
-#include <SymbolVisitor.h>
-#include <Overview.h>
+#include <cplusplus/AST.h>
+#include <cplusplus/ASTMatcher.h>
+#include <cplusplus/ASTPatternBuilder.h>
+#include <cplusplus/ASTVisitor.h>
+#include <cplusplus/Control.h>
+#include <cplusplus/CoreTypes.h>
+#include <cplusplus/CppDocument.h>
+#include <cplusplus/Literals.h>
+#include <cplusplus/Names.h>
+#include <cplusplus/Overview.h>
+#include <cplusplus/Scope.h>
+#include <cplusplus/SymbolVisitor.h>
+#include <cplusplus/Symbols.h>
+#include <cplusplus/TranslationUnit.h>
#include "cplusplus-tools-utils.h"