This website requires JavaScript.
Explore
Help
Sign In
feedc0de
/
qt-creator
Watch
1
Star
0
Fork
0
You've already forked qt-creator
forked from
qt-creator/qt-creator
Code
Pull Requests
Activity
Files
ed9177f74cf5da5eda3d2bc670ef883b66ee9a9b
qt-creator
/
tests
/
unit
/
unittest
/
data
/
translationunits.cpp
9 lines
87 B
C++
Raw
Normal View
History
Unescape
Escape
Clang: Reparse only if files are changed Includes are now watched by a file watcher. Unsaved file changes are watched too. If they are changed the translation units which depend on them are set to a state which require a reparse. Later the diagnostics of this units are collected and send back to creator. Change-Id: I2fb5c7dd6644687f22399edd8d18edd6215c9505 Reviewed-by: Nikolai Kosjar <nikolai.kosjar@theqtcompany.com>
2015-08-31 12:40:14 +02:00
#
include
"translationunits.h"
Clang: Fix unresolved #includes for ui_*.h headers ...with an extra parse. Previously, the creation of an e.g. "Qt Widgets Application" from the wizard could show code model errors in mainwindow.cpp. Depending on timing issues, the first error is either 1. 'ui_mainwindow.h' file not found (QTCREATORBUG-15187) The parse happened before the in-memory ui_mainwindow.h was generated by uic. The file system watcher can't help here as the #include was not resolved successfully. And libclang's reparse does not handle this case (it would need to remember all failed #include stats...). ==> Detect this case with the help of the include paths and trigger a full parse. 2. or: allocation of incomplete type... (QTCREATORBUG-15187) The parse happened after the generation of the in-memory ui_mainwindow.h, but before the clangbackend received the unsaved file. ==> Fix this by also writing the content of the unsaved file to our behind-the-scenes-created ui_mainwindow.h. Fixes: QTCREATORBUG-15187 Fixes: QTCREATORBUG-17002 Change-Id: I4f3a81adaa3d604746977a402c29f83fbc5b0e44 Reviewed-by: Ivan Donchevskii <ivan.donchevskii@qt.io>
2018-10-19 10:20:27 +02:00
#
include
"some/unresolved/file.h"
Clang: Reparse only if files are changed Includes are now watched by a file watcher. Unsaved file changes are watched too. If they are changed the translation units which depend on them are set to a state which require a reparse. Later the diagnostics of this units are collected and send back to creator. Change-Id: I2fb5c7dd6644687f22399edd8d18edd6215c9505 Reviewed-by: Nikolai Kosjar <nikolai.kosjar@theqtcompany.com>
2015-08-31 12:40:14 +02:00
void
function
(
)
{
}
Copy Permalink