data: improvements on error management
* mark all files with errors as incomplete * fix incomplete label in codeview tooltip not updated properly * added setting for canceling indexing for files with fatal errors
This commit is contained in:
@@ -73,6 +73,7 @@ std::string ParserClient::addLocationSuffix(
|
||||
|
||||
ParserClient::ParserClient()
|
||||
: m_hasFatalErrors(false)
|
||||
, m_cancelOnFatalErrors(false)
|
||||
{
|
||||
}
|
||||
|
||||
@@ -94,3 +95,13 @@ bool ParserClient::hasFatalErrors() const
|
||||
{
|
||||
return m_hasFatalErrors;
|
||||
}
|
||||
|
||||
bool ParserClient::cancelOnFatalErrors() const
|
||||
{
|
||||
return m_cancelOnFatalErrors;
|
||||
}
|
||||
|
||||
void ParserClient::setCancelOnFatalErrors(bool cancelOnFatalErrors)
|
||||
{
|
||||
m_cancelOnFatalErrors = cancelOnFatalErrors;
|
||||
}
|
||||
|
||||
@@ -55,8 +55,12 @@ public:
|
||||
|
||||
bool hasFatalErrors() const;
|
||||
|
||||
bool cancelOnFatalErrors() const;
|
||||
void setCancelOnFatalErrors(bool cancelOnFatalErrors);
|
||||
|
||||
protected:
|
||||
bool m_hasFatalErrors;
|
||||
bool m_cancelOnFatalErrors;
|
||||
};
|
||||
|
||||
#endif // PARSER_CLIENT_H
|
||||
|
||||
@@ -18,15 +18,11 @@ ParserClientImpl::~ParserClientImpl()
|
||||
void ParserClientImpl::setStorage(std::shared_ptr<IntermediateStorage> storage)
|
||||
{
|
||||
m_storage = storage;
|
||||
|
||||
m_hasFatalErrors = 0;
|
||||
}
|
||||
|
||||
void ParserClientImpl::resetStorage()
|
||||
{
|
||||
m_storage.reset();
|
||||
|
||||
m_hasFatalErrors = 0;
|
||||
}
|
||||
|
||||
Id ParserClientImpl::recordSymbol(
|
||||
|
||||
Reference in New Issue
Block a user