diff options
author | Christian Stenger <christian.stenger@qt.io> | 2020-10-16 13:38:57 +0200 |
---|---|---|
committer | Christian Stenger <christian.stenger@qt.io> | 2020-10-19 13:02:00 +0000 |
commit | 6c5eaed92ca838e68745c71ee27adb754a496b8e (patch) | |
tree | 496ae912b82b7208a4549cc4369046204afac8ec /src/plugins/cppcheck/cppchecktool.cpp | |
parent | 9f6eb972b7dccbefe86c1aae5fa3e0499da35318 (diff) | |
download | qt-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.cpp | 3 |
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); } |