Add basic translation of CXXBindTemporaryExpr

Summary:
public
This is main reason for not translating rocksdb code right now. Deal with it.

Reviewed By: dulmarod

Differential Revision: D2874446

fb-gh-sync-id: 6f6cf3a
master
Andrzej Kotulski 9 years ago committed by facebook-github-bot-1
parent 0a32c95f39
commit e329916e5b

@ -2119,6 +2119,9 @@ struct
compoundLiteralExpr_trans trans_state stmt_info stmt_list expr_info compoundLiteralExpr_trans trans_state stmt_info stmt_list expr_info
| InitListExpr (stmt_info, stmts, expr_info) -> | InitListExpr (stmt_info, stmts, expr_info) ->
initListExpr_trans trans_state stmt_info expr_info stmts initListExpr_trans trans_state stmt_info expr_info stmts
| CXXBindTemporaryExpr (stmt_info, stmt_list, expr_info, cxx_bind_temp_expr_info) ->
(* right now we ignore this expression and try to translate the child node *)
parenExpr_trans trans_state stmt_info stmt_list
| s -> (Printing.log_stats | s -> (Printing.log_stats
"\n!!!!WARNING: found statement %s. \nACTION REQUIRED: Translation need to be defined. Statement ignored.... \n" "\n!!!!WARNING: found statement %s. \nACTION REQUIRED: Translation need to be defined. Statement ignored.... \n"
(Ast_utils.string_of_stmt s); (Ast_utils.string_of_stmt s);

Loading…
Cancel
Save