Skip to content

Commit ba16847

Browse files
authored
split templateInstantiation from debug warnings (#4933)
1 parent 5be8eee commit ba16847

2 files changed

Lines changed: 4 additions & 3 deletions

File tree

lib/templatesimplifier.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3154,7 +3154,7 @@ bool TemplateSimplifier::simplifyTemplateInstantiations(
31543154
(!typeParametersInDeclaration.empty() && !instantiateMatch(tok2, typeParametersInDeclaration.size(), templateDeclaration.isVariadic(), nullptr))) {
31553155
if (printDebug && mErrorLogger) {
31563156
std::list<const Token *> callstack(1, tok2);
3157-
mErrorLogger->reportErr(ErrorMessage(callstack, &mTokenList, Severity::debug, "debug",
3157+
mErrorLogger->reportErr(ErrorMessage(callstack, &mTokenList, Severity::debug, "templateInstantiation",
31583158
"Failed to instantiate template \"" + instantiation.name() + "\". The checking continues anyway.", Certainty::normal));
31593159
}
31603160
if (typeForNewName.empty())
@@ -3232,7 +3232,7 @@ bool TemplateSimplifier::simplifyTemplateInstantiations(
32323232
if (typeForNewName.empty()) {
32333233
if (printDebug && mErrorLogger) {
32343234
std::list<const Token *> callstack(1, tok2);
3235-
mErrorLogger->reportErr(ErrorMessage(callstack, &mTokenList, Severity::debug, "debug",
3235+
mErrorLogger->reportErr(ErrorMessage(callstack, &mTokenList, Severity::debug, "templateInstantiation",
32363236
"Failed to instantiate template \"" + templateDeclaration.name() + "\". The checking continues anyway.", Certainty::normal));
32373237
}
32383238
return false;

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.38"
29+
SERVER_VERSION = "1.3.39"
3030

3131
OLD_VERSION = '2.10'
3232

@@ -102,6 +102,7 @@ def overviewReport() -> str:
102102
html += '<a href="head-simplifyUsingUnmatchedBodyEnd">simplifyUsingUnmatchedBodyEnd</a><br>\n'
103103
html += '<a href="head-simplifyUsing">simplifyUsing</a><br>\n'
104104
html += '<a href="head-valueFlowMaxIterations">valueFlowMaxIterations</a><br>\n'
105+
html += '<a href="head-templateInstantiation">templateInstantiation</a><br>\n'
105106
#html += '<a href="head-autoNoType">autoNoType</a><br>\n'
106107
#html += '<a href="head-valueFlowBailout">valueFlowBailout</a><br>\n'
107108
#html += '<a href="head-bailoutUninitVar">bailoutUninitVar</a><br>\n'

0 commit comments

Comments
 (0)