On 03/31/2014 05:10 PM, Steve Atkins wrote:
> Is there a good way to trigger "Reparse Externally Changed Files"
> programmatically? By touching a file or some such?
>
> The context is that I've got some include files that are generated, and it'd
> be nice to have the tokens in there immediately visible to the tab completion
> in Creator as soon as they're generated.
I think the DocumentManager watches the opened files. That is, if you
touch an opened file you will at least get a pop up asking if it should
get reloaded (and thus reparsed).
Apart from that a project manager could trigger reparsing. But for this,
sth. in the project must have changed:
1. if some project defines/includes changes
==> the whole project is reparsed
2. else if a project file is added/removed
==> among others, the time stamp modified file are reparsed
Nikolai
_______________________________________________
Qt-creator mailing list
[email protected]
http://lists.qt-project.org/mailman/listinfo/qt-creator