ProjectPart: Allow for line/column information in project file

Keep this information separate so that plugins using the information
do not need to start parsing the project file.

Change-Id: Ibecf431de1b12bbe820c6f8f9c986cffeb4972d2
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
Reviewed-by: Nikolai Kosjar <nikolai.kosjar@qt.io>
This commit is contained in:
Tobias Hunger
2017-02-27 14:02:38 +01:00
parent 8187141b4a
commit cee92463f7
8 changed files with 29 additions and 6 deletions

View File

@@ -996,7 +996,8 @@ void QbsProject::updateCppCodeModel()
rpp.setHeaderPaths(grpHeaderPaths);
rpp.setDisplayName(grp.name());
rpp.setProjectFile(groupLocationToProjectFile(grp.location()));
rpp.setProjectFile(grp.location().filePath(),
grp.location().line(), grp.location().column());
QHash<QString, qbs::ArtifactData> filePathToSourceArtifact;
bool hasCFiles = false;