From 97ec6b9ad2bb6859516928db0f98b740d8f72590 Mon Sep 17 00:00:00 2001 From: Marco Bubke Date: Thu, 7 Feb 2019 12:20:51 +0100 Subject: ClangRefactoring: Don't update the database if something went wrong We can get an compile error. In that case we should not update the database. In the future we should have a mechanism to report about the database state. Task-number: QTCREATORBUG-21949 Change-Id: I203346d536b007171f7bf255047409431c44a85a Reviewed-by: Ivan Donchevskii --- src/tools/clangrefactoringbackend/source/symbolscollectorinterface.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/tools/clangrefactoringbackend/source/symbolscollectorinterface.h') diff --git a/src/tools/clangrefactoringbackend/source/symbolscollectorinterface.h b/src/tools/clangrefactoringbackend/source/symbolscollectorinterface.h index 0b7e00509d..94b3142371 100644 --- a/src/tools/clangrefactoringbackend/source/symbolscollectorinterface.h +++ b/src/tools/clangrefactoringbackend/source/symbolscollectorinterface.h @@ -44,7 +44,7 @@ class SymbolsCollectorInterface : public ProcessorInterface { public: virtual void setFile(FilePathId filePathId, const Utils::SmallStringVector &arguments) = 0; - virtual void collectSymbols() = 0; + virtual bool collectSymbols() = 0; virtual const SymbolEntries &symbols() const = 0; virtual const SourceLocationEntries &sourceLocations() const = 0; -- cgit v1.2.1