authorgravatar for thejoshwolfe@gmail.comJosh Wolfe <thejoshwolfe@gmail.com> 2017-09-01 11:45:06-07:00
committergravatar for thejoshwolfe@gmail.comJosh Wolfe <thejoshwolfe@gmail.com> 2017-09-01 11:45:06-07:00
log7e1bf6d29b8c644096058a9444614b65055ee9df
tree2cfa3d2fc177b9ee9e246c169b34bb10c7f6a9f6
parenta260cfa4dd7837668b44432335f88c09b12423cd

progress toward variable declaration translation


1 files changed, 1 insertions(+), 3 deletions(-)

src/parseh.cpp+1-3
......@@ -1198,13 +1198,11 @@ static AstNode * trans_local_declaration(Context *c, AstNode *block, DeclStmt *s
11981198 node->data.variable_declaration.symbol = buf_create_from_str(decl_name(var_decl));
11991199 QualType qual_type = var_decl->getTypeSourceInfo()->getType();
12001200 node->data.variable_declaration.is_const = qual_type.isConstQualified();
1201 node->data.variable_declaration.type = trans_qual_type(c, block, qual_type);
1201 node->data.variable_declaration.type = trans_qual_type(c, qual_type, stmt->getStartLoc());
12021202 if (var_decl->hasInit()) {
12031203 node->data.variable_declaration.expr = trans_expr(c, block, var_decl->getInit());
12041204 }
12051205
1206 //emit_warning(c, decl->getLocation(), "asdf");
1207
12081206 block->data.block.statements.append(node);
12091207 continue;
12101208 }