Minor: fix MSVC shadow warning (#3376)
This commit is contained in:
parent
8869ee3554
commit
28c8b00e5c
|
@ -1439,18 +1439,18 @@ bool isConstFunctionCall(const Token* ftok, const Library& library)
|
||||||
} else if (f->argumentList.empty()) {
|
} else if (f->argumentList.empty()) {
|
||||||
return f->isConstexpr();
|
return f->isConstexpr();
|
||||||
}
|
}
|
||||||
} else if (const Library::Function* f = library.getFunction(ftok)) {
|
} else if (const Library::Function* lf = library.getFunction(ftok)) {
|
||||||
if (f->ispure)
|
if (lf->ispure)
|
||||||
return true;
|
return true;
|
||||||
for (auto&& p : f->argumentChecks) {
|
for (auto&& p : lf->argumentChecks) {
|
||||||
const Library::ArgumentChecks& ac = p.second;
|
const Library::ArgumentChecks& ac = p.second;
|
||||||
if (ac.direction != Library::ArgumentChecks::Direction::DIR_IN)
|
if (ac.direction != Library::ArgumentChecks::Direction::DIR_IN)
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
if (Token::simpleMatch(ftok->previous(), ".")) {
|
if (Token::simpleMatch(ftok->previous(), ".")) {
|
||||||
if (!f->isconst)
|
if (!lf->isconst)
|
||||||
return false;
|
return false;
|
||||||
} else if (f->argumentChecks.empty()) {
|
} else if (lf->argumentChecks.empty()) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in New Issue