forked from qt-creator/qt-creator
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>
This commit is contained in:
@@ -46,7 +46,7 @@ struct CPPTOOLS_EXPORT Utils
|
||||
static QString toString(const QDateTime &dateTime);
|
||||
static QString toString(CPlusPlus::Document::CheckMode checkMode);
|
||||
static QString toString(CPlusPlus::Document::DiagnosticMessage::Level level);
|
||||
static QString toString(ProjectPartHeaderPath::Type type);
|
||||
static QString toString(ProjectExplorer::IncludePathType type);
|
||||
static QString toString(CppTools::ProjectPart::LanguageVersion languageVersion);
|
||||
static QString toString(CppTools::ProjectPart::LanguageExtensions languageExtension);
|
||||
static QString toString(CppTools::ProjectPart::QtVersion qtVersion);
|
||||
@@ -57,7 +57,7 @@ struct CPPTOOLS_EXPORT Utils
|
||||
static QString partsForFile(const QString &fileName);
|
||||
static QString unresolvedFileNameWithDelimiters(const CPlusPlus::Document::Include &include);
|
||||
static QString pathListToString(const QStringList &pathList);
|
||||
static QString pathListToString(const ProjectPartHeaderPaths &pathList);
|
||||
static QString pathListToString(const ProjectExplorer::HeaderPaths &pathList);
|
||||
static QList<CPlusPlus::Document::Ptr> snapshotToList(const CPlusPlus::Snapshot &snapshot);
|
||||
};
|
||||
|
||||
@@ -73,7 +73,7 @@ public:
|
||||
const QString &title,
|
||||
bool isGlobalSnapshot = false);
|
||||
void dumpWorkingCopy(const CppTools::WorkingCopy &workingCopy);
|
||||
void dumpMergedEntities(const ProjectPartHeaderPaths &mergedHeaderPaths,
|
||||
void dumpMergedEntities(const ProjectExplorer::HeaderPaths &mergedHeaderPaths,
|
||||
const QByteArray &mergedMacros);
|
||||
|
||||
private:
|
||||
|
||||
Reference in New Issue
Block a user