You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
CmdLineParser: deprecated --template <template> and --template-location <template> (#5331)
Both are bugprone since they just take the next parameter which doesn't
start with `-`.
Also `--template` has not been documented since
1784239 back in 2011(!). And
`--template-location` has never been documented since its induction in
f058d9a. That's also why we can have a
short deprecation period.
Copy file name to clipboardExpand all lines: releasenotes.txt
+3-1Lines changed: 3 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -1,4 +1,4 @@
1
-
release notes for cppcheck-2.12
1
+
Release Notes for Cppcheck 2.12
2
2
3
3
New checks:
4
4
- uselessOverride finds overriding functions that either duplicate code from or delegate back to the base class implementation
@@ -14,6 +14,8 @@ Changed interface:
14
14
15
15
Deprecations:
16
16
- The qmake build system has been deprecated and will be removed in a future version.
17
+
- Command-line option '--template <template>' is deprecated and will be removed in 2.13 - please use '--template=<template>' instead.
18
+
- Command-line option '--template-location <template>' is deprecated and will be removed in 2.13 - please use '--template-location=<template>' instead.
17
19
18
20
Other:
19
21
- "USE_QT6=On" will no longer fallback to Qt5 when Qt6 is not found.
TODO_ASSERT_EQUALS("cppcheck: error: argument to '--template' is missing.\n", "cppcheck: error: no C or C++ source files found.\n", GET_REDIRECT_OUTPUT);
1442
+
TODO_ASSERT_EQUALS("cppcheck: error: argument to '--template' is missing.\n",
1443
+
"cppcheck: '--template <template>' is deprecated and will be removed in 2.13 - please use '--template=<template>' instead\n"
1444
+
"cppcheck: error: no C or C++ source files found.\n", GET_REDIRECT_OUTPUT);
1443
1445
}
1444
1446
1445
1447
// will use the default
@@ -1462,7 +1464,7 @@ class TestCmdlineParser : public TestFixture {
1462
1464
ASSERT_EQUALS("cppcheck: error: argument to '--template-location' is missing.\n", GET_REDIRECT_OUTPUT);
1463
1465
}
1464
1466
1465
-
// TODO: will not error out as he next option does not start with a "-"
1467
+
// TODO: will not error out as the next option does not start with a "-"
1466
1468
voidtemplateLocationInvalid2() {
1467
1469
REDIRECT;
1468
1470
settings->templateFormat.clear();
@@ -1471,7 +1473,9 @@ class TestCmdlineParser : public TestFixture {
0 commit comments