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:
@@ -185,7 +185,7 @@ public:
|
||||
int position,
|
||||
TextEditor::AssistReason reason,
|
||||
const CPlusPlus::Snapshot &snapshot,
|
||||
const ProjectPartHeaderPaths &headerPaths,
|
||||
const ProjectExplorer::HeaderPaths &headerPaths,
|
||||
const CPlusPlus::LanguageFeatures &features)
|
||||
: TextEditor::AssistInterface(textDocument, position, filePath, reason)
|
||||
, m_gotCppSpecifics(true)
|
||||
@@ -195,7 +195,7 @@ public:
|
||||
{}
|
||||
|
||||
const CPlusPlus::Snapshot &snapshot() const { getCppSpecifics(); return m_snapshot; }
|
||||
const ProjectPartHeaderPaths &headerPaths() const
|
||||
const ProjectExplorer::HeaderPaths &headerPaths() const
|
||||
{ getCppSpecifics(); return m_headerPaths; }
|
||||
CPlusPlus::LanguageFeatures languageFeatures() const
|
||||
{ getCppSpecifics(); return m_languageFeatures; }
|
||||
@@ -207,7 +207,7 @@ private:
|
||||
mutable bool m_gotCppSpecifics;
|
||||
WorkingCopy m_workingCopy;
|
||||
mutable CPlusPlus::Snapshot m_snapshot;
|
||||
mutable ProjectPartHeaderPaths m_headerPaths;
|
||||
mutable ProjectExplorer::HeaderPaths m_headerPaths;
|
||||
mutable CPlusPlus::LanguageFeatures m_languageFeatures;
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user