forked from qt-creator/qt-creator
		
	CppTools: Let BaseEditorDocumentParser acquire the mutex
...so derived classes are freed from doing this. Change-Id: I73f3eca54be14cfd6542a466f0e9c024457bef07 Reviewed-by: Erik Verbruggen <erik.verbruggen@theqtcompany.com>
This commit is contained in:
		@@ -51,8 +51,6 @@ public:
 | 
			
		||||
    bool releaseSourceAndAST() const;
 | 
			
		||||
    void setReleaseSourceAndAST(bool release);
 | 
			
		||||
 | 
			
		||||
    void update(WorkingCopy workingCopy) override;
 | 
			
		||||
 | 
			
		||||
    CPlusPlus::Document::Ptr document() const;
 | 
			
		||||
    CPlusPlus::Snapshot snapshot() const;
 | 
			
		||||
    ProjectPart::HeaderPaths headerPaths() const;
 | 
			
		||||
@@ -66,6 +64,7 @@ public:
 | 
			
		||||
    static BuiltinEditorDocumentParser *get(const QString &filePath);
 | 
			
		||||
 | 
			
		||||
private:
 | 
			
		||||
    void updateHelper(WorkingCopy workingCopy) override;
 | 
			
		||||
    void addFileAndDependencies(CPlusPlus::Snapshot *snapshot,
 | 
			
		||||
                                QSet<Utils::FileName> *toRemove,
 | 
			
		||||
                                const Utils::FileName &fileName) const;
 | 
			
		||||
@@ -80,7 +79,6 @@ private:
 | 
			
		||||
        CPlusPlus::Snapshot snapshot;
 | 
			
		||||
        bool forceSnapshotInvalidation = false;
 | 
			
		||||
    };
 | 
			
		||||
 | 
			
		||||
    ExtraState extraState() const;
 | 
			
		||||
    void setExtraState(const ExtraState &extraState);
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user