diff options
author | Orgad Shaneh <orgad.shaneh@audiocodes.com> | 2013-07-19 11:37:46 +0300 |
---|---|---|
committer | Orgad Shaneh <orgads@gmail.com> | 2013-07-19 13:01:20 +0200 |
commit | 9744c54580bca54e1ce5db0d7ad94da333b9c213 (patch) | |
tree | 7cc4b4f47770075bdf7132fac39b57059708cf18 /src/plugins/projectexplorer/gccparser.cpp | |
parent | a27b0907ee9aecf1f9095e4cfaf4e6be9b33f908 (diff) |
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>
Diffstat (limited to 'src/plugins/projectexplorer/gccparser.cpp')
-rw-r--r-- | src/plugins/projectexplorer/gccparser.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
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 <utils/qtcassert.h> + 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); } |