forked from qt-creator/qt-creator
Add soft assertions for regexp patterns
Change-Id: If0072f8f9761bdc34b35d01aac4d00c5391b8a20 Reviewed-by: Friedemann Kleint <Friedemann.Kleint@digia.com> Reviewed-by: Tobias Hunger <tobias.hunger@digia.com>
This commit is contained in:
committed by
Orgad Shaneh
parent
a27b0907ee
commit
9744c54580
@@ -31,6 +31,8 @@
|
||||
#include "projectexplorerconstants.h"
|
||||
#include "task.h"
|
||||
|
||||
#include <utils/qtcassert.h>
|
||||
|
||||
using namespace ProjectExplorer;
|
||||
|
||||
namespace {
|
||||
@@ -50,9 +52,11 @@ LdParser::LdParser()
|
||||
QString::fromLatin1(FILE_PATTERN) + QLatin1String(")?(") +
|
||||
QLatin1String(POSITION_PATTERN) + QLatin1String(")?\\s(.+)$"));
|
||||
m_regExpLinker.setMinimal(true);
|
||||
QTC_CHECK(m_regExpLinker.isValid());
|
||||
|
||||
m_regExpGccNames.setPattern(QLatin1String(COMMAND_PATTERN));
|
||||
m_regExpGccNames.setMinimal(true);
|
||||
QTC_CHECK(m_regExpGccNames.isValid());
|
||||
}
|
||||
|
||||
void LdParser::stdError(const QString &line)
|
||||
|
||||
Reference in New Issue
Block a user