Skip to content

Commit 5f19866

Browse files
committed
rephraze internal warning
1 parent c75a226 commit 5f19866

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/checkinternal.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -353,7 +353,7 @@ void CheckInternal::checkStlUsage()
353353
for (const Scope *scope : symbolDatabase->functionScopes) {
354354
for (const Token* tok = scope->bodyStart->next(); tok != scope->bodyEnd; tok = tok->next()) {
355355
if (Token::simpleMatch(tok, ". emplace ("))
356-
reportError(tok, Severity::error, "internalStlUsage", "The 'emplace' function shall be avoided for now. 'emplace_back' is fine");
356+
reportError(tok, Severity::error, "internalStlUsage", "The 'emplace' function shall be avoided for now. It is not available e.g. in Slackware 14.0. 'emplace_back' is fine.");
357357
//if (Token::simpleMatch(tok, ". back ( )") && tok->astOperand1() && tok->astOperand1()->valueType() && tok->astOperand1()->valueType()->container && Token::simpleMatch(tok->astOperand1()->valueType()->container, "std :: string"))
358358
// reportError(tok, Severity::error, "internalStlUsage", "The 'std::string::back()' function shall be avoided for now.");
359359
}

0 commit comments

Comments
 (0)