• Erik Verbruggen's avatar
    C++: Move preprocessor settings handling to the document. · cc6a9bab
    Erik Verbruggen authored
    This cleans up the handling of those settings, and makes sure that the
    C++ document is setting those settings before parsing. This also
    prevents lock contention in the parser, because before this patch the
    document would kick of the initial parse (after opening a document),
    after which the editor would come in and try to set the preprocessor
    settings, resulting in the UI thread locking until the initial parse was
    done.
    
    Change-Id: Ia2e18a9667e10279f045c1c5849046ec4cfe85ae
    Reviewed-by: default avatarNikolai Kosjar <nikolai.kosjar@digia.com>
    cc6a9bab
cppeditor.cpp 26.5 KB