forked from qt-creator/qt-creator
		
	Clang: Add diagnostics
Diagnostics are now moved to the clang backend process. Fixits are supported too. Change-Id: I20faacf466bbf78dec479220c3d7b336a47bc453 Reviewed-by: Nikolai Kosjar <nikolai.kosjar@theqtcompany.com>
This commit is contained in:
		@@ -78,12 +78,12 @@ QList<QTextEdit::ExtraSelection> BaseEditorDocumentProcessor::toTextEditorSelect
 | 
			
		||||
{
 | 
			
		||||
    // Format for errors
 | 
			
		||||
    QTextCharFormat errorFormat;
 | 
			
		||||
    errorFormat.setUnderlineStyle(QTextCharFormat::WaveUnderline);
 | 
			
		||||
    errorFormat.setUnderlineStyle(QTextCharFormat::SingleUnderline);
 | 
			
		||||
    errorFormat.setUnderlineColor(Qt::red);
 | 
			
		||||
 | 
			
		||||
    // Format for warnings
 | 
			
		||||
    QTextCharFormat warningFormat;
 | 
			
		||||
    warningFormat.setUnderlineStyle(QTextCharFormat::WaveUnderline);
 | 
			
		||||
    warningFormat.setUnderlineStyle(QTextCharFormat::SingleUnderline);
 | 
			
		||||
    warningFormat.setUnderlineColor(Qt::darkYellow);
 | 
			
		||||
 | 
			
		||||
    QList<QTextEdit::ExtraSelection> result;
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user