Correctly set is_first
From scan-build: Value stored to 'is_first' is never read
This commit is contained in:
parent
040e225a54
commit
fdd8792ebc
1 changed files with 1 additions and 1 deletions
|
|
@ -646,8 +646,8 @@ class ParseTableBuilder {
|
|||
if (considered_associativity) {
|
||||
description += " " + to_string(resolution_count++) + ": ";
|
||||
description += "Specify a left or right associativity in";
|
||||
bool is_first = true;
|
||||
for (const ParseAction &action : entry.actions) {
|
||||
bool is_first = true;
|
||||
if (action.type == ParseActionTypeReduce) {
|
||||
if (!is_first) description += " and";
|
||||
description += " `" + symbol_name(action.symbol) + "`";
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue