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>
This commit is contained in:
Nikolai Kosjar
2013-06-06 09:27:28 +02:00
committed by Erik Verbruggen
parent e3bc84c414
commit f3186690bd
37 changed files with 1346 additions and 296 deletions

View File

@@ -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();