• Nikolai Kosjar's avatar
    CppTools: Avoid unnecessary blocking of main thread · 442bdbde
    Nikolai Kosjar authored
    Among others, BaseEditorDocumentParser::projectPart() was a blocking
    operation in case the parser was running. This led to noticeable GUI
    freezes for the ClangCodeModel since the function was called from the
    main thread.
    
    Rework *EditorDocumentParser to clearly separate the configuration data
    (input) from the actual object state. Querying/setting configuration or
    (last) state does not block anymore. update() is supposed to get the
    necessary configuration and the last state at the beginning and to set
    the new state at end.
    
    Change-Id: Ib4b534fa6ff373c3059826726b3f10ece95acc21
    Reviewed-by: default avatarErik Verbruggen <erik.verbruggen@theqtcompany.com>
    442bdbde
cppsourceprocessor_test.cpp 8.41 KB