<p>I'm not at the computer right now, but in ParsingEnvironmentFile there should be a member holding all recursive dependencies of a file as, which is used when checking whether an update is required and for other occasions (might also be in TopDUContext, "recursiveImports" or something like that).</p>

<p><blockquote type="cite">Am 13.06.2010 10:50 schrieb "Esben Mose Hansen" <<a href="mailto:kde@mosehansen.dk">kde@mosehansen.dk</a>>:<br><br><p><font color="#500050">On Saturday 12 June 2010 21:39:34 David Nolden wrote:<br>
> My next item on the list is getting and watc...</font></p>I am working on getting the included/imported files watched as well. I have<br>
worked out this little snippet for getting imports:<br>
<br>
    TopDUContext* context = DUChainUtils::standardContextForUrl(url);<br>
    if (context) {<br>
        QVector<DUContext::Import> imports = context-<br>
>importedParentContexts();<br>
        Q_FOREACH(DUContext::Import import, imports) {<br>
            qDebug() << "indexed url for import: " <<<br>
import.indexedContext().indexedTopContext().url().str();<br>
        }<br>
    } else {<br>
        qDebug() << "No context for url";<br>
    }<br>
<br>
Is that the right way to do it? Of course, I would need to update the list<br>
every time the file is parsed, and I think I would need to reparse any new<br>
files in that list (otherwise, I cannot see how to avoid a race where the file<br>
is changed after passing but before the import is reported to the watching<br>
mechanism).<br>
<br>
The above needs to be done recursively: is there a smarter way to go about<br>
this?<br>
<br>
--<br>
<p><font color="#500050">Kind regards, Esben<br><br>-- <br>KDevelop-devel mailing list<br><a href="mailto:KDevelop-devel@kdevelop.org">KDevelop-devel@kdevelop.org</a></font></p><a href="https://barney.cs.uni-potsdam.de/mailman/listinfo/kdevelop-devel" target="_blank">https://barney.cs.uni-potsdam.de/mailman/listinfo/kdevelop-devel</a><br>

</blockquote></p>