forked from qt-creator/qt-creator
C++ Detach the CppEditor from code-model internals.
- Moved document update handling into CppTools. - Moved semantic info calculation into CppTools. - Moved semantic highlighting into CppTools. Change-Id: I253861bf074a64b1f657f7a4a8e6583871b5285f Reviewed-by: Nikolai Kosjar <nikolai.kosjar@digia.com>
This commit is contained in:
committed by
Nikolai Kosjar
parent
e8d59fb76f
commit
0c27b27658
@@ -703,9 +703,9 @@ void FindExportedCppTypes::operator()(const CPlusPlus::Document::Ptr &document)
|
||||
FindExportsVisitor finder(document);
|
||||
finder();
|
||||
if (CppTools::CppModelManagerInterface *cppModelManager = CppTools::CppModelManagerInterface::instance()) {
|
||||
cppModelManager->setExtraDiagnostics(
|
||||
document->fileName(), CppTools::CppModelManagerInterface::ExportedQmlTypesDiagnostic,
|
||||
finder.messages());
|
||||
static const QString kindKey = QLatin1String("QmlJSTools.ExportedQmlTypesDiagnostic");
|
||||
cppModelManager->setExtraDiagnostics(document->fileName(), kindKey,
|
||||
finder.messages());
|
||||
}
|
||||
|
||||
// if nothing was found, done
|
||||
|
||||
Reference in New Issue
Block a user