forked from qt-creator/qt-creator
GenericProject: remove trailing "/" from .includes paths
Paths in the .includes file are user edited and may contain trailing slashes. If these are not filtered out, the CppCompletionAssistProcessor suggestions are missing the first character (e.g. rc/, not src/). Change-Id: I19b4c811d504042d0a4eb4ee8961818b3e17051c Reviewed-by: Tobias Hunger <tobias.hunger@digia.com>
This commit is contained in:
committed by
Tobias Hunger
parent
0b777b0052
commit
6d83dda6df
@@ -330,6 +330,8 @@ QStringList GenericProject::processEntries(const QStringList &paths,
|
||||
|
||||
expandEnvironmentVariables(env, trimmedPath);
|
||||
|
||||
trimmedPath = Utils::FileName::fromUserInput(trimmedPath).toString();
|
||||
|
||||
const QString absPath = QFileInfo(projectDir, trimmedPath).absoluteFilePath();
|
||||
absolutePaths.append(absPath);
|
||||
if (map)
|
||||
|
Reference in New Issue
Block a user