We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
std::stack
simplecpp::TokenList::combineOperators()
1 parent 3ef1187 commit a80a3eaCopy full SHA for a80a3ea
1 file changed
simplecpp.cpp
@@ -1031,8 +1031,7 @@ static bool isAlternativeAndBitandBitor(const simplecpp::Token* tok)
1031
1032
void simplecpp::TokenList::combineOperators()
1033
{
1034
- std::stack<bool, std::vector<bool>> executableScope;
1035
- executableScope.push(false);
+ std::stack<bool, std::vector<bool>> executableScope{{false}};
1036
for (Token *tok = front(); tok; tok = tok->next) {
1037
if (tok->op == '{') {
1038
if (executableScope.top()) {
0 commit comments