Better variable name
This commit is contained in:
parent
f624f6fc25
commit
67f0301f0b
|
@ -7905,7 +7905,7 @@ void Tokenizer::simplifyEnum()
|
|||
}
|
||||
|
||||
namespace {
|
||||
const std::set<std::string> f = make_container< std::set<std::string> > () <<
|
||||
const std::set<std::string> stdFunctionsPresentInC = make_container< std::set<std::string> > () <<
|
||||
"strcat" <<
|
||||
"strcpy" <<
|
||||
"strncat" <<
|
||||
|
@ -7925,7 +7925,7 @@ void Tokenizer::simplifyStd()
|
|||
continue;
|
||||
|
||||
if (Token::Match(tok->previous(), "[(,{};] std :: %name% (") &&
|
||||
f.find(tok->strAt(2)) != f.end()) {
|
||||
stdFunctionsPresentInC.find(tok->strAt(2)) != stdFunctionsPresentInC.end()) {
|
||||
tok->deleteNext();
|
||||
tok->deleteThis();
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue