Correctly set is_first
From scan-build: Value stored to 'is_first' is never read
@@ -646,8 +646,8 @@ class ParseTableBuilder {
if (considered_associativity) {
description += " " + to_string(resolution_count++) + ": ";
description += "Specify a left or right associativity in";
- for (const ParseAction &action : entry.actions) {
bool is_first = true;
+ for (const ParseAction &action : entry.actions) {
if (action.type == ParseActionTypeReduce) {
if (!is_first) description += " and";
description += " `" + symbol_name(action.symbol) + "`";
