summaryrefslogtreecommitdiff
path: root/src/plugins/cppcheck/cppchecktool.cpp
diff options
context:
space:
mode:
authorChristian Stenger <christian.stenger@qt.io>2020-10-16 13:38:57 +0200
committerChristian Stenger <christian.stenger@qt.io>2020-10-19 13:02:00 +0000
commit6c5eaed92ca838e68745c71ee27adb754a496b8e (patch)
tree496ae912b82b7208a4549cc4369046204afac8ec /src/plugins/cppcheck/cppchecktool.cpp
parent9f6eb972b7dccbefe86c1aae5fa3e0499da35318 (diff)
downloadqt-creator-6c5eaed92ca838e68745c71ee27adb754a496b8e.tar.gz
Utils: Fix matching wildcards to full paths
Fixes: QTCREATORBUG-24792 Change-Id: I82b4edea6260b07e1bdff065b157a4cd044ec629 Reviewed-by: Eike Ziller <eike.ziller@qt.io>
Diffstat (limited to 'src/plugins/cppcheck/cppchecktool.cpp')
-rw-r--r--src/plugins/cppcheck/cppchecktool.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/plugins/cppcheck/cppchecktool.cpp b/src/plugins/cppcheck/cppchecktool.cpp
index 2c17247d0a..91660020bb 100644
--- a/src/plugins/cppcheck/cppchecktool.cpp
+++ b/src/plugins/cppcheck/cppchecktool.cpp
@@ -38,6 +38,7 @@
#include <utils/algorithm.h>
#include <utils/macroexpander.h>
#include <utils/qtcassert.h>
+#include <utils/stringutils.h>
#include <QThread>
@@ -67,7 +68,7 @@ void CppcheckTool::updateOptions(const CppcheckOptions &options)
if (trimmedPattern.isEmpty())
continue;
- const QRegularExpression re(QRegularExpression::wildcardToRegularExpression(trimmedPattern));
+ const QRegularExpression re(Utils::wildcardToRegularExpression(trimmedPattern));
if (re.isValid())
m_filters.push_back(re);
}