summaryrefslogtreecommitdiff
path: root/src/plugins/cpptools/cppmodelmanager.h
diff options
context:
space:
mode:
authorNikolai Kosjar <nikolai.kosjar@digia.com>2013-06-06 09:27:28 +0200
committerErik Verbruggen <erik.verbruggen@digia.com>2013-06-11 15:57:10 +0200
commitf3186690bd39020c85cdee5a5ea6996011ad7158 (patch)
treeec2deefbf528556f6c3052d7e4200bd229957ebd /src/plugins/cpptools/cppmodelmanager.h
parente3bc84c4143498b20f702c0d3b4b0b75a99ffe0e (diff)
downloadqt-creator-f3186690bd39020c85cdee5a5ea6996011ad7158.tar.gz
CppEditor: Improve finding position for new includes
...by detecting include groups (separated by new lines, include types and same dir prefix). Task-number: QTCREATORBUG-9317 Change-Id: I73e80fdc715104901cb2d4f5b15b4cab5d04d305 Reviewed-by: Erik Verbruggen <erik.verbruggen@digia.com>
Diffstat (limited to 'src/plugins/cpptools/cppmodelmanager.h')
-rw-r--r--src/plugins/cpptools/cppmodelmanager.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/plugins/cpptools/cppmodelmanager.h b/src/plugins/cpptools/cppmodelmanager.h
index 08328b316b..7691daeab3 100644
--- a/src/plugins/cpptools/cppmodelmanager.h
+++ b/src/plugins/cpptools/cppmodelmanager.h
@@ -124,6 +124,12 @@ public:
return m_includePaths;
}
+ // Use this *only* for auto tests
+ void setIncludePaths(const QStringList &includePaths)
+ {
+ m_includePaths = includePaths;
+ }
+
QStringList frameworkPaths()
{
ensureUpdated();