std::stack
simplecpp::TokenList::combineOperators()
1 parent 163fc92 commit fc7dca0Copy full SHA for fc7dca0
1 file changed
simplecpp.cpp
@@ -1017,8 +1017,7 @@ static bool isAlternativeAndBitandBitor(const simplecpp::Token* tok)
1017
1018
void simplecpp::TokenList::combineOperators()
1019
{
1020
- std::stack<bool> executableScope;
1021
- executableScope.push(false);
+ std::stack<bool, std::vector<bool>> executableScope{{false}};
1022
for (Token *tok = front(); tok; tok = tok->next) {
1023
if (tok->op == '{') {
1024
if (executableScope.top()) {
0 commit comments