From 9744c54580bca54e1ce5db0d7ad94da333b9c213 Mon Sep 17 00:00:00 2001 From: Orgad Shaneh Date: Fri, 19 Jul 2013 11:37:46 +0300 Subject: Add soft assertions for regexp patterns Change-Id: If0072f8f9761bdc34b35d01aac4d00c5391b8a20 Reviewed-by: Friedemann Kleint Reviewed-by: Tobias Hunger --- src/plugins/projectexplorer/gccparser.cpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/plugins/projectexplorer/gccparser.cpp') diff --git a/src/plugins/projectexplorer/gccparser.cpp b/src/plugins/projectexplorer/gccparser.cpp index 1cd2b725c4..613707e656 100644 --- a/src/plugins/projectexplorer/gccparser.cpp +++ b/src/plugins/projectexplorer/gccparser.cpp @@ -32,6 +32,8 @@ #include "task.h" #include "projectexplorerconstants.h" +#include + using namespace ProjectExplorer; // opt. drive letter + filename: (2 brackets) @@ -44,10 +46,12 @@ GccParser::GccParser() m_regExp.setPattern(QLatin1Char('^') + QLatin1String(FILE_PATTERN) + QLatin1String("(\\d+):(\\d+:)?\\s+((fatal |#)?(warning|error|note):?\\s)?([^\\s].+)$")); m_regExp.setMinimal(true); + QTC_CHECK(m_regExp.isValid()); m_regExpIncluded.setPattern(QString::fromLatin1("\\bfrom\\s") + QLatin1String(FILE_PATTERN) + QLatin1String("(\\d+)(:\\d+)?[,:]?$")); m_regExpIncluded.setMinimal(true); + QTC_CHECK(m_regExpIncluded.isValid()); // optional path with trailing slash // optional arm-linux-none-thingy @@ -56,6 +60,7 @@ GccParser::GccParser() // optional .exe postfix m_regExpGccNames.setPattern(QLatin1String(COMMAND_PATTERN)); m_regExpGccNames.setMinimal(true); + QTC_CHECK(m_regExpGccNames.isValid()); appendOutputParser(new LdParser); } -- cgit v1.2.1