diff options
author | Kevin Ottens <kevin.ottens.qnx@kdab.com> | 2012-08-01 13:38:03 (GMT) |
---|---|---|
committer | Qt by Nokia <qt-info@nokia.com> | 2012-08-08 16:31:29 (GMT) |
commit | 7904bf24f7a41fbdce1a3febf6171d46b90521d0 (patch) | |
tree | d413037ac66dba1ba5954e2af62f212a8a02748b /src | |
parent | 06f0d8a1a9a1d8d46e6f4f3894d76781dfb6638c (diff) | |
download | Qt-7904bf24f7a41fbdce1a3febf6171d46b90521d0.zip Qt-7904bf24f7a41fbdce1a3febf6171d46b90521d0.tar.gz Qt-7904bf24f7a41fbdce1a3febf6171d46b90521d0.tar.bz2 |
Properly handle include cycles
Currently lupdate is just issuing a warning when it detects an
include cycle. Since it's not a full preprocessor, most of those
warnings are false positives, but they need special handling, this
patch provides that.
Now every result is stored as part of a cycle (so in the general
case a cycle of one file). When detecting a cycle, instead instead
of issuing a warning, we record the presence of the newly detected
cycle for later use and merge the other relevant cycles with it.
When retrieving results now it's not for a single file anymore but
for a complete cycle at once (which can turn out to be a cycle of
one file).
This is a backport of the commit done in qttools with revision
3b99677b3376924e347ec4aeb0c363438146bfde
Task-number: QTBUG-6587
Change-Id: Idc79fbac4f69478ccff1464c1f4278d4afbf9d61
Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@nokia.com>
Diffstat (limited to 'src')
0 files changed, 0 insertions, 0 deletions