forked from qt-creator/qt-creator
		
	CppTools: Provide hints about chosen project part for editor document
Parse issues can have multiple reasons (invalid kit, not a project file, actual parse issue) and we should be able to tell them apart. With this change, we can distinguish between the fallback project part and a ambiguous project part. Follow up changes will use this to display more accurate diagnostics. Change-Id: Icc8767607cc17dc14d6227b07f34e81ba5525a96 Reviewed-by: David Schulz <david.schulz@qt.io>
This commit is contained in:
		@@ -25,7 +25,7 @@
 | 
			
		||||
 | 
			
		||||
#pragma once
 | 
			
		||||
 | 
			
		||||
#include "cpplanguage.h"
 | 
			
		||||
#include "cpptools_utils.h"
 | 
			
		||||
#include "projectpart.h"
 | 
			
		||||
 | 
			
		||||
#include <functional>
 | 
			
		||||
@@ -48,13 +48,14 @@ public:
 | 
			
		||||
    void setProjectPartsForFile(const ProjectPartsForFile &getter);
 | 
			
		||||
    void setProjectPartsFromDependenciesForFile(const ProjectPartsFromDependenciesForFile &getter);
 | 
			
		||||
 | 
			
		||||
    ProjectPart::Ptr choose(const QString &filePath,
 | 
			
		||||
                            const ProjectPart::Ptr ¤tProjectPart,
 | 
			
		||||
                            const ProjectPart::Ptr &manuallySetProjectPart,
 | 
			
		||||
                            bool stickToPreviousProjectPart,
 | 
			
		||||
                            const ProjectExplorer::Project *activeProject,
 | 
			
		||||
                            Language languagePreference,
 | 
			
		||||
                            bool projectHasChanged) const;
 | 
			
		||||
    ProjectPartInfo choose(
 | 
			
		||||
            const QString &filePath,
 | 
			
		||||
            const ProjectPart::Ptr ¤tProjectPart,
 | 
			
		||||
            const ProjectPart::Ptr &manuallySetProjectPart,
 | 
			
		||||
            bool stickToPreviousProjectPart,
 | 
			
		||||
            const ProjectExplorer::Project *activeProject,
 | 
			
		||||
            Language languagePreference,
 | 
			
		||||
            bool projectHasChanged) const;
 | 
			
		||||
 | 
			
		||||
private:
 | 
			
		||||
    FallBackProjectPart m_fallbackProjectPart;
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user