Merge pull request #716 from Dmitry-Me/betterVariableName7
Better variable name
This commit is contained in:
commit
7129b1c5b3
|
@ -7908,7 +7908,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" <<
|
||||
|
@ -7928,7 +7928,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