• Nikolai Kosjar's avatar
    CppTools: Update visible documents on project update · c2eb91e0
    Nikolai Kosjar authored
    With asynchron project managers, creating a new project from a wizard or
    re-opening a session will first open the editor documents and then
    provide the project information later (it's the other way around with
    synchronous project managers). This sequence leave the documents with
    various error diagnostics behind. Fixed by re-triggering the re-parsing.
    This change does not fix QTCREATORBUG-11606 yet. Though it will trigger
    a reparse with the right includes, clang still reports 'file not found'.
    Will be addressed by a follow-up patch.
    Task-number: QTCREATORBUG-11606
    Change-Id: Ib5d251e05accf4268f9b36decc5224b2c75f610c
    Reviewed-by: default avatarDaniel Teske <daniel.teske@digia.com>
    Reviewed-by: Orgad Shaneh's avatarOrgad Shaneh <orgads@gmail.com>
    Reviewed-by: default avatarFawzi Mohamed <fawzi.mohamed@digia.com>
cppmodelmanager.cpp 33.8 KB