diff options
| author | Marco Bubke <marco.bubke@qt.io> | 2018-09-03 16:10:43 +0200 |
|---|---|---|
| committer | Marco Bubke <marco.bubke@qt.io> | 2018-09-10 09:31:32 +0000 |
| commit | 3abaf647d0c632a4dfcb00d9ad2d1ffe66e014d9 (patch) | |
| tree | 5efed90dedcb7b960cfa4d6ceb9b1aeb3e1a662b /src/plugins/cpptools/cppmodelmanager.h | |
| parent | 59e734d9dae00ce2f9a00e8d197f81e7ee450b03 (diff) | |
| download | qt-creator-3abaf647d0c632a4dfcb00d9ad2d1ffe66e014d9.tar.gz | |
Add system include path to HeaderPath and merge ProjectPartHeaderPath
System include paths are appended after other includes by the compiler. So
we should set them as system includes and not as normal includes. Otherwise
we change the include order. Headers in system include paths are not
cluttering the screen with unwanted warning and by the way improve
performance too.
ProjectPartHeaderPath was a dopperganger of HeaderPath, so we merged them.
Change-Id: I7c394b4098b697de79761499ffcd5913cc02d652
Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
Diffstat (limited to 'src/plugins/cpptools/cppmodelmanager.h')
| -rw-r--r-- | src/plugins/cpptools/cppmodelmanager.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/plugins/cpptools/cppmodelmanager.h b/src/plugins/cpptools/cppmodelmanager.h index aad7333073..29bad9f041 100644 --- a/src/plugins/cpptools/cppmodelmanager.h +++ b/src/plugins/cpptools/cppmodelmanager.h @@ -30,7 +30,7 @@ #include "refactoringengineinterface.h" #include "projectinfo.h" #include "projectpart.h" -#include "projectpartheaderpath.h" +#include <projectexplorer/headerpath.h> #include <cplusplus/cppmodelmanagerbase.h> #include <coreplugin/find/ifindfilter.h> @@ -189,10 +189,10 @@ public: QStringList projectFiles(); - ProjectPartHeaderPaths headerPaths(); + ProjectExplorer::HeaderPaths headerPaths(); // Use this *only* for auto tests - void setHeaderPaths(const ProjectPartHeaderPaths &headerPaths); + void setHeaderPaths(const ProjectExplorer::HeaderPaths &headerPaths); ProjectExplorer::Macros definedMacros(); @@ -274,7 +274,7 @@ private: void ensureUpdated(); QStringList internalProjectFiles() const; - ProjectPartHeaderPaths internalHeaderPaths() const; + ProjectExplorer::HeaderPaths internalHeaderPaths() const; ProjectExplorer::Macros internalDefinedMacros() const; void dumpModelManagerConfiguration(const QString &logFileId); |
