summaryrefslogtreecommitdiff
path: root/src/plugins/cppcheck/cppchecktool.cpp
diff options
context:
space:
mode:
authorSergey Morozov <dev@gres.biz>2022-04-30 23:10:26 +0300
committerSergey Morozov <dev@gres.biz>2022-05-02 18:53:55 +0000
commit11544df48b9f441af1f3cb2c28ea72db5c6eaf66 (patch)
tree3ef2499be329f5e3e19c1dd3d3286478d3c8daed /src/plugins/cppcheck/cppchecktool.cpp
parentcc2146f5912c1fcea4660354bf988507b17bc935 (diff)
downloadqt-creator-11544df48b9f441af1f3cb2c28ea72db5c6eaf66.tar.gz
Cppcheck: Escape error message format string
Some shells try to expand {} otherwise. Fixes: QTCREATORBUG-27284 Change-Id: Ifd2bd7bc58f005339eebd150b98ced59395d24bc Reviewed-by: <github-actions-qt-creator@cristianadam.eu> Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
Diffstat (limited to 'src/plugins/cppcheck/cppchecktool.cpp')
-rw-r--r--src/plugins/cppcheck/cppchecktool.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/cppcheck/cppchecktool.cpp b/src/plugins/cppcheck/cppchecktool.cpp
index 9636443b0e..6501ed583a 100644
--- a/src/plugins/cppcheck/cppchecktool.cpp
+++ b/src/plugins/cppcheck/cppchecktool.cpp
@@ -118,7 +118,7 @@ void CppcheckTool::updateArguments()
if (!m_options.unusedFunction && !m_options.customArguments.contains("-j "))
arguments.push_back("-j " + QString::number(QThread::idealThreadCount()));
- arguments.push_back("--template={file},{line},{severity},{id},{message}");
+ arguments.push_back("--template=\"{file},{line},{severity},{id},{message}\"");
m_runner->reconfigure(m_options.binary, arguments.join(' '));
}