Tweak auto-format settings

Prefer lines that exceed 80 characters by a small margin to
line breaks in argument lists
This commit is contained in:
Max Brunsfeld 2014-09-09 13:15:40 -07:00
parent e9dad529f5
commit 2e7ffb4d14
19 changed files with 42 additions and 61 deletions

View file

@ -59,8 +59,7 @@ bool ParseAction::operator==(const ParseAction &other) const {
bool state_indices_eq = state_index == other.state_index;
bool consumed_symbol_counts_eq =
consumed_symbol_count == other.consumed_symbol_count;
return types_eq && symbols_eq && state_indices_eq &&
consumed_symbol_counts_eq;
return types_eq && symbols_eq && state_indices_eq && consumed_symbol_counts_eq;
}
ostream &operator<<(ostream &stream, const ParseAction &action) {
@ -112,8 +111,7 @@ ParseStateId ParseTable::add_state() {
return states.size() - 1;
}
void ParseTable::add_action(ParseStateId id, Symbol symbol,
ParseAction action) {
void ParseTable::add_action(ParseStateId id, Symbol symbol, ParseAction action) {
symbols.insert(symbol);
states[id].actions[symbol] = action;
}