forked from qt-creator/qt-creator
Revert "CppHighlighter: highlight all functions/methods."
This reverts commit e3e67467cfea5934f16a95385761455b0c495a0d Reason is that it shows errors for calls to function-like macros. For example, any use of Q_DISABLE_COPY results in invalid errors. Change-Id: I1fd1473ac5a30da5b9aebf6a3f0f11055bdbe8ad Reviewed-by: Erik Verbruggen <erik.verbruggen@nokia.com>
This commit is contained in:
@@ -1047,11 +1047,6 @@ void CPPEditorWidget::finishHighlightSymbolUsages()
|
||||
|
||||
TextEditor::SemanticHighlighter::clearExtraAdditionalFormatsUntilEnd(
|
||||
highlighter, m_highlighter);
|
||||
|
||||
if (m_modelManager)
|
||||
m_modelManager->setExtraDiagnostics(m_lastSemanticInfo.doc->fileName(),
|
||||
CPlusPlus::CppModelManagerInterface::CppSemanticsDiagnostic,
|
||||
m_lastSemanticInfo.doc->diagnosticMessages());
|
||||
}
|
||||
|
||||
|
||||
@@ -1748,8 +1743,6 @@ void CPPEditorWidget::setFontSettings(const TextEditor::FontSettings &fs)
|
||||
fs.toTextCharFormat(QLatin1String(TextEditor::Constants::C_VIRTUAL_METHOD));
|
||||
m_semanticHighlightFormatMap[SemanticInfo::LabelUse] =
|
||||
fs.toTextCharFormat(QLatin1String(TextEditor::Constants::C_LABEL));
|
||||
m_semanticHighlightFormatMap[SemanticInfo::FunctionUse] =
|
||||
fs.toTextCharFormat(QLatin1String(TextEditor::Constants::C_FUNCTION));
|
||||
m_keywordFormat = fs.toTextCharFormat(QLatin1String(TextEditor::Constants::C_KEYWORD));
|
||||
|
||||
// only set the background, we do not want to modify foreground properties set by the syntax highlighter or the link
|
||||
|
||||
Reference in New Issue
Block a user