forked from qt-creator/qt-creator
Don't use QTC_ASSERT in the C++ front-end library. The engine does not
recover from invalid asserts, so it will crash anyway, but not in a controlled environment.
This commit is contained in:
@@ -33,8 +33,6 @@
|
||||
|
||||
#include "CppDocument.h"
|
||||
|
||||
#include <utils/qtcassert.h>
|
||||
|
||||
#include <Control.h>
|
||||
#include <TranslationUnit.h>
|
||||
#include <DiagnosticClient.h>
|
||||
@@ -273,7 +271,7 @@ bool Document::parse(ParseMode mode)
|
||||
|
||||
void Document::check()
|
||||
{
|
||||
QTC_ASSERT(!_globalNamespace, return);
|
||||
Q_ASSERT(!_globalNamespace);
|
||||
|
||||
Semantic semantic(_control);
|
||||
|
||||
|
Reference in New Issue
Block a user