aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/cpptools/cppcompletionassist.h
diff options
context:
space:
mode:
authorErik Verbruggen <erik.verbruggen@digia.com>2014-06-25 17:23:19 +0200
committerErik Verbruggen <erik.verbruggen@digia.com>2014-07-04 13:51:36 +0200
commit3d33886e53722ae7e2f33741085fe01c1a1178f8 (patch)
tree132429c7f2acac09a906cc549dcbd93fe8c90e70 /src/plugins/cpptools/cppcompletionassist.h
parent76152088e93258cdd025f49902270a7c53757633 (diff)
C++: fix include/framework path handling.
Instead of having two lists of paths, now only one list is used where both include paths and framework paths can be mixed. This reflects the way the compiler is invoked, and retains the (correct) search order. Task-number: QTCREATORBUG-11599 Change-Id: I373953e3e305df5b7a0d10920e12d146584adf9f Reviewed-by: Nikolai Kosjar <nikolai.kosjar@digia.com>
Diffstat (limited to 'src/plugins/cpptools/cppcompletionassist.h')
-rw-r--r--src/plugins/cpptools/cppcompletionassist.h13
1 files changed, 5 insertions, 8 deletions
diff --git a/src/plugins/cpptools/cppcompletionassist.h b/src/plugins/cpptools/cppcompletionassist.h
index ed56a780c8..4ecabc9811 100644
--- a/src/plugins/cpptools/cppcompletionassist.h
+++ b/src/plugins/cpptools/cppcompletionassist.h
@@ -191,22 +191,20 @@ public:
const QString &fileName,
TextEditor::AssistReason reason,
const CPlusPlus::Snapshot &snapshot,
- const QStringList &includePaths,
- const QStringList &frameworkPaths)
+ const ProjectPart::HeaderPaths &headerPaths)
: TextEditor::DefaultAssistInterface(textDocument, position, fileName, reason)
, m_editor(0)
, m_isObjCEnabled(false)
, m_gotCppSpecifics(true)
, m_snapshot(snapshot)
- , m_includePaths(includePaths)
- , m_frameworkPaths(frameworkPaths)
+ , m_headerPaths(headerPaths)
{}
bool isObjCEnabled() const { return m_isObjCEnabled; }
const CPlusPlus::Snapshot &snapshot() const { getCppSpecifics(); return m_snapshot; }
- const QStringList &includePaths() const { getCppSpecifics(); return m_includePaths; }
- const QStringList &frameworkPaths() const { getCppSpecifics(); return m_frameworkPaths; }
+ const ProjectPart::HeaderPaths &headerPaths() const
+ { getCppSpecifics(); return m_headerPaths; }
private:
void getCppSpecifics() const;
@@ -216,8 +214,7 @@ private:
mutable bool m_gotCppSpecifics;
CppModelManagerInterface::WorkingCopy m_workingCopy;
mutable CPlusPlus::Snapshot m_snapshot;
- mutable QStringList m_includePaths;
- mutable QStringList m_frameworkPaths;
+ mutable ProjectPart::HeaderPaths m_headerPaths;
};
} // Internal