forked from qt-creator/qt-creator
		
	Clang: Indicate available "fix its" with a light bulb
...at the end of the line, just like for the "Apply Function Signature Changes" refactor action. * Hovering the light bulb shows the tooltip "Inspect available fixits". * Clicking the light bulb leads to the refactoring menu, as if the user hit Alt+Return. Change-Id: Iaf7b3734c43e21fc28e6b0658f517d98858c0e0c Reviewed-by: Alessandro Portale <alessandro.portale@theqtcompany.com>
This commit is contained in:
		@@ -164,7 +164,8 @@ void ClangEditorDocumentProcessor::updateCodeWarnings(const QVector<ClangBackEnd
 | 
			
		||||
    if (documentRevision == revision()) {
 | 
			
		||||
        m_diagnosticManager.processNewDiagnostics(diagnostics);
 | 
			
		||||
        const auto codeWarnings = m_diagnosticManager.takeExtraSelections();
 | 
			
		||||
        emit codeWarningsUpdated(revision(), codeWarnings);
 | 
			
		||||
        const auto fixitAvailableMarkers = m_diagnosticManager.takeFixItAvailableMarkers();
 | 
			
		||||
        emit codeWarningsUpdated(revision(), codeWarnings, fixitAvailableMarkers);
 | 
			
		||||
    }
 | 
			
		||||
}
 | 
			
		||||
namespace {
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user