forked from qt-creator/qt-creator
Clang: Remove superfluous try/catch
Change-Id: I7e1cd9fb6d80461518c0c52a8274f689c595dcd7 Reviewed-by: David Schulz <david.schulz@qt.io>
This commit is contained in:
@@ -41,18 +41,13 @@ static UpdateDocumentAnnotationsJob::AsyncResult runAsyncHelper(
|
||||
|
||||
UpdateDocumentAnnotationsJob::AsyncResult asyncResult;
|
||||
|
||||
try {
|
||||
// Update
|
||||
asyncResult.updateResult = translationUnit.update(translationUnitUpdatInput);
|
||||
// Update
|
||||
asyncResult.updateResult = translationUnit.update(translationUnitUpdatInput);
|
||||
|
||||
// Collect
|
||||
translationUnit.extractDocumentAnnotations(asyncResult.diagnostics,
|
||||
asyncResult.highlightingMarks,
|
||||
asyncResult.skippedSourceRanges);
|
||||
|
||||
} catch (const std::exception &exception) {
|
||||
qWarning() << "Error in UpdateDocumentAnnotationsJobRunner:" << exception.what();
|
||||
}
|
||||
// Collect
|
||||
translationUnit.extractDocumentAnnotations(asyncResult.diagnostics,
|
||||
asyncResult.highlightingMarks,
|
||||
asyncResult.skippedSourceRanges);
|
||||
|
||||
return asyncResult;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user