forked from qt-creator/qt-creator
do not report the .pro file itself in ProFileReader::includeFiles()
it's pointless, as no consumer has a legitimate need for it - the
project file is the root of all traversals, and is known by other means.
amends 4148b05e0
.
Change-Id: I4df69727e37151b0ecbcd88b2f5ef6e55712172f
Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
This commit is contained in:
@@ -97,7 +97,7 @@ void ProFileReader::aboutToEval(ProFile *parent, ProFile *pro, EvalFileType type
|
|||||||
{
|
{
|
||||||
if (m_ignoreLevel || (type != EvalProjectFile && type != EvalIncludeFile)) {
|
if (m_ignoreLevel || (type != EvalProjectFile && type != EvalIncludeFile)) {
|
||||||
m_ignoreLevel++;
|
m_ignoreLevel++;
|
||||||
} else {
|
} else if (parent) { // Skip the actual .pro file, as nobody needs that.
|
||||||
QVector<ProFile *> &children = m_includeFiles[parent];
|
QVector<ProFile *> &children = m_includeFiles[parent];
|
||||||
if (!children.contains(pro)) {
|
if (!children.contains(pro)) {
|
||||||
children.append(pro);
|
children.append(pro);
|
||||||
|
Reference in New Issue
Block a user