summaryrefslogtreecommitdiff
path: root/src/plugins/cmakeprojectmanager/cmakeparser.cpp
diff options
context:
space:
mode:
authorOrgad Shaneh <orgad.shaneh@audiocodes.com>2013-07-19 11:37:46 +0300
committerOrgad Shaneh <orgads@gmail.com>2013-07-19 13:01:20 +0200
commit9744c54580bca54e1ce5db0d7ad94da333b9c213 (patch)
tree7cc4b4f47770075bdf7132fac39b57059708cf18 /src/plugins/cmakeprojectmanager/cmakeparser.cpp
parenta27b0907ee9aecf1f9095e4cfaf4e6be9b33f908 (diff)
downloadqt-creator-9744c54580bca54e1ce5db0d7ad94da333b9c213.tar.gz
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/cmakeprojectmanager/cmakeparser.cpp')
-rw-r--r--src/plugins/cmakeprojectmanager/cmakeparser.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/plugins/cmakeprojectmanager/cmakeparser.cpp b/src/plugins/cmakeprojectmanager/cmakeparser.cpp
index 9242ee538b..0aaa844623 100644
--- a/src/plugins/cmakeprojectmanager/cmakeparser.cpp
+++ b/src/plugins/cmakeprojectmanager/cmakeparser.cpp
@@ -29,6 +29,8 @@
#include "cmakeparser.h"
+#include <utils/qtcassert.h>
+
#include <projectexplorer/gnumakeparser.h>
#include <projectexplorer/projectexplorerconstants.h>
@@ -46,9 +48,11 @@ CMakeParser::CMakeParser() :
{
m_commonError.setPattern(QLatin1String(COMMON_ERROR_PATTERN));
m_commonError.setMinimal(true);
+ QTC_CHECK(m_commonError.isValid());
m_nextSubError.setPattern(QLatin1String(NEXT_SUBERROR_PATTERN));
m_nextSubError.setMinimal(true);
+ QTC_CHECK(m_nextSubError.isValid());
appendOutputParser(new GnuMakeParser());
}