forked from qt-creator/qt-creator
		
	Clang: Prioritize current and visible translation units
We reparse first the current and then the visible translation units before we reparse all other units. The signals connections are queued to wait for the visible editor update. Change-Id: I5e2b8bc80568450268ca24e26720b3f5af640995 Reviewed-by: Nikolai Kosjar <nikolai.kosjar@theqtcompany.com>
This commit is contained in:
		@@ -936,7 +936,7 @@ ProjectPart::Ptr CppModelManager::fallbackProjectPart()
 | 
			
		||||
    return part;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
bool CppModelManager::isCppEditor(Core::IEditor *editor) const
 | 
			
		||||
bool CppModelManager::isCppEditor(Core::IEditor *editor)
 | 
			
		||||
{
 | 
			
		||||
    return editor->context().contains(ProjectExplorer::Constants::LANG_CXX);
 | 
			
		||||
}
 | 
			
		||||
 
 | 
			
		||||
@@ -120,7 +120,7 @@ public:
 | 
			
		||||
                                                  const QByteArray &contents);
 | 
			
		||||
    void emitAbstractEditorSupportRemoved(const QString &filePath);
 | 
			
		||||
 | 
			
		||||
    bool isCppEditor(Core::IEditor *editor) const;
 | 
			
		||||
    static bool isCppEditor(Core::IEditor *editor);
 | 
			
		||||
    bool isClangCodeModelAvailable() const;
 | 
			
		||||
    bool isClangCodeModelActive() const;
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user