Skip to content

Commit 15f01b8

Browse files
committed
Fix shadow warnings
1 parent 27ef941 commit 15f01b8

1 file changed

Lines changed: 7 additions & 7 deletions

File tree

‎simplecpp.cpp‎

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2222,27 +2222,27 @@ namespace simplecpp {
22222222
* the parameter that supplied the arguments, or nullptr when there is no
22232223
* call. */
22242224
const Token *gatherCallAfter(TokenList &call, const Token *nameTok, const Location &loc, const Token *tok, const MacroMap &macros, const std::set<TokenString> &expandedmacros, const std::vector<const Token*> &parametertokens) const {
2225-
TokenList args(files);
2225+
TokenList callArgs(files);
22262226
const Token *last = nullptr;
22272227
for (const Token *after = tok->next; sameline(tok, after); after = after->next) {
22282228
if (after->op == '(') {
2229-
last = appendTokens(args, loc, after, macros, expandedmacros, parametertokens);
2229+
last = appendTokens(callArgs, loc, after, macros, expandedmacros, parametertokens);
22302230
break;
22312231
}
2232-
if (!expandArg(args, after, loc, macros, expandedmacros, parametertokens))
2232+
if (!expandArg(callArgs, after, loc, macros, expandedmacros, parametertokens))
22332233
break;
22342234
// a parameter that expands to nothing is substituted before the rescan,
22352235
// so it does not separate the macro name from its '('
2236-
if (args.cfront()) {
2237-
if (args.cfront()->op == '(')
2236+
if (callArgs.cfront()) {
2237+
if (callArgs.cfront()->op == '(')
22382238
last = after;
22392239
break;
22402240
}
22412241
}
22422242
if (!last)
22432243
return nullptr;
2244-
call.push_back(new Token(nameTok->str(), args.cfront()->location));
2245-
call.takeTokens(args);
2244+
call.push_back(new Token(nameTok->str(), callArgs.cfront()->location));
2245+
call.takeTokens(callArgs);
22462246
return last;
22472247
}
22482248

0 commit comments

Comments
 (0)