Skip to content

Commit 71cdacd

Browse files
authored
fixed missing location for valueFlowMaxIterations debug warning / also added it to daca server overview (danmar#4664)
1 parent 1cfe49e commit 71cdacd

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

lib/valueflow.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9050,7 +9050,9 @@ void ValueFlow::setValues(TokenList *tokenlist, SymbolDatabase* symboldatabase,
90509050

90519051
if (settings->debugwarnings) {
90529052
if (n == 0 && values != getTotalValues(tokenlist)) {
9053-
ErrorMessage errmsg({},
9053+
ErrorMessage::FileLocation loc;
9054+
loc.setfile(tokenlist->getFiles()[0]);
9055+
ErrorMessage errmsg({std::move(loc)},
90549056
emptyString,
90559057
Severity::debug,
90569058
"ValueFlow maximum iterations exceeded",

tools/donate-cpu-server.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
# Version scheme (MAJOR.MINOR.PATCH) should orientate on "Semantic Versioning" https://semver.org/
2727
# Every change in this script should result in increasing the version number accordingly (exceptions may be cosmetic
2828
# changes)
29-
SERVER_VERSION = "1.3.32"
29+
SERVER_VERSION = "1.3.33"
3030

3131
OLD_VERSION = '2.9'
3232

@@ -99,6 +99,7 @@ def overviewReport() -> str:
9999
html += '<a href="head-simplifyTypedef">simplifyTypedef</a><br>\n'
100100
html += '<a href="head-simplifyUsingUnmatchedBodyEnd">simplifyUsingUnmatchedBodyEnd</a><br>\n'
101101
html += '<a href="head-simplifyUsing">simplifyUsing</a><br>\n'
102+
html += '<a href="head-valueFlowMaxIterations">valueFlowMaxIterations</a><br>\n'
102103
#html += '<a href="head-autoNoType">autoNoType</a><br>\n'
103104
#html += '<a href="head-valueFlowBailout">valueFlowBailout</a><br>\n'
104105
#html += '<a href="head-bailoutUninitVar">bailoutUninitVar</a><br>\n'

0 commit comments

Comments
 (0)