diff options
author | ridiculousfish <corydoras@ridiculousfish.com> | 2014-03-31 10:01:39 -0700 |
---|---|---|
committer | ridiculousfish <corydoras@ridiculousfish.com> | 2014-03-31 10:01:39 -0700 |
commit | 0d3169ef70032559e201a500aff2197a2854aa72 (patch) | |
tree | 89971815f95f8826ad1eee19985147d0635ca2ea /parse_tree.cpp | |
parent | fe3b439e31ce893d9345112e95a031aa5ec11183 (diff) |
Run restyle.sh to enforce style rules.
Diffstat (limited to 'parse_tree.cpp')
-rw-r--r-- | parse_tree.cpp | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/parse_tree.cpp b/parse_tree.cpp index 4effea20..36c94544 100644 --- a/parse_tree.cpp +++ b/parse_tree.cpp @@ -304,7 +304,7 @@ static wcstring token_type_user_presentable_description(parse_token_type_t type, case parse_token_type_end: return L"end of the statement"; - + default: return format_string(L"a %ls", token_type_description(type).c_str()); } @@ -564,11 +564,11 @@ class parse_ll_t const size_t child_start_big = nodes.size(); assert(child_start_big < NODE_OFFSET_INVALID); node_offset_t child_start = static_cast<node_offset_t>(child_start_big); - + // To avoid constructing multiple nodes, we push_back a single one that we modify parse_node_t representative_child(token_type_invalid); representative_child.parent = parent_node_idx; - + node_offset_t child_count = 0; for (size_t i=0; i < MAX_SYMBOLS_PER_PRODUCTION; i++) { @@ -1502,7 +1502,8 @@ bool parse_node_tree_t::job_should_be_backgrounded(const parse_node_t &job) cons assert(job.production_idx == 0); bool result = false; const parse_node_t *opt_background = get_child(job, 2, symbol_optional_background); - if (opt_background != NULL) { + if (opt_background != NULL) + { assert(opt_background->production_idx <= 1); result = (opt_background->production_idx == 1); } |